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

Computes a concentration-dependent ExtraStress bases on the van der Waals equation of state that is added to the stress computed by the constitutive model. More...

#include <ComputeExtraStressVDWGas.h>

Inheritance diagram for ComputeExtraStressVDWGas:
[legend]

Public Member Functions

 ComputeExtraStressVDWGas (const InputParameters &parameters)
 

Protected Member Functions

virtual void computeQpExtraStress ()
 
virtual void computeQpProperties ()
 

Protected Attributes

const MaterialProperty< Real > & _b
 
const MaterialProperty< Real > & _Va
 
const MaterialProperty< Real > & _T
 
const VariableValue & _cg
 
const Real _nondim_factor
 
const Real _kB
 
std::string _base_name
 
std::string _extra_stress_name
 
MaterialProperty< RankTwoTensor > & _extra_stress
 

Detailed Description

Computes a concentration-dependent ExtraStress bases on the van der Waals equation of state that is added to the stress computed by the constitutive model.

Definition at line 24 of file ComputeExtraStressVDWGas.h.

Constructor & Destructor Documentation

◆ ComputeExtraStressVDWGas()

ComputeExtraStressVDWGas::ComputeExtraStressVDWGas ( const InputParameters &  parameters)

Definition at line 35 of file ComputeExtraStressVDWGas.C.

36  : ComputeExtraStressBase(parameters),
37  _b(getMaterialProperty<Real>("b")),
38  _Va(getMaterialProperty<Real>("Va")),
39  _T(getMaterialProperty<Real>("T")),
40  _cg(coupledValue("cg")),
41  _nondim_factor(getParam<Real>("nondim_factor")),
42  _kB(1.38064852e-23) // Boltzmann constant in J/K
43 {
44 }
ComputeExtraStressBase(const InputParameters &parameters)
const MaterialProperty< Real > & _b
const MaterialProperty< Real > & _T
const MaterialProperty< Real > & _Va

Member Function Documentation

◆ computeQpExtraStress()

void ComputeExtraStressVDWGas::computeQpExtraStress ( )
protectedvirtual

Implements ComputeExtraStressBase.

Definition at line 47 of file ComputeExtraStressVDWGas.C.

48 {
49  _extra_stress[_qp].zero();
50  _extra_stress[_qp].addIa(-_kB * _T[_qp] / (_Va[_qp] / _cg[_qp] - _b[_qp]) * 1.0e27 /
52 }
const MaterialProperty< Real > & _b
const MaterialProperty< Real > & _T
MaterialProperty< RankTwoTensor > & _extra_stress
const MaterialProperty< Real > & _Va

◆ computeQpProperties()

void ComputeExtraStressBase::computeQpProperties ( )
protectedvirtualinherited

Definition at line 33 of file ComputeExtraStressBase.C.

34 {
36 }
virtual void computeQpExtraStress()=0

Member Data Documentation

◆ _b

const MaterialProperty<Real>& ComputeExtraStressVDWGas::_b
protected

Definition at line 32 of file ComputeExtraStressVDWGas.h.

Referenced by computeQpExtraStress().

◆ _base_name

std::string ComputeExtraStressBase::_base_name
protectedinherited

Definition at line 34 of file ComputeExtraStressBase.h.

◆ _cg

const VariableValue& ComputeExtraStressVDWGas::_cg
protected

Definition at line 36 of file ComputeExtraStressVDWGas.h.

Referenced by computeQpExtraStress().

◆ _extra_stress

MaterialProperty<RankTwoTensor>& ComputeExtraStressBase::_extra_stress
protectedinherited

◆ _extra_stress_name

std::string ComputeExtraStressBase::_extra_stress_name
protectedinherited

Definition at line 35 of file ComputeExtraStressBase.h.

◆ _kB

const Real ComputeExtraStressVDWGas::_kB
protected

Definition at line 38 of file ComputeExtraStressVDWGas.h.

Referenced by computeQpExtraStress().

◆ _nondim_factor

const Real ComputeExtraStressVDWGas::_nondim_factor
protected

Definition at line 37 of file ComputeExtraStressVDWGas.h.

Referenced by computeQpExtraStress().

◆ _T

const MaterialProperty<Real>& ComputeExtraStressVDWGas::_T
protected

Definition at line 34 of file ComputeExtraStressVDWGas.h.

Referenced by computeQpExtraStress().

◆ _Va

const MaterialProperty<Real>& ComputeExtraStressVDWGas::_Va
protected

Definition at line 33 of file ComputeExtraStressVDWGas.h.

Referenced by computeQpExtraStress().


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