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

LamentStress.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 LAMENTSTRESS_HPP
00008 #define LAMENTSTRESS_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 "PHAL_Dimension.hpp"
00015 #include "lame/LameUtils.hpp"
00016 
00017 namespace LCM {
00021 template<typename EvalT, typename Traits>
00022 class LamentStress : public PHX::EvaluatorWithBaseImpl<Traits>,
00023          public PHX::EvaluatorDerived<EvalT, Traits>  {
00024 
00025 public:
00026 
00027   LamentStress(Teuchos::ParameterList& p);
00028 
00029   void postRegistrationSetup(typename Traits::SetupData d,
00030            PHX::FieldManager<Traits>& vm);
00031 
00032   virtual void evaluateFields(typename Traits::EvalData d);
00033 
00034 protected:
00035 
00036   typedef typename EvalT::ScalarT ScalarT;
00037   typedef typename EvalT::MeshScalarT MeshScalarT;
00038 
00039   // Input:
00040   PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> defGradField;
00041 
00042   std::string defGradName, stressName;
00043   unsigned int numQPs;
00044   unsigned int numDims;
00045   Teuchos::RCP<PHX::DataLayout> tensor_dl;
00046 
00047   // Output:
00048   PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> stressField;
00049 
00050   // The LAMENT material model
00051   Teuchos::RCP<lament::Material<ScalarT> > lamentMaterialModel;
00052 
00053   // The LAMENT material model name
00054   std::string lamentMaterialModelName;
00055 
00056   // Vector of the state variable names for the LAMENT material model
00057   std::vector<std::string> lamentMaterialModelStateVariableNames;
00058 
00059   // Vector of the fields corresponding to the LAMENT material model state variables
00060   std::vector< PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> > lamentMaterialModelStateVariableFields;
00061 };
00062 
00063 }
00064 
00065 #endif

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