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

PHAL::ThermalConductivity< EvalT, Traits > Class Template Reference

Evaluates thermal conductivity, either as a constant or a truncated KL expansion. More...

#include <PHAL_ThermalConductivity.hpp>

Collaboration diagram for PHAL::ThermalConductivity< EvalT, Traits >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef EvalT::ScalarT ScalarT
typedef EvalT::MeshScalarT MeshScalarT

Public Member Functions

 ThermalConductivity (Teuchos::ParameterList &p)
void postRegistrationSetup (typename Traits::SetupData d, PHX::FieldManager< Traits > &vm)
void evaluateFields (typename Traits::EvalData d)
ScalarTgetValue (const std::string &n)

Private Member Functions

Teuchos::RCP< const
Teuchos::ParameterList > 
getValidThermalCondParameters () const
 Validate the name strings under "Thermal Conductivity" section in xml input file,.
void init_constant (ScalarT value, Teuchos::ParameterList &p)
 Convenience function to initialize constant thermal conductivity.
void init_KL_RF (std::string &type, Teuchos::ParameterList &subList, Teuchos::ParameterList &p)
 Convenience function to initialize thermal conductivity based on.

Private Attributes

bool is_constant
std::size_t numQPs
std::size_t numDims
PHX::MDField< MeshScalarT,
Cell, QuadPoint, Dim
coordVec
PHX::MDField< ScalarT, Cell,
QuadPoint
thermalCond
std::string type
 Conductivity type.
ScalarT constant_value
 Constant value.
Teuchos::RCP
< Stokhos::KL::ExponentialRandomField
< MeshScalarT > > 
exp_rf_kl
 Exponential random field.
Teuchos::Array< ScalarTrv
 Values of the random variables.
Teuchos::RCP
< QCAD::MaterialDatabase
materialDB
 Material database - holds thermal conductivity among other quantities.

Detailed Description

template<typename EvalT, typename Traits>
class PHAL::ThermalConductivity< EvalT, Traits >

Evaluates thermal conductivity, either as a constant or a truncated KL expansion.

This class may be used in two ways.

1. The simplest is to use a constant thermal conductivity across the entire domain (one element block, one material), say with a value of 5.0. In this case, one would declare at the "Problem" level, that a constant thermal conductivity was being used, and its value was 5.0:

<ParameterList name="Problem"> ... <ParameterList name="Thermal Conductivity"> <Parameter name="Thermal Conductivity Type" type="string" value="Constant"> <Parameter name="Value" type="double" value="5.0"> </ParameterList> </ParameterList>

An example of this is test problem is SteadyHeat2DInternalNeumann

2. The other extreme is to have a multiple element block problem, say 3, with each element block corresponding to a material. Each element block has its own field manager, and different evaluators are used in each element block. See the test problem Heat2DMMCylWithSource for an example of this use case.

Definition at line 51 of file PHAL_ThermalConductivity.hpp.


Member Typedef Documentation

template<typename EvalT, typename Traits>
typedef EvalT::ScalarT PHAL::ThermalConductivity< EvalT, Traits >::ScalarT

Definition at line 57 of file PHAL_ThermalConductivity.hpp.

template<typename EvalT, typename Traits>
typedef EvalT::MeshScalarT PHAL::ThermalConductivity< EvalT, Traits >::MeshScalarT

Definition at line 58 of file PHAL_ThermalConductivity.hpp.


Constructor & Destructor Documentation

template<typename EvalT , typename Traits >
PHAL::ThermalConductivity< EvalT, Traits >::ThermalConductivity ( Teuchos::ParameterList &  p  ) 

Definition at line 25 of file PHAL_ThermalConductivity_Def.hpp.


Member Function Documentation

template<typename EvalT , typename Traits >
void PHAL::ThermalConductivity< EvalT, Traits >::postRegistrationSetup ( typename Traits::SetupData  d,
PHX::FieldManager< Traits > &  vm 
)

Definition at line 168 of file PHAL_ThermalConductivity_Def.hpp.

