Definition for the Mechanics Problem. More...
#include <MechanicsProblem.hpp>
Public Types | |
typedef Intrepid::FieldContainer < RealType > | FC |
Public Member Functions | |
MechanicsProblem (const Teuchos::RCP< Teuchos::ParameterList > ¶ms, const Teuchos::RCP< ParamLib > ¶m_lib, const int num_dims, const Teuchos::RCP< const Epetra_Comm > &comm) | |
Default constructor. | |
virtual | ~MechanicsProblem () |
Destructor. | |
Teuchos::RCP< std::map < std::string, std::string > > | constructFieldNameMap (bool surface_flag) |
virtual int | spatialDimension () const |
Return number of spatial dimensions. | |
virtual void | buildProblem (Teuchos::ArrayRCP< Teuchos::RCP< Albany::MeshSpecsStruct > > meshSpecs, StateManager &stateMgr) |
Build the PDE instantiations, boundary conditions, initial solution. | |
virtual Teuchos::Array < Teuchos::RCP< const PHX::FieldTag > > | buildEvaluators (PHX::FieldManager< PHAL::AlbanyTraits > &fm0, const Albany::MeshSpecsStruct &meshSpecs, Albany::StateManager &stateMgr, Albany::FieldManagerChoice fmchoice, const Teuchos::RCP< Teuchos::ParameterList > &responseList) |
Build evaluators. | |
Teuchos::RCP< const Teuchos::ParameterList > | getValidProblemParameters () const |
Each problem must generate it's list of valid parameters. | |
void | getAllocatedStates (Teuchos::ArrayRCP< Teuchos::ArrayRCP< Teuchos::RCP< FC > > > old_state, Teuchos::ArrayRCP< Teuchos::ArrayRCP< Teuchos::RCP< FC > > > new_state) const |
Retrieve the state data. | |
template<typename EvalT > | |
Teuchos::RCP< const PHX::FieldTag > | constructEvaluators (PHX::FieldManager< PHAL::AlbanyTraits > &fm0, const Albany::MeshSpecsStruct &meshSpecs, Albany::StateManager &stateMgr, Albany::FieldManagerChoice fmchoice, const Teuchos::RCP< Teuchos::ParameterList > &responseList) |
Main problem setup routine. | |
void | constructDirichletEvaluators (const Albany::MeshSpecsStruct &meshSpecs) |
Setup for the dirichlet BCs. | |
void | constructNeumannEvaluators (const Teuchos::RCP< Albany::MeshSpecsStruct > &meshSpecs) |
Setup for the traction BCs. | |
Protected Types | |
enum | MECH_VAR_TYPE { MECH_VAR_TYPE_NONE, MECH_VAR_TYPE_CONSTANT, MECH_VAR_TYPE_DOF } |
Enumerated type describing how a variable appears. More... | |
Protected Member Functions | |
void | getVariableType (Teuchos::ParameterList ¶m_list, const std::string &default_type, MECH_VAR_TYPE &variable_type, bool &have_variable, bool &have_equation) |
Accessor for variable type. | |
std::string | variableTypeToString (const MECH_VAR_TYPE variable_type) |
Conversion from enum to string. | |
Protected Attributes | |
bool | have_source_ |
Construct a string for consistent output with surface elements. | |
int | num_dims_ |
num of dimensions | |
int | num_pts_ |
number of integration points | |
int | num_nodes_ |
number of element nodes | |
int | num_vertices_ |
number of element vertices | |
MECH_VAR_TYPE | mech_type_ |
Type of mechanics variable (disp or acc). | |
MECH_VAR_TYPE | temperature_type_ |
Type of temperature variable. | |
MECH_VAR_TYPE | pressure_type_ |
Type of pressure variable. | |
MECH_VAR_TYPE | transport_type_ |
Type of concentration variable. | |
MECH_VAR_TYPE | hydrostress_type_ |
Type of concentration variable. | |
MECH_VAR_TYPE | damage_type_ |
Type of concentration variable. | |
bool | have_mech_ |
Have mechanics. | |
bool | have_temperature_ |
Have temperature. | |
bool | have_pressure_ |
Have pressure. | |
bool | have_transport_ |
Have transport. | |
bool | have_hydrostress_ |
Have transport. | |
bool | have_damage_ |
Have damage. | |
bool | have_mech_eq_ |
Have mechanics equation. | |
bool | have_temperature_eq_ |
Have temperature equation. | |
bool | have_pressure_eq_ |
Have pressure equation. | |
bool | have_transport_eq_ |
Have transport equation. | |
bool | have_hydrostress_eq_ |
Have projected hydrostatic stress term in transport equation. | |
bool | have_damage_eq_ |
Have transport equation. | |
bool | have_peridynamics_ |
Have a Peridynamics block. | |
Teuchos::RCP< Albany::Layouts > | dl_ |
Data layouts. | |
Teuchos::RCP < QCAD::MaterialDatabase > | material_db_ |
RCP to matDB object. | |
Teuchos::ArrayRCP < Teuchos::ArrayRCP < Teuchos::RCP< FC > > > | old_state_ |
old state data | |
Teuchos::ArrayRCP < Teuchos::ArrayRCP < Teuchos::RCP< FC > > > | new_state_ |
new state data | |
Private Member Functions | |
MechanicsProblem (const MechanicsProblem &) | |
Private to prohibit copying. | |
MechanicsProblem & | operator= (const MechanicsProblem &) |
Private to prohibit copying. |
Definition for the Mechanics Problem.
Definition at line 27 of file MechanicsProblem.hpp.
typedef Intrepid::FieldContainer<RealType> Albany::MechanicsProblem::FC |
Definition at line 31 of file MechanicsProblem.hpp.
enum Albany::MechanicsProblem::MECH_VAR_TYPE [protected] |
Enumerated type describing how a variable appears.
MECH_VAR_TYPE_NONE | |
MECH_VAR_TYPE_CONSTANT |
Variable does not appear. |
MECH_VAR_TYPE_DOF |
Variable is a constant. Variable is a degree-of-freedom |
Definition at line 142 of file MechanicsProblem.hpp.
Albany::MechanicsProblem::MechanicsProblem | ( | const Teuchos::RCP< Teuchos::ParameterList > & | params, | |
const Teuchos::RCP< ParamLib > & | param_lib, | |||
const int | num_dims, | |||
const Teuchos::RCP< const Epetra_Comm > & | comm | |||
) |
Default constructor.
Definition at line 46 of file MechanicsProblem.cpp.
Albany::MechanicsProblem::~MechanicsProblem | ( | ) | [virtual] |
Destructor.
Definition at line 158 of file MechanicsProblem.cpp.
Albany::MechanicsProblem::MechanicsProblem | ( | const MechanicsProblem & | ) | [private] |
Private to prohibit copying.
Teuchos::RCP<std::map<std::string, std::string> > Albany::MechanicsProblem::constructFieldNameMap | ( | bool | surface_flag | ) |
virtual int Albany::MechanicsProblem::spatialDimension | ( | ) | const [inline, virtual] |
Return number of spatial dimensions.
Implements Albany::AbstractProblem.
Definition at line 55 of file MechanicsProblem.hpp.
void Albany::MechanicsProblem::buildProblem | ( | Teuchos::ArrayRCP< Teuchos::RCP< Albany::MeshSpecsStruct > > | meshSpecs, | |
Albany::StateManager & | stateMgr | |||
) | [virtual] |
Build the PDE instantiations, boundary conditions, initial solution.
Implements Albany::AbstractProblem.
Definition at line 164 of file MechanicsProblem.cpp.
Teuchos::Array< Teuchos::RCP< const PHX::FieldTag > > Albany::MechanicsProblem::buildEvaluators | ( | PHX::FieldManager< PHAL::AlbanyTraits > & | fm0, | |
const Albany::MeshSpecsStruct & | meshSpecs, | |||
Albany::StateManager & | stateMgr, | |||
Albany::FieldManagerChoice | fmchoice, | |||
const Teuchos::RCP< Teuchos::ParameterList > & | responseList | |||
) | [virtual] |
Build evaluators.
Implements Albany::AbstractProblem.
Definition at line 190 of file MechanicsProblem.cpp.
Teuchos::RCP< const Teuchos::ParameterList > Albany::MechanicsProblem::getValidProblemParameters | ( | ) | const [virtual] |
Each problem must generate it's list of valid parameters.
Reimplemented from Albany::AbstractProblem.
Definition at line 306 of file MechanicsProblem.cpp.
void Albany::MechanicsProblem::getAllocatedStates | ( | Teuchos::ArrayRCP< Teuchos::ArrayRCP< Teuchos::RCP< FC > > > | old_state, | |
Teuchos::ArrayRCP< Teuchos::ArrayRCP< Teuchos::RCP< FC > > > | new_state | |||
) | const |
Retrieve the state data.
MechanicsProblem& Albany::MechanicsProblem::operator= | ( | const MechanicsProblem & | ) | [private] |
Private to prohibit copying.
Teuchos::RCP< const PHX::FieldTag > Albany::MechanicsProblem::constructEvaluators | ( | PHX::FieldManager< PHAL::AlbanyTraits > & | fm0, | |
const Albany::MeshSpecsStruct & | meshSpecs, | |||
Albany::StateManager & | stateMgr, | |||
Albany::FieldManagerChoice | fmchoice, | |||
const Teuchos::RCP< Teuchos::ParameterList > & | responseList | |||
) |
Main problem setup routine.
Not directly called, but indirectly by following functions
Definition at line 379 of file MechanicsProblem.hpp.
void Albany::MechanicsProblem::constructDirichletEvaluators | ( | const Albany::MeshSpecsStruct & | meshSpecs | ) |
Setup for the dirichlet BCs.
Definition at line 210 of file MechanicsProblem.cpp.
void Albany::MechanicsProblem::constructNeumannEvaluators | ( | const Teuchos::RCP< Albany::MeshSpecsStruct > & | meshSpecs | ) |
Setup for the traction BCs.
Definition at line 236 of file MechanicsProblem.cpp.
void Albany::MechanicsProblem::getVariableType | ( | Teuchos::ParameterList & | param_list, | |
const std::string & | default_type, | |||
MECH_VAR_TYPE & | variable_type, | |||
bool & | have_variable, | |||
bool & | have_equation | |||
) | [protected] |
Accessor for variable type.
Definition at line 13 of file MechanicsProblem.cpp.
std::string Albany::MechanicsProblem::variableTypeToString | ( | const MECH_VAR_TYPE | variable_type | ) | [protected] |
Conversion from enum to string.
Definition at line 35 of file MechanicsProblem.cpp.
bool Albany::MechanicsProblem::have_source_ [protected] |
Construct a string for consistent output with surface elements.
Boundary conditions on source term
Definition at line 171 of file MechanicsProblem.hpp.
int Albany::MechanicsProblem::num_dims_ [protected] |
num of dimensions
Definition at line 176 of file MechanicsProblem.hpp.
int Albany::MechanicsProblem::num_pts_ [protected] |
number of integration points
Definition at line 181 of file MechanicsProblem.hpp.
int Albany::MechanicsProblem::num_nodes_ [protected] |
number of element nodes
Definition at line 186 of file MechanicsProblem.hpp.
int Albany::MechanicsProblem::num_vertices_ [protected] |
number of element vertices
Definition at line 191 of file MechanicsProblem.hpp.
MECH_VAR_TYPE Albany::MechanicsProblem::mech_type_ [protected] |
Type of mechanics variable (disp or acc).
Definition at line 196 of file MechanicsProblem.hpp.
Type of temperature variable.
Definition at line 201 of file MechanicsProblem.hpp.
Type of pressure variable.
Definition at line 206 of file MechanicsProblem.hpp.
Type of concentration variable.
Definition at line 211 of file MechanicsProblem.hpp.
Type of concentration variable.
Definition at line 216 of file MechanicsProblem.hpp.
MECH_VAR_TYPE Albany::MechanicsProblem::damage_type_ [protected] |
Type of concentration variable.
Definition at line 221 of file MechanicsProblem.hpp.
bool Albany::MechanicsProblem::have_mech_ [protected] |
Have mechanics.
Definition at line 226 of file MechanicsProblem.hpp.
bool Albany::MechanicsProblem::have_temperature_ [protected] |
Have temperature.
Definition at line 231 of file MechanicsProblem.hpp.
bool Albany::MechanicsProblem::have_pressure_ [protected] |
Have pressure.
Definition at line 236 of file MechanicsProblem.hpp.
bool Albany::MechanicsProblem::have_transport_ [protected] |
Have transport.
Definition at line 241 of file MechanicsProblem.hpp.
bool Albany::MechanicsProblem::have_hydrostress_ [protected] |
Have transport.
Definition at line 246 of file MechanicsProblem.hpp.
bool Albany::MechanicsProblem::have_damage_ [protected] |
Have damage.
Definition at line 251 of file MechanicsProblem.hpp.
bool Albany::MechanicsProblem::have_mech_eq_ [protected] |
Have mechanics equation.
Definition at line 256 of file MechanicsProblem.hpp.
bool Albany::MechanicsProblem::have_temperature_eq_ [protected] |
Have temperature equation.
Definition at line 261 of file MechanicsProblem.hpp.
bool Albany::MechanicsProblem::have_pressure_eq_ [protected] |
Have pressure equation.
Definition at line 266 of file MechanicsProblem.hpp.
bool Albany::MechanicsProblem::have_transport_eq_ [protected] |
Have transport equation.
Definition at line 271 of file MechanicsProblem.hpp.
bool Albany::MechanicsProblem::have_hydrostress_eq_ [protected] |
Have projected hydrostatic stress term in transport equation.
Definition at line 277 of file MechanicsProblem.hpp.
bool Albany::MechanicsProblem::have_damage_eq_ [protected] |
Have transport equation.
Definition at line 282 of file MechanicsProblem.hpp.
bool Albany::MechanicsProblem::have_peridynamics_ [protected] |
Have a Peridynamics block.
Definition at line 287 of file MechanicsProblem.hpp.
Teuchos::RCP<Albany::Layouts> Albany::MechanicsProblem::dl_ [protected] |
Data layouts.
Definition at line 292 of file MechanicsProblem.hpp.
Teuchos::RCP<QCAD::MaterialDatabase> Albany::MechanicsProblem::material_db_ [protected] |
RCP to matDB object.
Definition at line 297 of file MechanicsProblem.hpp.
Teuchos::ArrayRCP<Teuchos::ArrayRCP<Teuchos::RCP<FC> > > Albany::MechanicsProblem::old_state_ [protected] |
old state data
Definition at line 302 of file MechanicsProblem.hpp.
Teuchos::ArrayRCP<Teuchos::ArrayRCP<Teuchos::RCP<FC> > > Albany::MechanicsProblem::new_state_ [protected] |
new state data
Definition at line 307 of file MechanicsProblem.hpp.