Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #if !defined(LCM_ThermoMechanical_Coefficients_hpp)
00008 #define LCM_ThermoMechanical_Coefficients_hpp
00009
00010 #include "Phalanx_ConfigDefs.hpp"
00011 #include "Phalanx_Evaluator_WithBaseImpl.hpp"
00012 #include "Phalanx_Evaluator_Derived.hpp"
00013 #include "Phalanx_MDField.hpp"
00014 #include "Albany_Layouts.hpp"
00015
00016 namespace LCM {
00022 template<typename EvalT, typename Traits>
00023 class ThermoMechanicalCoefficients : public PHX::EvaluatorWithBaseImpl<Traits>,
00024 public PHX::EvaluatorDerived<EvalT, Traits> {
00025
00026 public:
00027
00031 ThermoMechanicalCoefficients(Teuchos::ParameterList& p,
00032 const Teuchos::RCP<Albany::Layouts>& dl);
00033
00037 void postRegistrationSetup(typename Traits::SetupData d,
00038 PHX::FieldManager<Traits>& vm);
00039
00043 void evaluateFields(typename Traits::EvalData d);
00044
00045 private:
00046
00047 typedef typename EvalT::ScalarT ScalarT;
00048 typedef typename EvalT::MeshScalarT MeshScalarT;
00049
00053 PHX::MDField<ScalarT,Cell,QuadPoint> temperature_;
00054
00058 PHX::MDField<ScalarT,Cell,QuadPoint> thermal_cond_;
00059
00063 PHX::MDField<ScalarT,Dummy> delta_time_;
00064
00068 PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> def_grad_;
00069
00073 PHX::MDField<ScalarT,Cell,QuadPoint> thermal_transient_coeff_;
00074
00078 PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> thermal_diffusivity_;
00079
00083 PHX::MDField<ScalarT,Cell,QuadPoint> temperature_dot_;
00084
00088 std::size_t num_pts_;
00089
00093 std::size_t num_dims_;
00094
00098 RealType heat_capacity_, density_, transient_coeff_;
00099
00103 std::string temperature_name_;
00104
00108 bool have_mech_;
00109
00110 };
00111 }
00112
00113 #endif