• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ThermoPoroPlasticityResidEnergy.hpp

Go to the documentation of this file.
00001 //*****************************************************************//
00002 //    Albany 2.0:  Copyright 2012 Sandia Corporation               //
00003 //    This Software is released under the BSD license detailed     //
00004 //    in the file "license.txt" in the top-level Albany directory  //
00005 //*****************************************************************//
00006 
00007 #ifndef THERMOPOROPLASTICITYRESIDENERGY_HPP
00008 #define THERMOPOROPLASTICITYRESIDENERGY_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 ThermoPoroPlasticityResidEnergy : public PHX::EvaluatorWithBaseImpl<Traits>,
00027         public PHX::EvaluatorDerived<EvalT, Traits>  {
00028 
00029 public:
00030 
00031   ThermoPoroPlasticityResidEnergy(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   // Input:
00044   PHX::MDField<MeshScalarT,Cell,Node,QuadPoint> wBF;
00045   PHX::MDField<ScalarT,Cell,QuadPoint> porePressure;
00046   PHX::MDField<ScalarT,Cell,QuadPoint> refTemp;
00047   PHX::MDField<ScalarT,Cell,QuadPoint> alphaSkeleton;
00048   PHX::MDField<ScalarT,Cell,QuadPoint> gammaMixture;
00049   PHX::MDField<ScalarT,Cell,QuadPoint> gammaFluid;
00050   PHX::MDField<ScalarT,Cell,QuadPoint> Temp;
00051   PHX::MDField<ScalarT,Cell,QuadPoint> stabParameter;
00052   PHX::MDField<ScalarT,Cell,QuadPoint> ThermalCond;
00053   PHX::MDField<ScalarT,Cell,QuadPoint> kcPermeability;
00054   PHX::MDField<ScalarT,Cell,QuadPoint> porosity;
00055   PHX::MDField<ScalarT,Cell,QuadPoint> biotCoefficient;
00056   PHX::MDField<ScalarT,Cell,QuadPoint> biotModulus;
00057   PHX::MDField<ScalarT,Cell,QuadPoint> bulk;
00058   PHX::MDField<MeshScalarT,Cell,Node,QuadPoint,Dim> wGradBF;
00059   PHX::MDField<ScalarT,Cell,QuadPoint,Dim> TGrad;
00060   PHX::MDField<ScalarT,Cell,QuadPoint,Dim> PGrad;
00061   PHX::MDField<ScalarT,Cell,QuadPoint> alphaMixture;
00062   PHX::MDField<ScalarT,Cell,QuadPoint> Source;
00063   Teuchos::Array<double> convectionVels;
00064   PHX::MDField<ScalarT,Cell,QuadPoint> rhoCp;
00065   PHX::MDField<ScalarT,Cell,QuadPoint> Absorption;
00066   PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> strain;
00067 
00068   PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> defgrad;
00069   PHX::MDField<ScalarT,Cell,QuadPoint> J;
00070 
00071 
00072   // stabilization term
00073   PHX::MDField<MeshScalarT,Cell,Vertex,Dim> coordVec;
00074   Teuchos::RCP<Intrepid::Cubature<RealType> > cubature;
00075   Teuchos::RCP<shards::CellTopology> cellType;
00076   PHX::MDField<MeshScalarT,Cell,QuadPoint> weights;
00077 
00078   PHX::MDField<ScalarT,Cell,QuadPoint> young_modulus_;
00079   PHX::MDField<ScalarT,Cell,QuadPoint> poissons_ratio_;
00080 
00081   // Time
00082   PHX::MDField<ScalarT,Dummy> deltaTime;
00083 
00084   //Data from previous time step
00085   std::string strainName, porePressureName, porosityName,
00086               JName, tempName;
00087 
00088 
00089 
00090   bool haveSource;
00091   bool haveConvection;
00092   bool haveAbsorption;
00093   bool enableTransient;
00094   bool haverhoCp;
00095   unsigned int numNodes;
00096   unsigned int numQPs;
00097   unsigned int numDims;
00098   unsigned int worksetSize;
00099 
00100   // Temporary FieldContainers
00101   Intrepid::FieldContainer<ScalarT> flux;
00102   Intrepid::FieldContainer<ScalarT> fluxdt;
00103   Intrepid::FieldContainer<ScalarT> pterm;
00104   Intrepid::FieldContainer<ScalarT> aterm;
00105   Intrepid::FieldContainer<ScalarT> tterm;
00106   Intrepid::FieldContainer<ScalarT> tpterm;
00107   // Temporary FieldContainers
00108   Intrepid::FieldContainer<RealType> refPoints;
00109   Intrepid::FieldContainer<RealType> refWeights;
00110   Intrepid::FieldContainer<MeshScalarT> jacobian;
00111   Intrepid::FieldContainer<MeshScalarT> jacobian_inv;
00112   Intrepid::FieldContainer<MeshScalarT> Gc;
00113 
00114   // Work space FCs
00115   Intrepid::FieldContainer<ScalarT> F_inv;
00116   Intrepid::FieldContainer<ScalarT> F_invT;
00117   Intrepid::FieldContainer<ScalarT> C;
00118   Intrepid::FieldContainer<ScalarT> Cinv;
00119   Intrepid::FieldContainer<ScalarT> JF_invT;
00120   Intrepid::FieldContainer<ScalarT> KJF_invT;
00121   Intrepid::FieldContainer<ScalarT> Kref;
00122 
00123   ScalarT porePbar, Tempbar, vol, corrTerm;
00124   ScalarT trialPbar;
00125 
00126   ScalarT shearModulus, bulkModulus;
00127   ScalarT safeFactor;
00128 
00129   // Output:
00130   PHX::MDField<ScalarT,Cell,Node> TResidual;
00131 
00132 
00133 };
00134 }
00135 
00136 #endif

Generated on Wed Mar 26 2014 18:36:45 for Albany: a Trilinos-based PDE code by  doxygen 1.7.1