template<typename EvalT , typename Traits >
void PHAL::ThermalConductivity< EvalT, Traits >::evaluateFields ( typename Traits::EvalData  d  ) 

Definition at line 179 of file PHAL_ThermalConductivity_Def.hpp.

template<typename EvalT , typename Traits >
ThermalConductivity< EvalT, Traits >::ScalarT & PHAL::ThermalConductivity< EvalT, Traits >::getValue ( const std::string &  n  ) 

Definition at line 207 of file PHAL_ThermalConductivity_Def.hpp.

template<typename EvalT , typename Traits >
Teuchos::RCP< const Teuchos::ParameterList > PHAL::ThermalConductivity< EvalT, Traits >::getValidThermalCondParameters (  )  const [private]

Validate the name strings under "Thermal Conductivity" section in xml input file,.

Definition at line 227 of file PHAL_ThermalConductivity_Def.hpp.

template<typename EvalT , typename Traits >
void PHAL::ThermalConductivity< EvalT, Traits >::init_constant ( ScalarT  value,
Teuchos::ParameterList &  p 
) [private]

Convenience function to initialize constant thermal conductivity.

Definition at line 112 of file PHAL_ThermalConductivity_Def.hpp.

template<typename EvalT , typename Traits >
void PHAL::ThermalConductivity< EvalT, Traits >::init_KL_RF ( std::string &  type,
Teuchos::ParameterList &  subList,
Teuchos::ParameterList &  p 
) [private]

Convenience function to initialize thermal conductivity based on.

Definition at line 131 of file PHAL_ThermalConductivity_Def.hpp.


Member Data Documentation

template<typename EvalT, typename Traits>
bool PHAL::ThermalConductivity< EvalT, Traits >::is_constant [private]

Definition at line 75 of file PHAL_ThermalConductivity.hpp.

template<typename EvalT, typename Traits>
std::size_t PHAL::ThermalConductivity< EvalT, Traits >::numQPs [private]

Definition at line 77 of file PHAL_ThermalConductivity.hpp.

template<typename EvalT, typename Traits>
std::size_t PHAL::ThermalConductivity< EvalT, Traits >::numDims [private]

Definition at line 78 of file PHAL_ThermalConductivity.hpp.

template<typename EvalT, typename Traits>
PHX::MDField<MeshScalarT,Cell,QuadPoint,Dim> PHAL::ThermalConductivity< EvalT, Traits >::coordVec [private]

Definition at line 79 of file PHAL_ThermalConductivity.hpp.

template<typename EvalT, typename Traits>
PHX::MDField<ScalarT,Cell,QuadPoint> PHAL::ThermalConductivity< EvalT, Traits >::thermalCond [private]

Definition at line 80 of file PHAL_ThermalConductivity.hpp.

template<typename EvalT, typename Traits>
std::string PHAL::ThermalConductivity< EvalT, Traits >::type [private]

Conductivity type.

Definition at line 83 of file PHAL_ThermalConductivity.hpp.

template<typename EvalT, typename Traits>
ScalarT PHAL::ThermalConductivity< EvalT, Traits >::constant_value [private]

Constant value.

Definition at line 86 of file PHAL_ThermalConductivity.hpp.

template<typename EvalT, typename Traits>
Teuchos::RCP< Stokhos::KL::ExponentialRandomField<MeshScalarT> > PHAL::ThermalConductivity< EvalT, Traits >::exp_rf_kl [private]

Exponential random field.

Definition at line 89 of file PHAL_ThermalConductivity.hpp.

template<typename EvalT, typename Traits>
Teuchos::Array<ScalarT> PHAL::ThermalConductivity< EvalT, Traits >::rv [private]

Values of the random variables.

Definition at line 92 of file PHAL_ThermalConductivity.hpp.

template<typename EvalT, typename Traits>
Teuchos::RCP<QCAD::MaterialDatabase> PHAL::ThermalConductivity< EvalT, Traits >::materialDB [private]

Material database - holds thermal conductivity among other quantities.

Definition at line 95 of file PHAL_ThermalConductivity.hpp.


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