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
FluxBasedStrainIncrement Class Reference

FluxBasedStrainIncrement computes strain increment based on flux (vacancy) Forest et. More...

#include <FluxBasedStrainIncrement.h>

Inheritance diagram for FluxBasedStrainIncrement:
[legend]

Public Types

typedef DerivativeMaterialPropertyNameInterface::SymbolName SymbolName
 

Public Member Functions

 FluxBasedStrainIncrement (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 ()
 
virtual void computeFluxGradTensor ()
 

Protected Attributes

const VariableGradient *const _grad_jx
 
bool _has_yflux
 
bool _has_zflux
 
const VariableGradient *const _grad_jy
 
const VariableGradient *const _grad_jz
 
const VariableValue_gb
 
MaterialProperty< RankTwoTensor > & _strain_increment
 
RankTwoTensor _flux_grad_tensor
 

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

FluxBasedStrainIncrement computes strain increment based on flux (vacancy) Forest et.

al. MSMSE 2015

Definition at line 20 of file FluxBasedStrainIncrement.h.

Constructor & Destructor Documentation

◆ FluxBasedStrainIncrement()

FluxBasedStrainIncrement::FluxBasedStrainIncrement ( const InputParameters parameters)

Definition at line 29 of file FluxBasedStrainIncrement.C.

31 _grad_jx(&coupledGradient("xflux")),
32 _has_yflux(isCoupled("yflux")),
33 _has_zflux(isCoupled("zflux")),
34 _grad_jy(_has_yflux ? &coupledGradient("yflux") : nullptr),
35 _grad_jz(_has_zflux ? &coupledGradient("zflux") : nullptr),
36 _gb(isCoupled("gb") ? coupledValue("gb") : _zero),
38 declareProperty<RankTwoTensor>(getParam<MaterialPropertyName>("property_name")))
39{
40}
MaterialProperty< RankTwoTensor > & _strain_increment
const VariableGradient *const _grad_jy
const VariableGradient *const _grad_jz
const VariableGradient *const _grad_jx

Member Function Documentation

◆ computeFluxGradTensor()

void FluxBasedStrainIncrement::computeFluxGradTensor ( )
protectedvirtual

Definition at line 58 of file FluxBasedStrainIncrement.C.

59{
60 _flux_grad_tensor.zero();
61
63
64 if (_has_yflux)
66
67 if (_has_zflux)
69}
void fillRow(unsigned int r, const libMesh::TypeVector< T > &v)

Referenced by computeQpProperties().

◆ computeQpProperties()

void FluxBasedStrainIncrement::computeQpProperties ( )
protectedvirtual

Definition at line 49 of file FluxBasedStrainIncrement.C.

50{
52
54 _strain_increment[_qp] *= (1.0 - _gb[_qp]) * _dt;
55}
RankTwoTensorTempl< T > transpose() const

◆ initQpStatefulProperties()

void FluxBasedStrainIncrement::initQpStatefulProperties ( )
protectedvirtual

Definition at line 43 of file FluxBasedStrainIncrement.C.

44{
45 _strain_increment[_qp].zero();
46}

◆ validParams()

InputParameters FluxBasedStrainIncrement::validParams ( )
static

Definition at line 16 of file FluxBasedStrainIncrement.C.

17{
19 params.addClassDescription("Compute strain increment based on flux");
20 params.addRequiredCoupledVar("xflux", "x or 0-direction component of flux");
21 params.addCoupledVar("yflux", "y or 1-direction component of flux");
22 params.addCoupledVar("zflux", "z or 2-direction component of flux");
23 params.addCoupledVar("gb", "Grain boundary order parameter");
24 params.addRequiredParam<MaterialPropertyName>("property_name",
25 "Name of diffusive strain increment property");
26 return params;
27}
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
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

◆ _flux_grad_tensor

RankTwoTensor FluxBasedStrainIncrement::_flux_grad_tensor
protected

Definition at line 43 of file FluxBasedStrainIncrement.h.

Referenced by computeFluxGradTensor(), and computeQpProperties().

◆ _gb

const VariableValue& FluxBasedStrainIncrement::_gb
protected

Definition at line 39 of file FluxBasedStrainIncrement.h.

Referenced by computeQpProperties().

◆ _grad_jx

const VariableGradient* const FluxBasedStrainIncrement::_grad_jx
protected

Definition at line 33 of file FluxBasedStrainIncrement.h.

Referenced by computeFluxGradTensor().

◆ _grad_jy

const VariableGradient* const FluxBasedStrainIncrement::_grad_jy
protected

Definition at line 36 of file FluxBasedStrainIncrement.h.

Referenced by computeFluxGradTensor().

◆ _grad_jz

const VariableGradient* const FluxBasedStrainIncrement::_grad_jz
protected

Definition at line 37 of file FluxBasedStrainIncrement.h.

Referenced by computeFluxGradTensor().

◆ _has_yflux

bool FluxBasedStrainIncrement::_has_yflux
protected

Definition at line 34 of file FluxBasedStrainIncrement.h.

Referenced by computeFluxGradTensor().

◆ _has_zflux

bool FluxBasedStrainIncrement::_has_zflux
protected

Definition at line 35 of file FluxBasedStrainIncrement.h.

Referenced by computeFluxGradTensor().

◆ _strain_increment

MaterialProperty<RankTwoTensor>& FluxBasedStrainIncrement::_strain_increment
protected

Definition at line 41 of file FluxBasedStrainIncrement.h.

Referenced by computeQpProperties(), and initQpStatefulProperties().


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