00001
00002
00003
00004
00005
00006
00007 #ifndef POROELASTICITYRESIDMASS_HPP
00008 #define POROELASTICITYRESIDMASS_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 "Intrepid_CellTools.hpp"
00016 #include "Intrepid_Cubature.hpp"
00017
00018 namespace LCM {
00025 template<typename EvalT, typename Traits>
00026 class PoroElasticityResidMass : public PHX::EvaluatorWithBaseImpl<Traits>,
00027 public PHX::EvaluatorDerived<EvalT, Traits> {
00028
00029 public:
00030
00031 PoroElasticityResidMass(const Teuchos::ParameterList& p);
00032
00033 void postRegistrationSetup(typename Traits::SetupData d,
00034 PHX::FieldManager<Traits>& vm);
00035
00036 void evaluateFields(typename Traits::EvalData d);
00037
00038 private:
00039
00040 typedef typename EvalT::ScalarT ScalarT;
00041 typedef typename EvalT::MeshScalarT MeshScalarT;
00042
00043
00044 PHX::MDField<MeshScalarT,Cell,Node,QuadPoint> wBF;
00045 PHX::MDField<ScalarT,Cell,QuadPoint> porePressure;
00046 PHX::MDField<ScalarT,Cell,QuadPoint> Tdot;
00047 PHX::MDField<ScalarT,Cell,QuadPoint> stabParameter;
00048 PHX::MDField<ScalarT,Cell,QuadPoint> ThermalCond;
00049 PHX::MDField<ScalarT,Cell,QuadPoint> kcPermeability;
00050 PHX::MDField<ScalarT,Cell,QuadPoint> porosity;
00051 PHX::MDField<ScalarT,Cell,QuadPoint> biotCoefficient;
00052 PHX::MDField<ScalarT,Cell,QuadPoint> biotModulus;
00053 PHX::MDField<ScalarT,Cell,QuadPoint> elasticModulus;
00054 PHX::MDField<ScalarT,Cell,QuadPoint> pRatio;
00055 PHX::MDField<MeshScalarT,Cell,Node,QuadPoint,Dim> wGradBF;
00056 PHX::MDField<ScalarT,Cell,QuadPoint,Dim> TGrad;
00057 PHX::MDField<ScalarT,Cell,QuadPoint> Source;
00058 Teuchos::Array<double> convectionVels;
00059 PHX::MDField<ScalarT,Cell,QuadPoint> rhoCp;
00060 PHX::MDField<ScalarT,Cell,QuadPoint> Absorption;
00061 PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> strain;
00062
00063
00064 PHX::MDField<MeshScalarT,Cell,Vertex,Dim> coordVec;
00065 Teuchos::RCP<Intrepid::Cubature<RealType> > cubature;
00066 Teuchos::RCP<shards::CellTopology> cellType;
00067 PHX::MDField<MeshScalarT,Cell,QuadPoint> weights;
00068
00069
00070 PHX::MDField<ScalarT,Dummy> deltaTime;
00071
00072
00073 std::string strainName, porePressureName, porosityName;
00074
00075
00076
00077 bool haveSource;
00078 bool haveConvection;
00079 bool haveAbsorption;
00080 bool enableTransient;
00081 bool haverhoCp;
00082 unsigned int numNodes;
00083 unsigned int numQPs;
00084 unsigned int numDims;
00085 unsigned int worksetSize;
00086
00087
00088 Intrepid::FieldContainer<ScalarT> flux;
00089 Intrepid::FieldContainer<ScalarT> fluxdt;
00090 Intrepid::FieldContainer<ScalarT> pterm;
00091 Intrepid::FieldContainer<ScalarT> tpterm;
00092 Intrepid::FieldContainer<ScalarT> aterm;
00093
00094 Intrepid::FieldContainer<RealType> refPoints;
00095 Intrepid::FieldContainer<RealType> refWeights;
00096 Intrepid::FieldContainer<MeshScalarT> jacobian;
00097 Intrepid::FieldContainer<MeshScalarT> jacobian_inv;
00098 Intrepid::FieldContainer<MeshScalarT> Gc;
00099
00100
00101 ScalarT porePbar, vol;
00102 ScalarT trialPbar;
00103
00104
00105
00106 PHX::MDField<ScalarT,Cell,Node> TResidual;
00107
00108
00109 };
00110 }
00111
00112 #endif