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

Construct a global strain from the phase strains in a manner that is consistent with the construction of the global elastic energy by DerivativeTwoPhaseMaterial. More...

#include <TwoPhaseStressMaterial.h>

Inheritance diagram for TwoPhaseStressMaterial:
[legend]

Public Member Functions

 TwoPhaseStressMaterial (const InputParameters &parameters)
 

Protected Member Functions

virtual void computeQpProperties ()
 

Protected Attributes

const MaterialProperty< Real > & _h_eta
 
std::string _base_A
 
const MaterialProperty< RankTwoTensor > & _stress_A
 
const MaterialProperty< RankFourTensor > & _dstress_dstrain_A
 
std::string _base_B
 
const MaterialProperty< RankTwoTensor > & _stress_B
 
const MaterialProperty< RankFourTensor > & _dstress_dstrain_B
 
std::string _base_name
 
MaterialProperty< RankTwoTensor > & _stress
 
MaterialProperty< RankFourTensor > & _dstress_dstrain
 

Detailed Description

Construct a global strain from the phase strains in a manner that is consistent with the construction of the global elastic energy by DerivativeTwoPhaseMaterial.

Definition at line 27 of file TwoPhaseStressMaterial.h.

Constructor & Destructor Documentation

◆ TwoPhaseStressMaterial()

TwoPhaseStressMaterial::TwoPhaseStressMaterial ( const InputParameters &  parameters)

Definition at line 30 of file TwoPhaseStressMaterial.C.

31  : Material(parameters),
32  _h_eta(getMaterialProperty<Real>("h")),
33 
34  _base_A(getParam<std::string>("base_A") + "_"),
35  _stress_A(getMaterialPropertyByName<RankTwoTensor>(_base_A + "stress")),
36  _dstress_dstrain_A(getMaterialPropertyByName<RankFourTensor>(_base_A + "Jacobian_mult")),
37 
38  _base_B(getParam<std::string>("base_B") + "_"),
39  _stress_B(getMaterialPropertyByName<RankTwoTensor>(_base_B + "stress")),
40  _dstress_dstrain_B(getMaterialPropertyByName<RankFourTensor>(_base_B + "Jacobian_mult")),
41 
42  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
43  _stress(declareProperty<RankTwoTensor>(_base_name + "stress")),
44  _dstress_dstrain(declareProperty<RankFourTensor>(_base_name + "Jacobian_mult"))
45 {
46 }
const MaterialProperty< RankTwoTensor > & _stress_A
MaterialProperty< RankTwoTensor > & _stress
const MaterialProperty< RankFourTensor > & _dstress_dstrain_B
MaterialProperty< RankFourTensor > & _dstress_dstrain
const MaterialProperty< RankTwoTensor > & _stress_B
const MaterialProperty< RankFourTensor > & _dstress_dstrain_A
const MaterialProperty< Real > & _h_eta

Member Function Documentation

◆ computeQpProperties()

void TwoPhaseStressMaterial::computeQpProperties ( )
protectedvirtual

Definition at line 49 of file TwoPhaseStressMaterial.C.

50 {
51  _stress[_qp] = _h_eta[_qp] * _stress_B[_qp] + (1.0 - _h_eta[_qp]) * _stress_A[_qp];
52  _dstress_dstrain[_qp] =
53  _h_eta[_qp] * _dstress_dstrain_B[_qp] + (1.0 - _h_eta[_qp]) * _dstress_dstrain_A[_qp];
54 }
const MaterialProperty< RankTwoTensor > & _stress_A
MaterialProperty< RankTwoTensor > & _stress
const MaterialProperty< RankFourTensor > & _dstress_dstrain_B
MaterialProperty< RankFourTensor > & _dstress_dstrain
const MaterialProperty< RankTwoTensor > & _stress_B
const MaterialProperty< RankFourTensor > & _dstress_dstrain_A
const MaterialProperty< Real > & _h_eta

Member Data Documentation

◆ _base_A

std::string TwoPhaseStressMaterial::_base_A
protected

Definition at line 39 of file TwoPhaseStressMaterial.h.

◆ _base_B

std::string TwoPhaseStressMaterial::_base_B
protected

Definition at line 44 of file TwoPhaseStressMaterial.h.

◆ _base_name

std::string TwoPhaseStressMaterial::_base_name
protected

Definition at line 49 of file TwoPhaseStressMaterial.h.

◆ _dstress_dstrain

MaterialProperty<RankFourTensor>& TwoPhaseStressMaterial::_dstress_dstrain
protected

Definition at line 51 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

◆ _dstress_dstrain_A

const MaterialProperty<RankFourTensor>& TwoPhaseStressMaterial::_dstress_dstrain_A
protected

Definition at line 41 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

◆ _dstress_dstrain_B

const MaterialProperty<RankFourTensor>& TwoPhaseStressMaterial::_dstress_dstrain_B
protected

Definition at line 46 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

◆ _h_eta

const MaterialProperty<Real>& TwoPhaseStressMaterial::_h_eta
protected

Definition at line 36 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

◆ _stress

MaterialProperty<RankTwoTensor>& TwoPhaseStressMaterial::_stress
protected

Definition at line 50 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

◆ _stress_A

const MaterialProperty<RankTwoTensor>& TwoPhaseStressMaterial::_stress_A
protected

Definition at line 40 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

◆ _stress_B

const MaterialProperty<RankTwoTensor>& TwoPhaseStressMaterial::_stress_B
protected

Definition at line 45 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().


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