This class template implements a diffusion kernel with a mobility that can vary spatially and can depend on variables in the simulation. More...
#include <MatDiffusionBase.h>
Public Types | |
| typedef DerivativeMaterialPropertyNameInterface::SymbolName | SymbolName |
| typedef std::vector< int > | JvarMap |
Public Member Functions | |
| MatDiffusionBaseTempl (const InputParameters ¶meters) | |
| const GenericMaterialProperty< U, is_ad > & | getDefaultMaterialProperty (const std::string &name) |
| Fetch a material property if it exists, otherwise return getZeroMaterialProperty. More... | |
| const GenericMaterialProperty< U, is_ad > & | getDefaultMaterialPropertyByName (const std::string &name) |
| Fetch a material property by name if it exists, otherwise return getZeroMaterialProperty. More... | |
| void | validateDerivativeMaterialPropertyBase (const std::string &base) |
| Check if the material property base exists. More... | |
| virtual void | computeOffDiagJacobian (unsigned int jvar) override |
| unsigned int | mapJvarToCvar (unsigned int jvar) |
| Return index into the _coupled_moose_vars array for a given jvar. More... | |
| int | mapJvarToCvar (unsigned int jvar, const JvarMap &jvar_map) |
| Return an index into a specific coupled variable vector for a given jvar. More... | |
| bool | mapJvarToCvar (unsigned int jvar, unsigned int &cvar) |
| Set the cvar value to the mapped jvar value and return true if the mapping exists. More... | |
| const JvarMap & | getJvarMap () |
| Obtain the map connecting libmesh variable ID number to its position in the _coupled_moose_vars vector. More... | |
| const JvarMap & | getParameterJvarMap (std::string parameter_name) |
| Make a specific map for a given parameter name representing a couple variable (vector) More... | |
| const MaterialPropertyName | derivativePropertyName (const MaterialPropertyName &base, const std::vector< SymbolName > &c) const |
| Helper functions to generate the material property names for the arbitrary derivatives. More... | |
| const MaterialPropertyName | derivativePropertyNameFirst (const MaterialPropertyName &base, const SymbolName &c1) const |
| Helper functions to generate the material property names for the first derivatives. More... | |
| const MaterialPropertyName | derivativePropertyNameSecond (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2) const |
| Helper functions to generate the material property names for the second derivatives. More... | |
| const MaterialPropertyName | derivativePropertyNameThird (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2, const SymbolName &c3) const |
| Helper functions to generate the material property names for the third derivatives. More... | |
| GenericMaterialProperty< U, is_ad > & | declarePropertyDerivative (const std::string &base, const std::vector< VariableName > &c) |
| Methods for declaring derivative material properties. More... | |
| GenericMaterialProperty< U, is_ad > & | declarePropertyDerivative (const std::string &base, const std::vector< SymbolName > &c) |
| GenericMaterialProperty< U, is_ad > & | declarePropertyDerivative (const std::string &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="") |
| const GenericMaterialProperty< U, is_ad > & | getMaterialPropertyDerivative (const std::string &base, const std::vector< VariableName > &c) |
| Methods for retrieving derivative material properties. More... | |
| const GenericMaterialProperty< U, is_ad > & | getMaterialPropertyDerivative (const std::string &base, const std::vector< SymbolName > &c) |
| const GenericMaterialProperty< U, is_ad > & | getMaterialPropertyDerivative (const std::string &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="") |
| const GenericMaterialProperty< U, is_ad > & | getMaterialPropertyDerivative (const std::string &base, const SymbolName &c1, unsigned int v2, unsigned int v3=libMesh::invalid_uint) |
Convenience methods for retrieving derivative material properties based on a mix of variable names c and indices v into the _coupled_standard_moose_vars vector. More... | |
| const GenericMaterialProperty< U, is_ad > & | getMaterialPropertyDerivative (const std::string &base, unsigned int v1, unsigned int v2=libMesh::invalid_uint, unsigned int v3=libMesh::invalid_uint) |
| const GenericMaterialProperty< U, is_ad > & | getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const std::vector< VariableName > &c) |
| Methods for retrieving derivative material properties. More... | |
| const GenericMaterialProperty< U, is_ad > & | getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const std::vector< SymbolName > &c) |
| const GenericMaterialProperty< U, is_ad > & | getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="") |
| void | validateCoupling (const MaterialPropertyName &base, const std::vector< VariableName > &c, bool validate_aux=true) |
| check if derivatives of the passed in material property exist w.r.t a variable that is not coupled in to the current object More... | |
| void | validateCoupling (const MaterialPropertyName &base, const VariableName &c1="", const VariableName &c2="", const VariableName &c3="") |
| void | validateNonlinearCoupling (const MaterialPropertyName &base, const VariableName &c1="", const VariableName &c2="", const VariableName &c3="") |
| const MaterialPropertyName | propertyName (const MaterialPropertyName &base, const std::vector< SymbolName > &c) const |
| aliases for the deprecated old function names More... | |
| const MaterialPropertyName | propertyNameFirst (const MaterialPropertyName &base, const SymbolName &c1) const |
| const MaterialPropertyName | propertyNameSecond (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2) const |
| const MaterialPropertyName | propertyNameThird (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2, const SymbolName &c3) const |
Static Public Member Functions | |
| static InputParameters | validParams () |
Protected Member Functions | |
| virtual GenericRealVectorValue< is_ad > | precomputeQpResidual () override |
Protected Attributes | |
| const GenericMaterialProperty< T, is_ad > & | _diffusivity |
| diffusion coefficient More... | |
| const GenericVariableGradient< is_ad > & | _grad_v |
| Gradient of the concentration. More... | |
| usingGenericKernelGradMembers | |
| const unsigned int | _n_args |
| number of coupled moose variables More... | |
This class template implements a diffusion kernel with a mobility that can vary spatially and can depend on variables in the simulation.
Two classes are derived from this template, MatDiffusion for isotropic diffusion and MatAnisoDiffusion for anisotropic diffusion.
| T | Type of the diffusion coefficient parameter. This can be Real for isotropic diffusion or RealTensorValue for the general anisotropic case. |
Definition at line 26 of file MatDiffusionBase.h.
|
inherited |
Definition at line 63 of file JvarMapInterface.h.
|
inherited |
Definition at line 35 of file DerivativeMaterialInterface.h.
| MatDiffusionBaseTempl< T, is_ad >::MatDiffusionBaseTempl | ( | const InputParameters & | parameters | ) |
Definition at line 39 of file MatDiffusionBase.C.
|
overridevirtualinherited |
Definition at line 201 of file JvarMapInterface.h.
|
inherited |
Methods for declaring derivative material properties.
| U | The material property type |
| base | The name of the property to take the derivative of |
| c | The variable(s) to take the derivatives with respect to |
Definition at line 258 of file DerivativeMaterialInterface.h.
|
inherited |
Definition at line 268 of file DerivativeMaterialInterface.h.
|
inherited |
Definition at line 277 of file DerivativeMaterialInterface.h.
|
inherited |
Helper functions to generate the material property names for the arbitrary derivatives.
Definition at line 16 of file DerivativeMaterialPropertyNameInterface.C.
Referenced by DerivativeMaterialPropertyNameInterface::derivativePropertyNameSecond(), DerivativeMaterialPropertyNameInterface::derivativePropertyNameThird(), and DerivativeMaterialPropertyNameInterface::propertyName().
|
inherited |
Helper functions to generate the material property names for the first derivatives.
Definition at line 56 of file DerivativeMaterialPropertyNameInterface.C.
Referenced by DerivativeMaterialPropertyNameInterface::propertyNameFirst().
|
inherited |
Helper functions to generate the material property names for the second derivatives.
Definition at line 63 of file DerivativeMaterialPropertyNameInterface.C.
Referenced by DerivativeMaterialPropertyNameInterface::propertyNameSecond().
|
inherited |
Helper functions to generate the material property names for the third derivatives.
Definition at line 70 of file DerivativeMaterialPropertyNameInterface.C.
Referenced by DerivativeMaterialPropertyNameInterface::propertyNameThird().
|
inherited |
Fetch a material property if it exists, otherwise return getZeroMaterialProperty.
| name | The input parameter key of type MaterialPropertyName |
Definition at line 231 of file DerivativeMaterialInterface.h.
|
inherited |
Fetch a material property by name if it exists, otherwise return getZeroMaterialProperty.
Definition at line 249 of file DerivativeMaterialInterface.h.
|
inlineinherited |
Obtain the map connecting libmesh variable ID number to its position in the _coupled_moose_vars vector.
Definition at line 80 of file JvarMapInterface.h.
|
inherited |
Methods for retrieving derivative material properties.
| U | The material property type |
| base | The name of the property to take the derivative of |
| c | The variable(s) to take the derivatives with respect to |
Definition at line 294 of file DerivativeMaterialInterface.h.
|
inherited |
Check if base is a default property and shortcut to returning zero, as derivatives of constants are zero.
Definition at line 304 of file DerivativeMaterialInterface.h.
|
inherited |
Check if base is a default property and shortcut to returning zero, as derivatives of constants are zero.
Definition at line 324 of file DerivativeMaterialInterface.h.
|
inherited |
Convenience methods for retrieving derivative material properties based on a mix of variable names c and indices v into the _coupled_standard_moose_vars vector.
Definition at line 352 of file DerivativeMaterialInterface.h.
|
inherited |
Definition at line 367 of file DerivativeMaterialInterface.h.
|
inherited |
Methods for retrieving derivative material properties.
| U | The material property type |
| base | The name of the property to take the derivative of |
| c | The variable(s) to take the derivatives with respect to |
Definition at line 382 of file DerivativeMaterialInterface.h.
|
inherited |
Definition at line 392 of file DerivativeMaterialInterface.h.
|
inherited |
Definition at line 402 of file DerivativeMaterialInterface.h.
|
inherited |
Make a specific map for a given parameter name representing a couple variable (vector)
Definition at line 168 of file JvarMapInterface.h.
|
inherited |
Return index into the _coupled_moose_vars array for a given jvar.
Definition at line 147 of file JvarMapInterface.h.
|
inherited |
Return an index into a specific coupled variable vector for a given jvar.
A negative return value indicates that the jvar value does not point to a variable in the couple variable vector corresponding to the mapped parameter.
Definition at line 159 of file JvarMapInterface.h.
|
inherited |
Set the cvar value to the mapped jvar value and return true if the mapping exists.
Otherwise return false.
| [in] | jvar | Variable number passed as argument to computeQpOffDiagJacobian |
| [out] | cvar | Corresponding index into the _coupled_moose_vars array |
|
overrideprotectedvirtual |
Definition at line 62 of file MatDiffusionBase.C.
|
inlineinherited |
aliases for the deprecated old function names
Definition at line 59 of file DerivativeMaterialPropertyNameInterface.h.
|
inlineinherited |
Definition at line 65 of file DerivativeMaterialPropertyNameInterface.h.
|
inlineinherited |
Definition at line 71 of file DerivativeMaterialPropertyNameInterface.h.
|
inlineinherited |
Definition at line 78 of file DerivativeMaterialPropertyNameInterface.h.
|
inherited |
check if derivatives of the passed in material property exist w.r.t a variable that is not coupled in to the current object
Definition at line 461 of file DerivativeMaterialInterface.h.
|
inherited |
Definition at line 515 of file DerivativeMaterialInterface.h.
|
inherited |
Check if the material property base exists.
Print a warning if it doesn't. This is useful in materials that pull in only derivative properties, which are optional. If the base property name has a typo all derivatives will be set to zero without the user ever knowing.
Definition at line 537 of file DerivativeMaterialInterface.h.
|
inherited |
Definition at line 526 of file DerivativeMaterialInterface.h.
|
static |
Definition at line 14 of file MatDiffusionBase.C.
Referenced by MatDiffusionBase< T >::validParams().
|
protected |
diffusion coefficient
Definition at line 38 of file MatDiffusionBase.h.
|
protected |
Gradient of the concentration.
Definition at line 41 of file MatDiffusionBase.h.
|
protectedinherited |
number of coupled moose variables
Definition at line 97 of file JvarMapInterface.h.
|
protected |
Definition at line 43 of file MatDiffusionBase.h.
1.8.14