https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
StressBasedChemicalPotential Class Reference

StressBasedChemicalPotential computes chemical potential based on stress and a direction tensor Forest et. More...

#include <StressBasedChemicalPotential.h>

Inheritance diagram for StressBasedChemicalPotential:
[legend]

Public Types

typedef DerivativeMaterialPropertyNameInterface::SymbolName SymbolName
 

Public Member Functions

 StressBasedChemicalPotential (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 initQpStatefulProperties ()
 
virtual void computeQpProperties ()
 

Protected Attributes

MaterialProperty< Real > & _chemical_potential
 
MaterialProperty< Real > * _dchemical_potential
 
const MaterialProperty< RankTwoTensor > & _stress_old
 The old stress tensor.
 
const MaterialProperty< RealTensorValue > & _direction_tensor
 
const MaterialProperty< Real > & _prefactor
 
const MaterialProperty< Real > * _dprefactor_dc
 
bool _has_coupled_c
 

Private Member Functions

bool haveMaterialProperty (const std::string &prop_name)
 
std::vector< VariableName > buildVariableVector (const VariableName &c1, const VariableName &c2, const VariableName &c3)
 
void validateCouplingHelper (const MaterialPropertyName &base, const std::vector< VariableName > &c, const System &system, std::vector< VariableName > &missing)
 
bool isNotObjectVariable (const VariableName &name)
 

Private Attributes

FEProblemBase_dmi_fe_problem
 

Detailed Description

StressBasedChemicalPotential computes chemical potential based on stress and a direction tensor Forest et.

al. MSMSE 2015

Definition at line 21 of file StressBasedChemicalPotential.h.

Constructor & Destructor Documentation

◆ StressBasedChemicalPotential()

StressBasedChemicalPotential::StressBasedChemicalPotential ( const InputParameters parameters)

Definition at line 29 of file StressBasedChemicalPotential.C.

31 _chemical_potential(declareProperty<Real>(getParam<MaterialPropertyName>("property_name"))),
32 _stress_old(getMaterialPropertyOld<RankTwoTensor>("stress_name")),
33 _direction_tensor(getMaterialProperty<RealTensorValue>("direction_tensor_name")),
34 _prefactor(getMaterialProperty<Real>("prefactor_name")),
35 _has_coupled_c(isCoupled("c") && !isCoupledConstant("c"))
36{
38 {
39 _dchemical_potential = &declarePropertyDerivative<Real>(
40 getParam<MaterialPropertyName>("property_name"), coupledName("c", 0));
41 _dprefactor_dc = &getMaterialPropertyDerivative<Real>("prefactor_name", coupledName("c", 0));
42 }
43}
MaterialProperty< Real > & _chemical_potential
const MaterialProperty< Real > & _prefactor
MaterialProperty< Real > * _dchemical_potential
const MaterialProperty< RankTwoTensor > & _stress_old
The old stress tensor.
const MaterialProperty< Real > * _dprefactor_dc
const MaterialProperty< RealTensorValue > & _direction_tensor

Member Function Documentation

◆ computeQpProperties()

void StressBasedChemicalPotential::computeQpProperties ( )
protectedvirtual

Definition at line 55 of file StressBasedChemicalPotential.C.

56{
57 RankTwoTensor direction_tensor_rank_two = _direction_tensor[_qp];
59 -_stress_old[_qp].doubleContraction(direction_tensor_rank_two) * _prefactor[_qp];
60
62 (*_dchemical_potential)[_qp] =
63 -_stress_old[_qp].doubleContraction(direction_tensor_rank_two) * (*_dprefactor_dc)[_qp];
64}

◆ initQpStatefulProperties()

void StressBasedChemicalPotential::initQpStatefulProperties ( )
protectedvirtual

Definition at line 46 of file StressBasedChemicalPotential.C.

47{
48 _chemical_potential[_qp] = 0.0;
49
51 (*_dchemical_potential)[_qp] = 0.0;
52}

◆ validParams()

InputParameters StressBasedChemicalPotential::validParams ( )
static

Definition at line 15 of file StressBasedChemicalPotential.C.

16{
18 params.addClassDescription("Chemical potential from stress");
19 params.addRequiredParam<MaterialPropertyName>("property_name",
20 "Name of stress based chemical potential");
21 params.addRequiredParam<MaterialPropertyName>("stress_name", "Name of stress property variable");
22 params.addRequiredParam<MaterialPropertyName>("direction_tensor_name",
23 "Name of direction tensor variable");
24 params.addRequiredParam<MaterialPropertyName>("prefactor_name", "Name of prefactor variable");
25 params.addCoupledVar("c", "Concentration variable");
26 return params;
27}
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
void addCoupledVar(const std::string &name, const std::string &doc_string)
static InputParameters validParams()

Member Data Documentation

◆ _chemical_potential

MaterialProperty<Real>& StressBasedChemicalPotential::_chemical_potential
protected

Definition at line 32 of file StressBasedChemicalPotential.h.

Referenced by computeQpProperties(), and initQpStatefulProperties().

◆ _dchemical_potential

MaterialProperty<Real>* StressBasedChemicalPotential::_dchemical_potential
protected

Definition at line 33 of file StressBasedChemicalPotential.h.

Referenced by StressBasedChemicalPotential().

◆ _direction_tensor

const MaterialProperty<RealTensorValue>& StressBasedChemicalPotential::_direction_tensor
protected

Definition at line 37 of file StressBasedChemicalPotential.h.

Referenced by computeQpProperties().

◆ _dprefactor_dc

const MaterialProperty<Real>* StressBasedChemicalPotential::_dprefactor_dc
protected

Definition at line 39 of file StressBasedChemicalPotential.h.

Referenced by StressBasedChemicalPotential().

◆ _has_coupled_c

bool StressBasedChemicalPotential::_has_coupled_c
protected

◆ _prefactor

const MaterialProperty<Real>& StressBasedChemicalPotential::_prefactor
protected

Definition at line 38 of file StressBasedChemicalPotential.h.

Referenced by computeQpProperties().

◆ _stress_old

const MaterialProperty<RankTwoTensor>& StressBasedChemicalPotential::_stress_old
protected

The old stress tensor.

Definition at line 36 of file StressBasedChemicalPotential.h.

Referenced by computeQpProperties().


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