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

J2FiberModel.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_J2FiberModel_hpp)
00008 #define LCM_J2FiberModel_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 "LCM/models/ConstitutiveModel.hpp"
00016 
00017 namespace LCM
00018 {
00019 
00021 template<typename EvalT, typename Traits>
00022 class J2FiberModel: public LCM::ConstitutiveModel<EvalT, Traits>
00023 {
00024 public:
00025 
00026   typedef typename EvalT::ScalarT ScalarT;
00027   typedef typename EvalT::MeshScalarT MeshScalarT;
00028 
00029   using ConstitutiveModel<EvalT, Traits>::num_dims_;
00030   using ConstitutiveModel<EvalT, Traits>::num_pts_;
00031   using ConstitutiveModel<EvalT, Traits>::field_name_map_;
00032   using ConstitutiveModel<EvalT, Traits>::need_integration_pt_locations_;
00033 
00037   J2FiberModel(Teuchos::ParameterList* p,
00038       const Teuchos::RCP<Albany::Layouts>& dl);
00039 
00043   virtual
00044   ~J2FiberModel()
00045   {};
00046 
00050   virtual
00051   void
00052   computeState(typename Traits::EvalData workset,
00053       std::map<std::string, Teuchos::RCP<PHX::MDField<ScalarT> > > dep_fields,
00054       std::map<std::string, Teuchos::RCP<PHX::MDField<ScalarT> > > eval_fields);
00055 
00056 private:
00057 
00061   J2FiberModel(const J2FiberModel&);
00062 
00066   J2FiberModel& operator=(const J2FiberModel&);
00067 
00071   RealType k_f1_, q_f1_, volume_fraction_f1_, max_damage_f1_, saturation_f1_;
00072 
00076   RealType k_f2_, q_f2_, volume_fraction_f2_, max_damage_f2_, saturation_f2_;
00077 
00081   RealType sat_mod_, sat_exp_;
00082   RealType volume_fraction_m_, max_damage_m_, saturation_m_;
00083 
00087   std::vector<RealType> direction_f1_;
00088 
00092   std::vector<RealType> direction_f2_;
00096   std::vector<RealType> ring_center_;
00097 
00098   bool local_coord_flag_;
00099 
00100 };
00101 }
00102 
00103 #endif

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