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

ComputeVariableEigenstrain computes an Eigenstrain that is a function of variables defined by a base tensor and a scalar function defined in a Derivative Material. More...

#include <ComputeVariableEigenstrain.h>

Inheritance diagram for ComputeVariableEigenstrain:
[legend]

Public Types

typedef DerivativeMaterialPropertyNameInterface::SymbolName SymbolName
 

Public Member Functions

 ComputeVariableEigenstrain (const InputParameters &parameters)
 
const GenericMaterialProperty< U, is_ad > & getDefaultMaterialProperty (const std::string &name)
 
const GenericMaterialProperty< U, is_ad > & getDefaultMaterialPropertyByName (const std::string &name)
 
void validateDerivativeMaterialPropertyBase (const std::string &base)
 
const MaterialPropertyName derivativePropertyName (const MaterialPropertyName &base, const std::vector< SymbolName > &c) const
 
const MaterialPropertyName derivativePropertyNameFirst (const MaterialPropertyName &base, const SymbolName &c1) const
 
const MaterialPropertyName derivativePropertyNameSecond (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2) const
 
const MaterialPropertyName derivativePropertyNameThird (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2, const SymbolName &c3) const
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const std::vector< VariableName > &c)
 
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="")
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const std::vector< VariableName > &c)
 
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)
 
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)
 
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 > & getMaterialPropertyDerivative (const std::string &base, const std::vector< VariableName > &c)
 
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)
 
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)
 
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="")
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const std::vector< VariableName > &c)
 
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)
 
void validateCoupling (const MaterialPropertyName &base, const VariableName &c1="", const VariableName &c2="", const VariableName &c3="")
 
void validateCoupling (const MaterialPropertyName &base, const std::vector< VariableName > &c, bool validate_aux=true)
 
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="")
 
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
 
const MaterialPropertyName propertyName (const MaterialPropertyName &base, const std::vector< SymbolName > &c) const
 
const MaterialPropertyName propertyNameFirst (const MaterialPropertyName &base, const SymbolName &c1) const
 
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 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
 
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 void computeQpEigenstrain ()
 

Protected Attributes

const unsigned int _num_args
 number of variables the prefactor depends on More...
 
std::vector< const MaterialProperty< Real > * > _dprefactor
 first derivatives of the prefactor w.r.t. to the args More...
 
std::vector< std::vector< const MaterialProperty< Real > * > > _d2prefactor
 second derivatives of the prefactor w.r.t. to the args More...
 
std::vector< MaterialProperty< RankTwoTensor > * > _delastic_strain
 first derivatives of the elastic strain w.r.t. to the args More...
 
std::vector< std::vector< MaterialProperty< RankTwoTensor > * > > _d2elastic_strain
 second derivatives of the elastic strain w.r.t. to the args More...
 

Detailed Description

ComputeVariableEigenstrain computes an Eigenstrain that is a function of variables defined by a base tensor and a scalar function defined in a Derivative Material.

Definition at line 19 of file ComputeVariableEigenstrain.h.

Constructor & Destructor Documentation

◆ ComputeVariableEigenstrain()

ComputeVariableEigenstrain::ComputeVariableEigenstrain ( const InputParameters parameters)

Definition at line 25 of file ComputeVariableEigenstrain.C.

27  _num_args(coupledComponents("args")),
32 {
33  // fetch prerequisite derivatives and build elastic_strain derivatives and cross-derivatives
34  for (unsigned int i = 0; i < _num_args; ++i)
35  {
36  const VariableName & iname = coupledName("args", i);
37  _dprefactor[i] = &getMaterialPropertyDerivative<Real>("prefactor", iname);
38  _delastic_strain[i] =
39  &declarePropertyDerivative<RankTwoTensor>(_base_name + "elastic_strain", iname);
40 
41  _d2prefactor[i].resize(_num_args);
42  _d2elastic_strain[i].resize(_num_args);
43 
44  for (unsigned int j = i; j < _num_args; ++j)
45  {
46  const VariableName & jname = coupledName("args", j);
47  _d2prefactor[i][j] = &getMaterialPropertyDerivative<Real>("prefactor", iname, jname);
48  _d2elastic_strain[i][j] =
49  &declarePropertyDerivative<RankTwoTensor>(_base_name + "elastic_strain", iname, jname);
50  }
51  }
52 }
const unsigned int _num_args
number of variables the prefactor depends on
std::vector< std::vector< MaterialProperty< RankTwoTensor > * > > _d2elastic_strain
second derivatives of the elastic strain w.r.t. to the args
std::vector< std::vector< const MaterialProperty< Real > * > > _d2prefactor
second derivatives of the prefactor w.r.t. to the args
std::vector< MaterialProperty< RankTwoTensor > * > _delastic_strain
first derivatives of the elastic strain w.r.t. to the args
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
std::vector< const MaterialProperty< Real > * > _dprefactor
first derivatives of the prefactor w.r.t. to the args

