www.mooseframework.org
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
AsymptoticExpansionHomogenizationKernel Class Reference

#include <AsymptoticExpansionHomogenizationKernel.h>

Inheritance diagram for AsymptoticExpansionHomogenizationKernel:
[legend]

Public Member Functions

 AsymptoticExpansionHomogenizationKernel (const InputParameters &parameters)
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Member Functions

virtual Real computeQpResidual ()
 

Protected Attributes

const std::string _base_name
 
const MaterialProperty< RankFourTensor > & _elasticity_tensor
 

Private Attributes

const unsigned int _component
 
const unsigned int _column
 
const std::array< unsigned int, 6 > _k_index
 
const std::array< unsigned int, 6 > _l_index
 
const unsigned int _k
 
const unsigned int _l
 

Detailed Description

Definition at line 20 of file AsymptoticExpansionHomogenizationKernel.h.

Constructor & Destructor Documentation

◆ AsymptoticExpansionHomogenizationKernel()

AsymptoticExpansionHomogenizationKernel::AsymptoticExpansionHomogenizationKernel ( const InputParameters &  parameters)

Definition at line 40 of file AsymptoticExpansionHomogenizationKernel.C.

42  : Kernel(parameters),
43 
44  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
45  _elasticity_tensor(getMaterialPropertyByName<RankFourTensor>(_base_name + "elasticity_tensor")),
46  _component(getParam<unsigned int>("component")),
47  _column(getParam<MooseEnum>("column")),
48  _k_index({{0, 1, 2, 1, 0, 0}}),
49  _l_index({{0, 1, 2, 2, 2, 1}}),
52 {
53 }

Member Function Documentation

◆ computeQpResidual()

Real AsymptoticExpansionHomogenizationKernel::computeQpResidual ( )
protectedvirtual

Definition at line 56 of file AsymptoticExpansionHomogenizationKernel.C.

57 {
58  Real value = 0;
59 
60  for (unsigned j = 0; j < 3; j++)
61  value += _grad_test[_i][_qp](j) * _elasticity_tensor[_qp](_component, j, _k, _l);
62 
63  return value;
64 }

◆ validParams()

InputParameters AsymptoticExpansionHomogenizationKernel::validParams ( )
static

Definition at line 17 of file AsymptoticExpansionHomogenizationKernel.C.

18 {
19  InputParameters params = Kernel::validParams();
20  params.addClassDescription("Kernel for asymptotic expansion homogenization for elasticity");
21  params.addRequiredRangeCheckedParam<unsigned int>("component",
22  "component >= 0 & component < 3",
23  "An integer corresponding to the direction "
24  "the variable this kernel acts in. (0 for x, "
25  "1 for y, 2 for z)");
26  MooseEnum column("xx yy zz yz xz xy");
27  params.addRequiredParam<MooseEnum>("column",
28  column,
29  "The column of the material matrix this kernel acts in. "
30  "(xx, yy, zz, yz, xz, or xy)");
31 
32  params.addParam<std::string>("base_name",
33  "Optional parameter that allows the user to define "
34  "multiple mechanics material systems on the same "
35  "block, i.e. for multiple phases");
36 
37  return params;
38 }

Member Data Documentation

◆ _base_name

const std::string AsymptoticExpansionHomogenizationKernel::_base_name
protected

Definition at line 30 of file AsymptoticExpansionHomogenizationKernel.h.

◆ _column

const unsigned int AsymptoticExpansionHomogenizationKernel::_column
private

Definition at line 35 of file AsymptoticExpansionHomogenizationKernel.h.

◆ _component

const unsigned int AsymptoticExpansionHomogenizationKernel::_component
private

Definition at line 34 of file AsymptoticExpansionHomogenizationKernel.h.

Referenced by computeQpResidual().

◆ _elasticity_tensor

const MaterialProperty<RankFourTensor>& AsymptoticExpansionHomogenizationKernel::_elasticity_tensor
protected

Definition at line 31 of file AsymptoticExpansionHomogenizationKernel.h.

Referenced by computeQpResidual().

◆ _k

const unsigned int AsymptoticExpansionHomogenizationKernel::_k
private

Definition at line 38 of file AsymptoticExpansionHomogenizationKernel.h.

Referenced by computeQpResidual().

◆ _k_index

const std::array<unsigned int, 6> AsymptoticExpansionHomogenizationKernel::_k_index
private

Definition at line 36 of file AsymptoticExpansionHomogenizationKernel.h.

◆ _l

const unsigned int AsymptoticExpansionHomogenizationKernel::_l
private

Definition at line 39 of file AsymptoticExpansionHomogenizationKernel.h.

Referenced by computeQpResidual().

◆ _l_index

const std::array<unsigned int, 6> AsymptoticExpansionHomogenizationKernel::_l_index
private

Definition at line 37 of file AsymptoticExpansionHomogenizationKernel.h.


The documentation for this class was generated from the following files:
AsymptoticExpansionHomogenizationKernel::_k_index
const std::array< unsigned int, 6 > _k_index
Definition: AsymptoticExpansionHomogenizationKernel.h:36
AsymptoticExpansionHomogenizationKernel::_base_name
const std::string _base_name
Definition: AsymptoticExpansionHomogenizationKernel.h:30
AsymptoticExpansionHomogenizationKernel::_l_index
const std::array< unsigned int, 6 > _l_index
Definition: AsymptoticExpansionHomogenizationKernel.h:37
validParams
InputParameters validParams()
AsymptoticExpansionHomogenizationKernel::_k
const unsigned int _k
Definition: AsymptoticExpansionHomogenizationKernel.h:38
AsymptoticExpansionHomogenizationKernel::_column
const unsigned int _column
Definition: AsymptoticExpansionHomogenizationKernel.h:35
AsymptoticExpansionHomogenizationKernel::_component
const unsigned int _component
Definition: AsymptoticExpansionHomogenizationKernel.h:34
AsymptoticExpansionHomogenizationKernel::_l
const unsigned int _l
Definition: AsymptoticExpansionHomogenizationKernel.h:39
AsymptoticExpansionHomogenizationKernel::_elasticity_tensor
const MaterialProperty< RankFourTensor > & _elasticity_tensor
Definition: AsymptoticExpansionHomogenizationKernel.h:31