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

GursonModel.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(GursonModel_hpp)
00008 #define GursonModel_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 #include "LCM/models/ConstitutiveModel.hpp"
00017 
00018 namespace LCM
00019 {
00020 
00022 template<typename EvalT, typename Traits>
00023 class GursonModel: public LCM::ConstitutiveModel<EvalT, Traits>
00024 {
00025 public:
00026 
00027   typedef typename EvalT::ScalarT ScalarT;
00028   typedef typename EvalT::MeshScalarT MeshScalarT;
00029   typedef typename Sacado::mpl::apply<FadType, ScalarT>::type DFadType;
00030 
00031   using ConstitutiveModel<EvalT, Traits>::num_dims_;
00032   using ConstitutiveModel<EvalT, Traits>::num_pts_;
00033   using ConstitutiveModel<EvalT, Traits>::field_name_map_;
00034 
00038   GursonModel(Teuchos::ParameterList* p,
00039       const Teuchos::RCP<Albany::Layouts>& dl);
00040 
00044   virtual
00045   ~GursonModel()
00046   {};
00047 
00051   virtual
00052   void
00053   computeState(typename Traits::EvalData workset,
00054       std::map<std::string, Teuchos::RCP<PHX::MDField<ScalarT> > > dep_fields,
00055       std::map<std::string, Teuchos::RCP<PHX::MDField<ScalarT> > > eval_fields);
00056 
00057 private:
00058 
00062   GursonModel(const GursonModel&);
00063 
00067   GursonModel& operator=(const GursonModel&);
00068 
00072   RealType sat_mod_, sat_exp_;
00073 
00077   RealType f0_;
00078 
00082   RealType kw_;
00083 
00087   RealType eN_, sN_, fN_;
00088 
00092   RealType fc_, ff_;
00093 
00097   RealType q1_, q2_, q3_;
00098 
00102   ScalarT
00103   YieldFunction(Intrepid::Tensor<ScalarT> const & s, ScalarT const & p,
00104       ScalarT const & fvoid, ScalarT const & eq, ScalarT const & K,
00105       ScalarT const & Y, ScalarT const & jacobian, ScalarT const & E);
00106 
00110   void
00111   ResidualJacobian(std::vector<ScalarT> & X,
00112       std::vector<ScalarT> & R, std::vector<ScalarT> & dRdX, const ScalarT & p,
00113       const ScalarT & fvoid, const ScalarT & eq, Intrepid::Tensor<ScalarT> & s,
00114       const ScalarT & mu, const ScalarT & kappa, const ScalarT & K,
00115       const ScalarT & Y, const ScalarT & jacobian);
00116 
00117 };
00118 }
00119 
00120 #endif

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