Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #if !defined(LCM_Transport_Coefficients_hpp)
00008 #define LCM_Transport_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 TransportCoefficients : public PHX::EvaluatorWithBaseImpl<Traits>,
00024 public PHX::EvaluatorDerived<EvalT, Traits> {
00025
00026 public:
00027
00031 TransportCoefficients(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> c_lattice_;
00054
00058 PHX::MDField<ScalarT,Cell,QuadPoint> n_trap_;
00059
00063 PHX::MDField<ScalarT,Cell,QuadPoint> eqps_;
00064
00068 PHX::MDField<ScalarT,Cell,QuadPoint> temperature_;
00069
00073 PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> F_;
00074
00078 PHX::MDField<ScalarT,Cell,QuadPoint> J_;
00079
00083 PHX::MDField<ScalarT,Cell,QuadPoint> k_eq_;
00084
00088 PHX::MDField<ScalarT,Cell,QuadPoint> diffusion_coefficient_;
00089
00093 PHX::MDField<ScalarT,Cell,QuadPoint> convection_coefficient_;
00094
00098 PHX::MDField<ScalarT,Cell,QuadPoint> c_trapped_;
00099
00103 PHX::MDField<ScalarT,Cell,QuadPoint> eff_diff_;
00104
00108 PHX::MDField<ScalarT,Cell,QuadPoint> strain_rate_fac_;
00109
00113 PHX::MDField<ScalarT,Cell,QuadPoint> total_concentration_;
00114
00118 PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> F_mech_;
00119
00123 std::size_t num_pts_;
00124
00128 std::size_t num_dims_;
00129
00133 std::size_t worksetSize;
00134
00138 bool weighted_average_;
00139
00143 ScalarT alpha_;
00144
00148 RealType n_lattice_;
00149
00153 RealType ideal_gas_constant_;
00154
00158 RealType trap_binding_energy_;
00159
00163 RealType a_, b_, c_, avogadros_num_;
00164
00168 RealType pre_exponential_factor_;
00169
00173 RealType Q_;
00174
00178 RealType partial_molar_volume_;
00179
00183 RealType ref_total_concentration_;
00184
00188 bool lattice_strain_flag_;
00189
00193 bool have_eqps_;
00194
00195 };
00196 }
00197
00198 #endif