Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #if !defined(LCM_TransportResidual_hpp)
00008 #define LCM_TransportResidual_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
00015 #include "Albany_Layouts.hpp"
00016
00017 namespace LCM {
00022 template<typename EvalT, typename Traits>
00023 class TransportResidual : public PHX::EvaluatorWithBaseImpl<Traits>,
00024 public PHX::EvaluatorDerived<EvalT, Traits> {
00025
00026 public:
00027
00031 TransportResidual(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> scalar_;
00054
00058 PHX::MDField<ScalarT,Cell,QuadPoint> scalar_dot_;
00059
00063 PHX::MDField<ScalarT,Cell,QuadPoint> scalar_grad_;
00064
00068 PHX::MDField<MeshScalarT,Cell,QuadPoint> weights_;
00069
00073 PHX::MDField<MeshScalarT,Cell,Node,QuadPoint> w_bf_;
00074
00078 PHX::MDField<MeshScalarT,Cell,Node,QuadPoint,Dim> w_grad_bf_;
00079
00083 PHX::MDField<ScalarT,Cell,QuadPoint> source_;
00084
00088 PHX::MDField<ScalarT,Cell,QuadPoint> transient_coeff_;
00089
00093 PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> diffusivity_;
00094
00098 PHX::MDField<ScalarT,Cell,QuadPoint,Dim> convection_vector_;
00099
00103 PHX::MDField<ScalarT,Cell,QuadPoint> species_coupling_;
00104
00108 PHX::MDField<ScalarT,Cell,QuadPoint> stabilization_;
00109
00113 PHX::MDField<ScalarT,Cell,Node> residual_;
00114
00118 bool have_source_;
00119 bool have_transient_;
00120 bool have_diffusion_;
00121 bool have_convection_;
00122 bool have_species_coupling_;
00123 bool have_stabilization_;
00124
00128 std::size_t num_nodes_, num_pts_, num_dims_;
00129
00133 std::string scalar_name_;
00134
00135 };
00136 }
00137
00138 #endif