Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #if !defined(LCM_HyperelasticDamageModel_hpp)
00008 #define LCM_HyperelasticDamageModel_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 "ConstitutiveModel.hpp"
00016
00017 namespace LCM
00018 {
00019
00021 template<typename EvalT, typename Traits>
00022 class HyperelasticDamageModel: 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>::compute_energy_;
00033 using ConstitutiveModel<EvalT, Traits>::compute_tangent_;
00034
00035
00036 using ConstitutiveModel<EvalT, Traits>::have_temperature_;
00037 using ConstitutiveModel<EvalT, Traits>::expansion_coeff_;
00038 using ConstitutiveModel<EvalT, Traits>::ref_temperature_;
00039 using ConstitutiveModel<EvalT, Traits>::heat_capacity_;
00040 using ConstitutiveModel<EvalT, Traits>::density_;
00041 using ConstitutiveModel<EvalT, Traits>::temperature_;
00042
00043
00044 using ConstitutiveModel<EvalT, Traits>::damage_;
00045 using ConstitutiveModel<EvalT, Traits>::have_damage_;
00046
00050 HyperelasticDamageModel(Teuchos::ParameterList* p,
00051 const Teuchos::RCP<Albany::Layouts>& dl);
00052
00056 virtual
00057 ~HyperelasticDamageModel()
00058 {};
00059
00063 virtual
00064 void
00065 computeState(typename Traits::EvalData workset,
00066 std::map<std::string, Teuchos::RCP<PHX::MDField<ScalarT> > > dep_fields,
00067 std::map<std::string, Teuchos::RCP<PHX::MDField<ScalarT> > > eval_fields);
00068
00069 private:
00070
00074 HyperelasticDamageModel(const HyperelasticDamageModel&);
00075
00079 HyperelasticDamageModel& operator=(const HyperelasticDamageModel&);
00080
00084 RealType max_damage_;
00085
00089 RealType damage_saturation_;
00090
00091 };
00092 }
00093
00094 #endif