Constitutive Model Base Class. More...
#include <ConstitutiveModel.hpp>
Public Types | |
typedef EvalT::ScalarT | ScalarT |
typedef EvalT::MeshScalarT | MeshScalarT |
Public Member Functions | |
ConstitutiveModel (Teuchos::ParameterList *p, const Teuchos::RCP< Albany::Layouts > &dl) | |
Constructor. | |
virtual | ~ConstitutiveModel () |
Virtual Destructor. | |
virtual void | computeState (typename Traits::EvalData workset, std::map< std::string, Teuchos::RCP< PHX::MDField< ScalarT > > > dep_fields, std::map< std::string, Teuchos::RCP< PHX::MDField< ScalarT > > > eval_fields)=0 |
Method to compute the state (e.g. | |
void | computeVolumeAverage (typename Traits::EvalData workset, std::map< std::string, Teuchos::RCP< PHX::MDField< ScalarT > > > dep_fields, std::map< std::string, Teuchos::RCP< PHX::MDField< ScalarT > > > eval_fields) |
Optional Method to volume average the pressure. | |
std::map< std::string, Teuchos::RCP< PHX::DataLayout > > | getDependentFieldMap () |
Return a map to the dependent fields. | |
std::map< std::string, Teuchos::RCP< PHX::DataLayout > > | getEvaluatedFieldMap () |
Return a map to the evaluated fields. | |
std::string | getStateVarName (int state_var) |
state variable registration helpers | |
Teuchos::RCP< PHX::DataLayout > | getStateVarLayout (int state_var) |
std::string | getStateVarInitType (int state_var) |
double | getStateVarInitValue (int state_var) |
bool | getStateVarOldStateFlag (int state_var) |
bool | getStateVarOutputFlag (int state_var) |
int | getNumStateVariables () |
Retrive the number of state variables. | |
bool | getIntegrationPointLocationFlag () |
Integration point location flag. | |
void | setCoordVecField (PHX::MDField< MeshScalarT, Cell, QuadPoint, Dim > coord_vec) |
Integration point location set method. | |
void | setTemperatureField (PHX::MDField< ScalarT, Cell, QuadPoint > temperature) |
set the Temperature field | |
void | setDamageField (PHX::MDField< ScalarT, Cell, QuadPoint > damage) |
set the Temperature field | |
void | setWeightsField (PHX::MDField< MeshScalarT, Cell, QuadPoint > weights) |
set the Weights field | |
Protected Attributes | |
int | num_state_variables_ |
Number of State Variables. | |
std::size_t | num_dims_ |
Number of dimensions. | |
std::size_t | num_pts_ |
Number of integration points. | |
bool | need_integration_pt_locations_ |
flag for integration point locations | |
bool | compute_energy_ |
flag that the energy needs to be computed | |
bool | compute_tangent_ |
flag that the tangent needs to be computed | |
bool | have_temperature_ |
Bool for temperature. | |
bool | have_damage_ |
Bool for damage. | |
PHX::MDField< MeshScalarT, Cell, QuadPoint, Dim > | coord_vec_ |
optional integration point locations field | |
PHX::MDField< ScalarT, Cell, QuadPoint > | temperature_ |
optional temperature field | |
PHX::MDField< ScalarT, Cell, QuadPoint > | damage_ |
optional damage field | |
PHX::MDField< MeshScalarT, Cell, QuadPoint > | weights_ |
optional weights field | |
Teuchos::RCP< std::map < std::string, std::string > > | field_name_map_ |
Map of field names. | |
std::vector< std::string > | state_var_names_ |
std::vector< Teuchos::RCP < PHX::DataLayout > > | state_var_layouts_ |
std::vector< std::string > | state_var_init_types_ |
std::vector< double > | state_var_init_values_ |
std::vector< bool > | state_var_old_state_flags_ |
std::vector< bool > | state_var_output_flags_ |
std::map< std::string, Teuchos::RCP< PHX::DataLayout > > | dep_field_map_ |
std::map< std::string, Teuchos::RCP< PHX::DataLayout > > | eval_field_map_ |
RealType | expansion_coeff_ |
Thermal Expansion Coefficient. | |
RealType | ref_temperature_ |
Reference Temperature. | |
RealType | heat_capacity_ |
Heat Capacity. | |
RealType | density_ |
Density. | |
Private Member Functions | |
ConstitutiveModel (const ConstitutiveModel &) | |
Private to prohibit copying. | |
ConstitutiveModel & | operator= (const ConstitutiveModel &) |
Private to prohibit copying. |
Constitutive Model Base Class.
Definition at line 21 of file ConstitutiveModel.hpp.
typedef EvalT::ScalarT LCM::ConstitutiveModel< EvalT, Traits >::ScalarT |
Reimplemented in LCM::AAAModel< EvalT, Traits >, LCM::AnisotropicDamageModel< EvalT, Traits >, LCM::AnisotropicHyperelasticDamageModel< EvalT, Traits >, LCM::CapExplicitModel< EvalT, Traits >, LCM::CapImplicitModel< EvalT, Traits >, LCM::CreepModel< EvalT, Traits >, LCM::CrystalPlasticityModel< EvalT, Traits >, LCM::DruckerPragerModel< EvalT, Traits >, LCM::ElasticDamageModel< EvalT, Traits >, LCM::GursonHMRModel< EvalT, Traits >, LCM::GursonModel< EvalT, Traits >, LCM::HyperelasticDamageModel< EvalT, Traits >, LCM::J2FiberModel< EvalT, Traits >, LCM::J2Model< EvalT, Traits >, LCM::LinearElasticModel< EvalT, Traits >, LCM::MooneyRivlinModel< EvalT, Traits >, LCM::NeohookeanModel< EvalT, Traits >, LCM::RIHMRModel< EvalT, Traits >, LCM::StVenantKirchhoffModel< EvalT, Traits >, and LCM::TvergaardHutchinsonModel< EvalT, Traits >.
Definition at line 25 of file ConstitutiveModel.hpp.
typedef EvalT::MeshScalarT LCM::ConstitutiveModel< EvalT, Traits >::MeshScalarT |
Reimplemented in LCM::AAAModel< EvalT, Traits >, LCM::AnisotropicDamageModel< EvalT, Traits >, LCM::AnisotropicHyperelasticDamageModel< EvalT, Traits >, LCM::CapExplicitModel< EvalT, Traits >, LCM::CapImplicitModel< EvalT, Traits >, LCM::CreepModel< EvalT, Traits >, LCM::CrystalPlasticityModel< EvalT, Traits >, LCM::DruckerPragerModel< EvalT, Traits >, LCM::ElasticDamageModel< EvalT, Traits >, LCM::GursonHMRModel< EvalT, Traits >, LCM::GursonModel< EvalT, Traits >, LCM::HyperelasticDamageModel< EvalT, Traits >, LCM::J2FiberModel< EvalT, Traits >, LCM::J2Model< EvalT, Traits >, LCM::LinearElasticModel< EvalT, Traits >, LCM::MooneyRivlinModel< EvalT, Traits >, LCM::NeohookeanModel< EvalT, Traits >, LCM::RIHMRModel< EvalT, Traits >, LCM::StVenantKirchhoffModel< EvalT, Traits >, and LCM::TvergaardHutchinsonModel< EvalT, Traits >.
Definition at line 26 of file ConstitutiveModel.hpp.
LCM::ConstitutiveModel< EvalT, Traits >::ConstitutiveModel | ( | Teuchos::ParameterList * | p, | |
const Teuchos::RCP< Albany::Layouts > & | dl | |||
) |
Constructor.
Definition at line 17 of file ConstitutiveModel_Def.hpp.
virtual LCM::ConstitutiveModel< EvalT, Traits >::~ConstitutiveModel | ( | ) | [inline, virtual] |
Virtual Destructor.
Definition at line 38 of file ConstitutiveModel.hpp.
LCM::ConstitutiveModel< EvalT, Traits >::ConstitutiveModel | ( | const ConstitutiveModel< EvalT, Traits > & | ) | [private] |
Private to prohibit copying.
virtual void LCM::ConstitutiveModel< EvalT, Traits >::computeState | ( | typename Traits::EvalData | workset, | |
std::map< std::string, Teuchos::RCP< PHX::MDField< ScalarT > > > | dep_fields, | |||
std::map< std::string, Teuchos::RCP< PHX::MDField< ScalarT > > > | eval_fields | |||
) | [pure virtual] |
Method to compute the state (e.g.
energy, stress, tangent)
Implemented in LCM::CreepModel< EvalT, Traits >, LCM::CrystalPlasticityModel< EvalT, Traits >, LCM::DruckerPragerModel< EvalT, Traits >, LCM::ElasticDamageModel< EvalT, Traits >, LCM::GursonHMRModel< EvalT, Traits >, LCM::GursonModel< EvalT, Traits >, LCM::HyperelasticDamageModel< EvalT, Traits >, LCM::J2FiberModel< EvalT, Traits >, LCM::J2Model< EvalT, Traits >, LCM::LinearElasticModel< EvalT, Traits >, LCM::MooneyRivlinModel< EvalT, Traits >, LCM::NeohookeanModel< EvalT, Traits >, LCM::RIHMRModel< EvalT, Traits >, LCM::StVenantKirchhoffModel< EvalT, Traits >, and LCM::TvergaardHutchinsonModel< EvalT, Traits >.
void LCM::ConstitutiveModel< EvalT, Traits >::computeVolumeAverage | ( | typename Traits::EvalData | workset, | |
std::map< std::string, Teuchos::RCP< PHX::MDField< ScalarT > > > | dep_fields, | |||
std::map< std::string, Teuchos::RCP< PHX::MDField< ScalarT > > > | eval_fields | |||
) |
Optional Method to volume average the pressure.
Definition at line 53 of file ConstitutiveModel_Def.hpp.
std::map<std::string, Teuchos::RCP<PHX::DataLayout> > LCM::ConstitutiveModel< EvalT, Traits >::getDependentFieldMap | ( | ) | [inline] |
Return a map to the dependent fields.
Definition at line 64 of file ConstitutiveModel.hpp.
std::map<std::string, Teuchos::RCP<PHX::DataLayout> > LCM::ConstitutiveModel< EvalT, Traits >::getEvaluatedFieldMap | ( | ) | [inline] |
Return a map to the evaluated fields.
Definition at line 73 of file ConstitutiveModel.hpp.
std::string LCM::ConstitutiveModel< EvalT, Traits >::getStateVarName | ( | int | state_var | ) |
state variable registration helpers
Definition at line 89 of file ConstitutiveModel_Def.hpp.
Teuchos::RCP< PHX::DataLayout > LCM::ConstitutiveModel< EvalT, Traits >::getStateVarLayout | ( | int | state_var | ) |
Definition at line 96 of file ConstitutiveModel_Def.hpp.
std::string LCM::ConstitutiveModel< EvalT, Traits >::getStateVarInitType | ( | int | state_var | ) |
Definition at line 103 of file ConstitutiveModel_Def.hpp.
double LCM::ConstitutiveModel< EvalT, Traits >::getStateVarInitValue | ( | int | state_var | ) |
Definition at line 110 of file ConstitutiveModel_Def.hpp.
bool LCM::ConstitutiveModel< EvalT, Traits >::getStateVarOldStateFlag | ( | int | state_var | ) |
Definition at line 117 of file ConstitutiveModel_Def.hpp.
bool LCM::ConstitutiveModel< EvalT, Traits >::getStateVarOutputFlag | ( | int | state_var | ) |
Definition at line 124 of file ConstitutiveModel_Def.hpp.
int LCM::ConstitutiveModel< EvalT, Traits >::getNumStateVariables | ( | ) | [inline] |
Retrive the number of state variables.
Definition at line 91 of file ConstitutiveModel.hpp.
bool LCM::ConstitutiveModel< EvalT, Traits >::getIntegrationPointLocationFlag | ( | ) | [inline] |
Integration point location flag.
Definition at line 100 of file ConstitutiveModel.hpp.
void LCM::ConstitutiveModel< EvalT, Traits >::setCoordVecField | ( | PHX::MDField< MeshScalarT, Cell, QuadPoint, Dim > | coord_vec | ) | [inline] |
Integration point location set method.
Definition at line 109 of file ConstitutiveModel.hpp.
void LCM::ConstitutiveModel< EvalT, Traits >::setTemperatureField | ( | PHX::MDField< ScalarT, Cell, QuadPoint > | temperature | ) | [inline] |
set the Temperature field
Definition at line 118 of file ConstitutiveModel.hpp.
void LCM::ConstitutiveModel< EvalT, Traits >::setDamageField | ( | PHX::MDField< ScalarT, Cell, QuadPoint > | damage | ) | [inline] |
set the Temperature field
Definition at line 127 of file ConstitutiveModel.hpp.
void LCM::ConstitutiveModel< EvalT, Traits >::setWeightsField | ( | PHX::MDField< MeshScalarT, Cell, QuadPoint > | weights | ) | [inline] |
set the Weights field
Definition at line 136 of file ConstitutiveModel.hpp.
ConstitutiveModel& LCM::ConstitutiveModel< EvalT, Traits >::operator= | ( | const ConstitutiveModel< EvalT, Traits > & | ) | [private] |
Private to prohibit copying.
int LCM::ConstitutiveModel< EvalT, Traits >::num_state_variables_ [protected] |
Number of State Variables.
Definition at line 146 of file ConstitutiveModel.hpp.
std::size_t LCM::ConstitutiveModel< EvalT, Traits >::num_dims_ [protected] |
Number of dimensions.
Definition at line 151 of file ConstitutiveModel.hpp.
std::size_t LCM::ConstitutiveModel< EvalT, Traits >::num_pts_ [protected] |
Number of integration points.
Definition at line 156 of file ConstitutiveModel.hpp.
bool LCM::ConstitutiveModel< EvalT, Traits >::need_integration_pt_locations_ [protected] |
flag for integration point locations
Definition at line 161 of file ConstitutiveModel.hpp.
bool LCM::ConstitutiveModel< EvalT, Traits >::compute_energy_ [protected] |
flag that the energy needs to be computed
Definition at line 166 of file ConstitutiveModel.hpp.
bool LCM::ConstitutiveModel< EvalT, Traits >::compute_tangent_ [protected] |
flag that the tangent needs to be computed
Definition at line 171 of file ConstitutiveModel.hpp.
bool LCM::ConstitutiveModel< EvalT, Traits >::have_temperature_ [protected] |
Bool for temperature.
Definition at line 176 of file ConstitutiveModel.hpp.
bool LCM::ConstitutiveModel< EvalT, Traits >::have_damage_ [protected] |
Bool for damage.
Definition at line 181 of file ConstitutiveModel.hpp.
PHX::MDField<MeshScalarT, Cell, QuadPoint, Dim> LCM::ConstitutiveModel< EvalT, Traits >::coord_vec_ [protected] |
optional integration point locations field
Definition at line 186 of file ConstitutiveModel.hpp.
PHX::MDField<ScalarT, Cell, QuadPoint> LCM::ConstitutiveModel< EvalT, Traits >::temperature_ [protected] |
optional temperature field
Definition at line 191 of file ConstitutiveModel.hpp.
PHX::MDField<ScalarT, Cell, QuadPoint> LCM::ConstitutiveModel< EvalT, Traits >::damage_ [protected] |
optional damage field
Definition at line 196 of file ConstitutiveModel.hpp.
PHX::MDField<MeshScalarT, Cell, QuadPoint> LCM::ConstitutiveModel< EvalT, Traits >::weights_ [protected] |
optional weights field
Definition at line 201 of file ConstitutiveModel.hpp.
Teuchos::RCP<std::map<std::string, std::string> > LCM::ConstitutiveModel< EvalT, Traits >::field_name_map_ [protected] |
Map of field names.
Definition at line 206 of file ConstitutiveModel.hpp.
std::vector<std::string> LCM::ConstitutiveModel< EvalT, Traits >::state_var_names_ [protected] |
Definition at line 208 of file ConstitutiveModel.hpp.
std::vector<Teuchos::RCP<PHX::DataLayout> > LCM::ConstitutiveModel< EvalT, Traits >::state_var_layouts_ [protected] |
Definition at line 209 of file ConstitutiveModel.hpp.
std::vector<std::string> LCM::ConstitutiveModel< EvalT, Traits >::state_var_init_types_ [protected] |
Definition at line 210 of file ConstitutiveModel.hpp.
std::vector<double> LCM::ConstitutiveModel< EvalT, Traits >::state_var_init_values_ [protected] |
Definition at line 211 of file ConstitutiveModel.hpp.
std::vector<bool> LCM::ConstitutiveModel< EvalT, Traits >::state_var_old_state_flags_ [protected] |
Definition at line 212 of file ConstitutiveModel.hpp.
std::vector<bool> LCM::ConstitutiveModel< EvalT, Traits >::state_var_output_flags_ [protected] |
Definition at line 213 of file ConstitutiveModel.hpp.
std::map<std::string, Teuchos::RCP<PHX::DataLayout> > LCM::ConstitutiveModel< EvalT, Traits >::dep_field_map_ [protected] |
Definition at line 215 of file ConstitutiveModel.hpp.
std::map<std::string, Teuchos::RCP<PHX::DataLayout> > LCM::ConstitutiveModel< EvalT, Traits >::eval_field_map_ [protected] |
Definition at line 216 of file ConstitutiveModel.hpp.
RealType LCM::ConstitutiveModel< EvalT, Traits >::expansion_coeff_ [protected] |
Thermal Expansion Coefficient.
Definition at line 221 of file ConstitutiveModel.hpp.
RealType LCM::ConstitutiveModel< EvalT, Traits >::ref_temperature_ [protected] |
Reference Temperature.
Definition at line 226 of file ConstitutiveModel.hpp.
RealType LCM::ConstitutiveModel< EvalT, Traits >::heat_capacity_ [protected] |
Heat Capacity.
Definition at line 231 of file ConstitutiveModel.hpp.
RealType LCM::ConstitutiveModel< EvalT, Traits >::density_ [protected] |
Density.
Definition at line 236 of file ConstitutiveModel.hpp.