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

Albany::MechanicsProblem Class Reference

Definition for the Mechanics Problem. More...

#include <MechanicsProblem.hpp>

Inheritance diagram for Albany::MechanicsProblem:
Inheritance graph
[legend]
Collaboration diagram for Albany::MechanicsProblem:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
Intrepid::FieldContainer
< RealType
FC

Public Member Functions

 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.
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 &param_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::Layoutsdl_
 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.
MechanicsProblemoperator= (const MechanicsProblem &)
 Private to prohibit copying.

Detailed Description

Definition for the Mechanics Problem.

Definition at line 27 of file MechanicsProblem.hpp.


Member Typedef Documentation

typedef Intrepid::FieldContainer<RealType> Albany::MechanicsProblem::FC

Definition at line 31 of file MechanicsProblem.hpp.


Member Enumeration Documentation

Enumerated type describing how a variable appears.

Enumerator:
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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

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


Member Data Documentation

Construct a string for consistent output with surface elements.

Boundary conditions on source term

Definition at line 171 of file MechanicsProblem.hpp.

num of dimensions

Definition at line 176 of file MechanicsProblem.hpp.

number of integration points

Definition at line 181 of file MechanicsProblem.hpp.

number of element nodes

Definition at line 186 of file MechanicsProblem.hpp.

number of element vertices

Definition at line 191 of file MechanicsProblem.hpp.

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.

Type of concentration variable.

Definition at line 221 of file MechanicsProblem.hpp.

Have mechanics.

Definition at line 226 of file MechanicsProblem.hpp.

Have temperature.

Definition at line 231 of file MechanicsProblem.hpp.

Have pressure.

Definition at line 236 of file MechanicsProblem.hpp.

Have transport.

Definition at line 241 of file MechanicsProblem.hpp.

Have transport.

Definition at line 246 of file MechanicsProblem.hpp.

Have damage.

Definition at line 251 of file MechanicsProblem.hpp.

Have mechanics equation.

Definition at line 256 of file MechanicsProblem.hpp.

Have temperature equation.

Definition at line 261 of file MechanicsProblem.hpp.

Have pressure equation.

Definition at line 266 of file MechanicsProblem.hpp.

Have transport equation.

Definition at line 271 of file MechanicsProblem.hpp.

Have projected hydrostatic stress term in transport equation.

Definition at line 277 of file MechanicsProblem.hpp.

Have transport equation.

Definition at line 282 of file MechanicsProblem.hpp.

Have a Peridynamics block.

Definition at line 287 of file MechanicsProblem.hpp.

Data layouts.

Definition at line 292 of file MechanicsProblem.hpp.

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.


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