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

J2Stress.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 J2STRESS_HPP
00008 #define J2STRESS_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 namespace LCM {
00023 template<typename EvalT, typename Traits>
00024 class J2Stress : public PHX::EvaluatorWithBaseImpl<Traits>,
00025      public PHX::EvaluatorDerived<EvalT, Traits>  {
00026 
00027 public:
00028 
00029   J2Stress(const Teuchos::ParameterList& p);
00030 
00031   void postRegistrationSetup(typename Traits::SetupData d,
00032                       PHX::FieldManager<Traits>& vm);
00033 
00034   void evaluateFields(typename Traits::EvalData d);
00035 
00036 private:
00037 
00038   typedef typename EvalT::ScalarT ScalarT;
00039   typedef typename EvalT::MeshScalarT MeshScalarT;
00040 
00041   typename EvalT::ScalarT norm(Intrepid::FieldContainer<ScalarT>);
00042   void exponential_map(Intrepid::FieldContainer<ScalarT> &, const Intrepid::FieldContainer<ScalarT>);
00043 
00044   // Input:
00045   PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> defgrad;
00046   PHX::MDField<ScalarT,Cell,QuadPoint> J;
00047   PHX::MDField<ScalarT,Cell,QuadPoint> elasticModulus;
00048   PHX::MDField<ScalarT,Cell,QuadPoint> poissonsRatio;
00049   PHX::MDField<ScalarT,Cell,QuadPoint> yieldStrength;
00050   PHX::MDField<ScalarT,Cell,QuadPoint> hardeningModulus;
00051   PHX::MDField<ScalarT,Cell,QuadPoint> satMod;
00052   PHX::MDField<ScalarT,Cell,QuadPoint> satExp;
00053 
00054   // Output:
00055   PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> stress;
00056   PHX::MDField<ScalarT,Cell,QuadPoint,Dim,Dim> Fp;
00057   PHX::MDField<ScalarT,Cell,QuadPoint> eqps;
00058 
00059   std::string fpName, eqpsName;
00060   unsigned int numQPs;
00061   unsigned int numDims;
00062   unsigned int worksetSize;
00063 
00064   // scratch space FCs
00065   Intrepid::FieldContainer<ScalarT> be;
00066   Intrepid::FieldContainer<ScalarT> s;
00067   Intrepid::FieldContainer<ScalarT> N;
00068   Intrepid::FieldContainer<ScalarT> A;
00069   Intrepid::FieldContainer<ScalarT> expA;
00070   Intrepid::FieldContainer<ScalarT> Fpinv;
00071   Intrepid::FieldContainer<ScalarT> FpinvT;
00072   Intrepid::FieldContainer<ScalarT> Cpinv;
00073 
00074   Intrepid::FieldContainer<ScalarT> tmp;
00075   Intrepid::FieldContainer<ScalarT> tmp2;
00076 
00077 };
00078 }
00079 
00080 #endif

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