Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #ifndef FELIX_STOKESMOMENTUMRESID_HPP
00008 #define FELIX_STOKESMOMENTUMRESID_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 FELIX {
00023 template<typename EvalT, typename Traits>
00024 class StokesMomentumResid : public PHX::EvaluatorWithBaseImpl<Traits>,
00025 public PHX::EvaluatorDerived<EvalT, Traits> {
00026
00027 public:
00028
00029 typedef typename EvalT::ScalarT ScalarT;
00030
00031 StokesMomentumResid(const Teuchos::ParameterList& p,
00032 const Teuchos::RCP<Albany::Layouts>& dl);
00033
00034 void postRegistrationSetup(typename Traits::SetupData d,
00035 PHX::FieldManager<Traits>& vm);
00036
00037 void evaluateFields(typename Traits::EvalData d);
00038
00039 private:
00040
00041 typedef typename EvalT::MeshScalarT MeshScalarT;
00042
00043
00044 PHX::MDField<MeshScalarT,Cell,Node,QuadPoint> wBF;
00045 PHX::MDField<MeshScalarT,Cell,Node,QuadPoint,Dim> wGradBF;
00046 PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> VGrad;
00047 PHX::MDField<ScalarT,Cell,QuadPoint,Dim> V;
00048 PHX::MDField<ScalarT,Cell,QuadPoint> P;
00049 PHX::MDField<ScalarT,Cell,QuadPoint,Dim> force;
00050 PHX::MDField<ScalarT,Cell,QuadPoint> TauM;
00051 PHX::MDField<ScalarT,Cell,QuadPoint> mu;
00052 PHX::MDField<ScalarT,Cell,QuadPoint> muFELIX;
00053
00054
00055 PHX::MDField<ScalarT,Cell,Node> MResidual;
00056
00057 unsigned int numQPs, numDims, numNodes;
00058
00059 };
00060 }
00061
00062 #endif