Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #if !defined(LCM_J2Model_hpp)
00008 #define LCM_J2Model_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 J2Model: 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
00033
00034 using ConstitutiveModel<EvalT, Traits>::have_temperature_;
00035 using ConstitutiveModel<EvalT, Traits>::expansion_coeff_;
00036 using ConstitutiveModel<EvalT, Traits>::ref_temperature_;
00037 using ConstitutiveModel<EvalT, Traits>::heat_capacity_;
00038 using ConstitutiveModel<EvalT, Traits>::density_;
00039 using ConstitutiveModel<EvalT, Traits>::temperature_;
00040
00044 J2Model(Teuchos::ParameterList* p,
00045 const Teuchos::RCP<Albany::Layouts>& dl);
00046
00050 virtual
00051 ~J2Model()
00052 {};
00053
00057 virtual
00058 void
00059 computeState(typename Traits::EvalData workset,
00060 std::map<std::string, Teuchos::RCP<PHX::MDField<ScalarT> > > dep_fields,
00061 std::map<std::string, Teuchos::RCP<PHX::MDField<ScalarT> > > eval_fields);
00062
00063 private:
00064
00068 J2Model(const J2Model&);
00069
00073 J2Model& operator=(const J2Model&);
00074
00078 RealType sat_mod_, sat_exp_;
00079
00080 };
00081 }
00082
00083 #endif