Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #if !defined(LCM_Porosity_hpp)
00008 #define LCM_Porosity_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 #include "Teuchos_ParameterList.hpp"
00016 #include "Epetra_Vector.h"
00017 #include "Sacado_ParameterAccessor.hpp"
00018 #include "Stokhos_KL_ExponentialRandomField.hpp"
00019 #include "Teuchos_Array.hpp"
00020
00021 namespace LCM {
00032 template<typename EvalT, typename Traits>
00033 class Porosity :
00034 public PHX::EvaluatorWithBaseImpl<Traits>,
00035 public PHX::EvaluatorDerived<EvalT, Traits>,
00036 public Sacado::ParameterAccessor<EvalT, SPL_Traits> {
00037
00038 public:
00039 typedef typename EvalT::ScalarT ScalarT;
00040 typedef typename EvalT::MeshScalarT MeshScalarT;
00041
00045 Porosity(Teuchos::ParameterList& p,
00046 const Teuchos::RCP<Albany::Layouts>& dl);
00047
00051 void postRegistrationSetup(typename Traits::SetupData d,
00052 PHX::FieldManager<Traits>& vm);
00053
00057 void evaluateFields(typename Traits::EvalData d);
00058
00062 ScalarT& getValue(const std::string &n);
00063
00064 private:
00065
00069 std::size_t numQPs;
00070
00074 std::size_t numDims;
00075
00079 PHX::MDField<MeshScalarT,Cell,QuadPoint,Dim> coordVec;
00080
00084 PHX::MDField<ScalarT,Cell,QuadPoint> porosity;
00085
00089 bool is_constant;
00090
00094 ScalarT constant_value;
00095
00100 PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> strain;
00101
00105 PHX::MDField<ScalarT,Cell,QuadPoint> J;
00106
00110 bool isPoroElastic;
00111
00115 bool isCompressibleSolidPhase;
00116
00120 bool isCompressibleFluidPhase;
00121
00125 ScalarT initialPorosityValue;
00126
00130 PHX::MDField<ScalarT,Cell,QuadPoint> biotCoefficient;
00131
00135 PHX::MDField<ScalarT,Cell,QuadPoint> porePressure;
00136
00140 ScalarT GrainBulkModulus;
00141
00145 PHX::MDField<ScalarT,Cell,QuadPoint> Temperature;
00146
00150 PHX::MDField<ScalarT,Cell,QuadPoint> skeletonThermalExpansion;
00151
00155 PHX::MDField<ScalarT,Cell,QuadPoint> refTemperature;
00156
00160 Teuchos::RCP< Stokhos::KL::ExponentialRandomField<MeshScalarT> > exp_rf_kl;
00161
00165 Teuchos::Array<ScalarT> rv;
00166
00170 bool hasStrain;
00171
00175 bool hasJ;
00176
00180 bool hasTemp;
00181 };
00182 }
00183
00184 #endif