Abstract interface for representing a 1-D finite element problem. More...
#include <FELIX_Stokes.hpp>
Public Member Functions | |
Stokes (const Teuchos::RCP< Teuchos::ParameterList > ¶ms, const Teuchos::RCP< ParamLib > ¶mLib, const int numDim_) | |
Default constructor. | |
~Stokes () | |
Destructor. | |
virtual int | spatialDimension () const |
Return number of spatial dimensions. | |
virtual void | buildProblem (Teuchos::ArrayRCP< Teuchos::RCP< Albany::MeshSpecsStruct > > meshSpecs, Albany::StateManager &stateMgr) |
Build the PDE instantiations, boundary conditions, and 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) |
Teuchos::RCP< const Teuchos::ParameterList > | getValidProblemParameters () const |
Each problem must generate it's list of valide parameters. | |
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. Not directly called, but indirectly by following functions. | |
void | constructDirichletEvaluators (const Albany::MeshSpecsStruct &meshSpecs) |
void | constructNeumannEvaluators (const Teuchos::RCP< Albany::MeshSpecsStruct > &meshSpecs) |
Protected Types | |
enum | NS_VAR_TYPE { NS_VAR_TYPE_NONE, NS_VAR_TYPE_CONSTANT, NS_VAR_TYPE_DOF } |
Enumerated type describing how a variable appears. More... | |
Protected Member Functions | |
void | getVariableType (Teuchos::ParameterList ¶mList, const std::string &defaultType, NS_VAR_TYPE &variableType, bool &haveVariable, bool &haveEquation) |
std::string | variableTypeToString (const NS_VAR_TYPE variableType) |
Protected Attributes | |
int | numDim |
NS_VAR_TYPE | flowType |
number of spatial dimensions | |
bool | haveFlow |
type of flow variables | |
bool | haveFlowEq |
have flow variables (momentum+continuity) | |
bool | haveSource |
have flow equations (momentum+continuity) | |
bool | havePSPG |
have source term in heat equation | |
Teuchos::RCP< Albany::Layouts > | dl |
have pressure stabilization | |
Private Member Functions | |
Stokes (const Stokes &) | |
Private to prohibit copying. | |
Stokes & | operator= (const Stokes &) |
Private to prohibit copying. |
Abstract interface for representing a 1-D finite element problem.
Definition at line 25 of file FELIX_Stokes.hpp.
enum FELIX::Stokes::NS_VAR_TYPE [protected] |
Enumerated type describing how a variable appears.
NS_VAR_TYPE_NONE | |
NS_VAR_TYPE_CONSTANT |
Variable does not appear. |
NS_VAR_TYPE_DOF |
Variable is a constant. Variable is a degree-of-freedom |
Definition at line 82 of file FELIX_Stokes.hpp.
FELIX::Stokes::Stokes | ( | const Teuchos::RCP< Teuchos::ParameterList > & | params, | |
const Teuchos::RCP< ParamLib > & | paramLib, | |||
const int | numDim_ | |||
) |
Default constructor.
Definition at line 50 of file FELIX_Stokes.cpp.
FELIX::Stokes::~Stokes | ( | ) |
Destructor.
Definition at line 93 of file FELIX_Stokes.cpp.
FELIX::Stokes::Stokes | ( | const Stokes & | ) | [private] |
Private to prohibit copying.
virtual int FELIX::Stokes::spatialDimension | ( | ) | const [inline, virtual] |
Return number of spatial dimensions.
Implements Albany::AbstractProblem.
Definition at line 37 of file FELIX_Stokes.hpp.
void FELIX::Stokes::buildProblem | ( | Teuchos::ArrayRCP< Teuchos::RCP< Albany::MeshSpecsStruct > > | meshSpecs, | |
Albany::StateManager & | stateMgr | |||
) | [virtual] |
Build the PDE instantiations, boundary conditions, and initial solution.
Definition at line 99 of file FELIX_Stokes.cpp.
Teuchos::Array< Teuchos::RCP< const PHX::FieldTag > > FELIX::Stokes::buildEvaluators | ( | PHX::FieldManager< PHAL::AlbanyTraits > & | fm0, | |
const Albany::MeshSpecsStruct & | meshSpecs, | |||
Albany::StateManager & | stateMgr, | |||
Albany::FieldManagerChoice | fmchoice, | |||
const Teuchos::RCP< Teuchos::ParameterList > & | responseList | |||
) | [virtual] |
Implements Albany::AbstractProblem.
Definition at line 118 of file FELIX_Stokes.cpp.
Teuchos::RCP< const Teuchos::ParameterList > FELIX::Stokes::getValidProblemParameters | ( | ) | const [virtual] |
Each problem must generate it's list of valide parameters.
Reimplemented from Albany::AbstractProblem.
Definition at line 229 of file FELIX_Stokes.cpp.
Teuchos::RCP< const PHX::FieldTag > FELIX::Stokes::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 134 of file FELIX_Stokes.hpp.
void FELIX::Stokes::constructDirichletEvaluators | ( | const Albany::MeshSpecsStruct & | meshSpecs | ) |
Definition at line 134 of file FELIX_Stokes.cpp.
void FELIX::Stokes::constructNeumannEvaluators | ( | const Teuchos::RCP< Albany::MeshSpecsStruct > & | meshSpecs | ) |
Definition at line 153 of file FELIX_Stokes.cpp.
void FELIX::Stokes::getVariableType | ( | Teuchos::ParameterList & | paramList, | |
const std::string & | defaultType, | |||
NS_VAR_TYPE & | variableType, | |||
bool & | haveVariable, | |||
bool & | haveEquation | |||
) | [protected] |
Definition at line 18 of file FELIX_Stokes.cpp.
std::string FELIX::Stokes::variableTypeToString | ( | const NS_VAR_TYPE | variableType | ) | [protected] |
Definition at line 40 of file FELIX_Stokes.cpp.
int FELIX::Stokes::numDim [protected] |
Definition at line 97 of file FELIX_Stokes.hpp.
NS_VAR_TYPE FELIX::Stokes::flowType [protected] |
number of spatial dimensions
Definition at line 99 of file FELIX_Stokes.hpp.
bool FELIX::Stokes::haveFlow [protected] |
type of flow variables
Definition at line 101 of file FELIX_Stokes.hpp.
bool FELIX::Stokes::haveFlowEq [protected] |
have flow variables (momentum+continuity)
Definition at line 103 of file FELIX_Stokes.hpp.
bool FELIX::Stokes::haveSource [protected] |
have flow equations (momentum+continuity)
Definition at line 105 of file FELIX_Stokes.hpp.
bool FELIX::Stokes::havePSPG [protected] |
have source term in heat equation
Definition at line 106 of file FELIX_Stokes.hpp.
Teuchos::RCP<Albany::Layouts> FELIX::Stokes::dl [protected] |
have pressure stabilization
Definition at line 108 of file FELIX_Stokes.hpp.