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