Public Types | Public Member Functions | Protected Attributes | Private Member Functions

LCM::ConstitutiveModel< EvalT, Traits > Class Template Reference

Constitutive Model Base Class. More...

#include <ConstitutiveModel.hpp>

Inheritance diagram for LCM::ConstitutiveModel< EvalT, Traits >:
Inheritance graph
[legend]
Collaboration diagram for LCM::ConstitutiveModel< EvalT, Traits >:
Collaboration graph
[legend]

List of all members.

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.
ConstitutiveModeloperator= (const ConstitutiveModel &)
 Private to prohibit copying.

Detailed Description

template<typename EvalT, typename Traits>
class LCM::ConstitutiveModel< EvalT, Traits >

Constitutive Model Base Class.

Definition at line 21 of file ConstitutiveModel.hpp.


Member Typedef Documentation

template<typename EvalT , typename Traits >
typedef EvalT::ScalarT LCM::ConstitutiveModel< EvalT, Traits >::ScalarT
template<typename EvalT , typename Traits >
typedef EvalT::MeshScalarT LCM::ConstitutiveModel< EvalT, Traits >::MeshScalarT

Constructor & Destructor Documentation

template<typename EvalT , typename Traits >
LCM::ConstitutiveModel< EvalT, Traits >::ConstitutiveModel ( Teuchos::ParameterList *  p,
const Teuchos::RCP< Albany::Layouts > &  dl 
)

Constructor.

Definition at line 17 of file ConstitutiveModel_Def.hpp.

template<typename EvalT , typename Traits >
virtual LCM::ConstitutiveModel< EvalT, Traits >::~ConstitutiveModel (  )  [inline, virtual]

Virtual Destructor.

Definition at line 38 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
LCM::ConstitutiveModel< EvalT, Traits >::ConstitutiveModel ( const ConstitutiveModel< EvalT, Traits > &   )  [private]

Private to prohibit copying.


Member Function Documentation

template<typename EvalT , typename Traits >
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]
template<typename EvalT , typename 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.

template<typename EvalT , typename Traits >
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.

template<typename EvalT , typename Traits >
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.

template<typename EvalT , typename Traits >
std::string LCM::ConstitutiveModel< EvalT, Traits >::getStateVarName ( int  state_var  ) 

state variable registration helpers

Definition at line 89 of file ConstitutiveModel_Def.hpp.

template<typename EvalT , typename Traits >
Teuchos::RCP< PHX::DataLayout > LCM::ConstitutiveModel< EvalT, Traits >::getStateVarLayout ( int  state_var  ) 

Definition at line 96 of file ConstitutiveModel_Def.hpp.

template<typename EvalT , typename Traits >
std::string LCM::ConstitutiveModel< EvalT, Traits >::getStateVarInitType ( int  state_var  ) 

Definition at line 103 of file ConstitutiveModel_Def.hpp.

template<typename EvalT , typename Traits >
double LCM::ConstitutiveModel< EvalT, Traits >::getStateVarInitValue ( int  state_var  ) 

Definition at line 110 of file ConstitutiveModel_Def.hpp.

template<typename EvalT , typename Traits >
bool LCM::ConstitutiveModel< EvalT, Traits >::getStateVarOldStateFlag ( int  state_var  ) 

Definition at line 117 of file ConstitutiveModel_Def.hpp.

template<typename EvalT , typename Traits >
bool LCM::ConstitutiveModel< EvalT, Traits >::getStateVarOutputFlag ( int  state_var  ) 

Definition at line 124 of file ConstitutiveModel_Def.hpp.

template<typename EvalT , typename Traits >
int LCM::ConstitutiveModel< EvalT, Traits >::getNumStateVariables (  )  [inline]

Retrive the number of state variables.

Definition at line 91 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
bool LCM::ConstitutiveModel< EvalT, Traits >::getIntegrationPointLocationFlag (  )  [inline]

Integration point location flag.

Definition at line 100 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
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.

template<typename EvalT , typename Traits >
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.

template<typename EvalT , typename Traits >
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.

template<typename EvalT , typename Traits >
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.