Member Function Documentation

◆ computeQpEigenstrain()

void ComputeVariableEigenstrain::computeQpEigenstrain ( )
protectedvirtual

Definition at line 55 of file ComputeVariableEigenstrain.C.

56 {
58 
59  // Define derivatives of the elastic strain
60  for (unsigned int i = 0; i < _num_args; ++i)
61  {
62  (*_delastic_strain[i])[_qp] = -_eigen_base_tensor * (*_dprefactor[i])[_qp];
63  for (unsigned int j = i; j < _num_args; ++j)
64  (*_d2elastic_strain[i][j])[_qp] = -_eigen_base_tensor * (*_d2prefactor[i][j])[_qp];
65  }
66 }
const unsigned int _num_args
number of variables the prefactor depends on
virtual void computeQpEigenstrain() override
Compute the eigenstrain and store in _eigenstrain.
std::vector< std::vector< MaterialProperty< RankTwoTensor > * > > _d2elastic_strain
second derivatives of the elastic strain w.r.t. to the args
std::vector< std::vector< const MaterialProperty< Real > * > > _d2prefactor
second derivatives of the prefactor w.r.t. to the args
std::vector< MaterialProperty< RankTwoTensor > * > _delastic_strain
first derivatives of the elastic strain w.r.t. to the args
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
std::vector< const MaterialProperty< Real > * > _dprefactor
first derivatives of the prefactor w.r.t. to the args

◆ validParams()

InputParameters ComputeVariableEigenstrain::validParams ( )
static

Definition at line 15 of file ComputeVariableEigenstrain.C.

16 {
18  params.addClassDescription("Computes an Eigenstrain and its derivatives that is a function of "
19  "multiple variables, where the prefactor is defined in a derivative "
20  "material");
21  params.addRequiredCoupledVar("args", "variable dependencies for the prefactor");
22  return params;
23 }
static InputParameters validParams()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)

Member Data Documentation

◆ _d2elastic_strain

std::vector<std::vector<MaterialProperty<RankTwoTensor> *> > ComputeVariableEigenstrain::_d2elastic_strain
protected

second derivatives of the elastic strain w.r.t. to the args

Definition at line 40 of file ComputeVariableEigenstrain.h.

Referenced by computeQpEigenstrain(), and ComputeVariableEigenstrain().

◆ _d2prefactor

std::vector<std::vector<const MaterialProperty<Real> *> > ComputeVariableEigenstrain::_d2prefactor
protected

second derivatives of the prefactor w.r.t. to the args

Definition at line 35 of file ComputeVariableEigenstrain.h.

Referenced by computeQpEigenstrain(), and ComputeVariableEigenstrain().

◆ _delastic_strain

std::vector<MaterialProperty<RankTwoTensor> *> ComputeVariableEigenstrain::_delastic_strain
protected

first derivatives of the elastic strain w.r.t. to the args

Definition at line 38 of file ComputeVariableEigenstrain.h.

Referenced by computeQpEigenstrain(), and ComputeVariableEigenstrain().

◆ _dprefactor

std::vector<const MaterialProperty<Real> *> ComputeVariableEigenstrain::_dprefactor
protected

first derivatives of the prefactor w.r.t. to the args

Definition at line 33 of file ComputeVariableEigenstrain.h.

Referenced by computeQpEigenstrain(), and ComputeVariableEigenstrain().

◆ _num_args

const unsigned int ComputeVariableEigenstrain::_num_args
protected

number of variables the prefactor depends on

Definition at line 30 of file ComputeVariableEigenstrain.h.

Referenced by computeQpEigenstrain(), and ComputeVariableEigenstrain().


The documentation for this class was generated from the following files: