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

Neohookean.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 #if !defined(LCM_Neohookean_hpp)
00008 #define LCM_Neohookean_hpp
00009 
00010 #include <Intrepid_MiniTensor.h>
00011 #include "Phalanx_ConfigDefs.hpp"
00012 #include "Phalanx_Evaluator_WithBaseImpl.hpp"
00013 #include "Phalanx_Evaluator_Derived.hpp"
00014 #include "Phalanx_MDField.hpp"
00015 #include "Albany_Layouts.hpp"
00016 
00017 namespace LCM {
00024   template<typename EvalT, typename Traits>
00025   class Neohookean : public PHX::EvaluatorWithBaseImpl<Traits>,
00026                      public PHX::EvaluatorDerived<EvalT, Traits>  {
00027 
00028   public:
00029 
00033     Neohookean(const Teuchos::ParameterList& p,
00034                const Teuchos::RCP<Albany::Layouts>& dl);
00035 
00039     void postRegistrationSetup(typename Traits::SetupData d,
00040                                PHX::FieldManager<Traits>& vm);
00041 
00045     void evaluateFields(typename Traits::EvalData d);
00046 
00047   private:
00048 
00049     typedef typename EvalT::ScalarT ScalarT;
00050     typedef typename EvalT::MeshScalarT MeshScalarT;
00051 
00055     PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> defGrad;
00056 
00060     PHX::MDField<ScalarT,Cell,QuadPoint> J;
00061 
00065     PHX::MDField<ScalarT,Cell,QuadPoint> elasticModulus;
00066 
00070     PHX::MDField<ScalarT,Cell,QuadPoint> poissonsRatio;
00071 
00075     PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> stress;
00076 
00080     unsigned int numQPs;
00081 
00085     unsigned int numDims;
00086 
00090     unsigned int worksetSize;
00091 
00095     Intrepid::Tensor<ScalarT> F,b,sigma,I;
00096   };
00097 }
00098 
00099 #endif

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