template<typename EvalT , typename Traits >
ConstitutiveModel& LCM::ConstitutiveModel< EvalT, Traits >::operator= ( const ConstitutiveModel< EvalT, Traits > &   )  [private]

Private to prohibit copying.


Member Data Documentation

template<typename EvalT , typename Traits >
int LCM::ConstitutiveModel< EvalT, Traits >::num_state_variables_ [protected]

Number of State Variables.

Definition at line 146 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
std::size_t LCM::ConstitutiveModel< EvalT, Traits >::num_dims_ [protected]

Number of dimensions.

Definition at line 151 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
std::size_t LCM::ConstitutiveModel< EvalT, Traits >::num_pts_ [protected]

Number of integration points.

Definition at line 156 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
bool LCM::ConstitutiveModel< EvalT, Traits >::need_integration_pt_locations_ [protected]

flag for integration point locations

Definition at line 161 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
bool LCM::ConstitutiveModel< EvalT, Traits >::compute_energy_ [protected]

flag that the energy needs to be computed

Definition at line 166 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
bool LCM::ConstitutiveModel< EvalT, Traits >::compute_tangent_ [protected]

flag that the tangent needs to be computed

Definition at line 171 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
bool LCM::ConstitutiveModel< EvalT, Traits >::have_temperature_ [protected]

Bool for temperature.

Definition at line 176 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
bool LCM::ConstitutiveModel< EvalT, Traits >::have_damage_ [protected]

Bool for damage.

Definition at line 181 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
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.

template<typename EvalT , typename Traits >
PHX::MDField<ScalarT, Cell, QuadPoint> LCM::ConstitutiveModel< EvalT, Traits >::temperature_ [protected]

optional temperature field

Definition at line 191 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
PHX::MDField<ScalarT, Cell, QuadPoint> LCM::ConstitutiveModel< EvalT, Traits >::damage_ [protected]

optional damage field

Definition at line 196 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
PHX::MDField<MeshScalarT, Cell, QuadPoint> LCM::ConstitutiveModel< EvalT, Traits >::weights_ [protected]

optional weights field

Definition at line 201 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
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.

template<typename EvalT , typename Traits >
std::vector<std::string> LCM::ConstitutiveModel< EvalT, Traits >::state_var_names_ [protected]

Definition at line 208 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
std::vector<Teuchos::RCP<PHX::DataLayout> > LCM::ConstitutiveModel< EvalT, Traits >::state_var_layouts_ [protected]

Definition at line 209 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
std::vector<std::string> LCM::ConstitutiveModel< EvalT, Traits >::state_var_init_types_ [protected]

Definition at line 210 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
std::vector<double> LCM::ConstitutiveModel< EvalT, Traits >::state_var_init_values_ [protected]

Definition at line 211 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
std::vector<bool> LCM::ConstitutiveModel< EvalT, Traits >::state_var_old_state_flags_ [protected]

Definition at line 212 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
std::vector<bool> LCM::ConstitutiveModel< EvalT, Traits >::state_var_output_flags_ [protected]

Definition at line 213 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
std::map<std::string, Teuchos::RCP<PHX::DataLayout> > LCM::ConstitutiveModel< EvalT, Traits >::dep_field_map_ [protected]

Definition at line 215 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
std::map<std::string, Teuchos::RCP<PHX::DataLayout> > LCM::ConstitutiveModel< EvalT, Traits >::eval_field_map_ [protected]

Definition at line 216 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
RealType LCM::ConstitutiveModel< EvalT, Traits >::expansion_coeff_ [protected]

Thermal Expansion Coefficient.

Definition at line 221 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
RealType LCM::ConstitutiveModel< EvalT, Traits >::ref_temperature_ [protected]

Reference Temperature.

Definition at line 226 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
RealType LCM::ConstitutiveModel< EvalT, Traits >::heat_capacity_ [protected]

Heat Capacity.

Definition at line 231 of file ConstitutiveModel.hpp.

template<typename EvalT , typename Traits >
RealType LCM::ConstitutiveModel< EvalT, Traits >::density_ [protected]

Density.

Definition at line 236 of file ConstitutiveModel.hpp.


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