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 24 of file TwoPhaseStressMaterial.h.

Constructor & Destructor Documentation

TwoPhaseStressMaterial::TwoPhaseStressMaterial ( const InputParameters &  parameters)

Definition at line 25 of file TwoPhaseStressMaterial.C.

26  : Material(parameters),
27  _h_eta(getMaterialProperty<Real>("h")),
28 
29  _base_A(getParam<std::string>("base_A") + "_"),
30  _stress_A(getMaterialPropertyByName<RankTwoTensor>(_base_A + "stress")),
31  _dstress_dstrain_A(getMaterialPropertyByName<RankFourTensor>(_base_A + "Jacobian_mult")),
32 
33  _base_B(getParam<std::string>("base_B") + "_"),
34  _stress_B(getMaterialPropertyByName<RankTwoTensor>(_base_B + "stress")),
35  _dstress_dstrain_B(getMaterialPropertyByName<RankFourTensor>(_base_B + "Jacobian_mult")),
36 
37  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
38  _stress(declareProperty<RankTwoTensor>(_base_name + "stress")),
39  _dstress_dstrain(declareProperty<RankFourTensor>(_base_name + "Jacobian_mult"))
40 {
41 }
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

void TwoPhaseStressMaterial::computeQpProperties ( )
protectedvirtual

Definition at line 44 of file TwoPhaseStressMaterial.C.

45 {
46  _stress[_qp] = _h_eta[_qp] * _stress_B[_qp] + (1.0 - _h_eta[_qp]) * _stress_A[_qp];
47  _dstress_dstrain[_qp] =
48  _h_eta[_qp] * _dstress_dstrain_B[_qp] + (1.0 - _h_eta[_qp]) * _dstress_dstrain_A[_qp];
49 }
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

std::string TwoPhaseStressMaterial::_base_A
protected

Definition at line 36 of file TwoPhaseStressMaterial.h.

std::string TwoPhaseStressMaterial::_base_B
protected

Definition at line 41 of file TwoPhaseStressMaterial.h.

std::string TwoPhaseStressMaterial::_base_name
protected

Definition at line 46 of file TwoPhaseStressMaterial.h.

MaterialProperty<RankFourTensor>& TwoPhaseStressMaterial::_dstress_dstrain
protected

Definition at line 48 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

const MaterialProperty<RankFourTensor>& TwoPhaseStressMaterial::_dstress_dstrain_A
protected

Definition at line 38 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

const MaterialProperty<RankFourTensor>& TwoPhaseStressMaterial::_dstress_dstrain_B
protected

Definition at line 43 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

const MaterialProperty<Real>& TwoPhaseStressMaterial::_h_eta
protected

Definition at line 33 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

MaterialProperty<RankTwoTensor>& TwoPhaseStressMaterial::_stress
protected

Definition at line 47 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

const MaterialProperty<RankTwoTensor>& TwoPhaseStressMaterial::_stress_A
protected

Definition at line 37 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().

const MaterialProperty<RankTwoTensor>& TwoPhaseStressMaterial::_stress_B
protected

Definition at line 42 of file TwoPhaseStressMaterial.h.

Referenced by computeQpProperties().


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