Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #if !defined(LCM_Damage_Coefficients_hpp)
00008 #define LCM_Damage_Coefficients_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
00016 namespace LCM
00017 {
00022 template<typename EvalT, typename Traits>
00023 class DamageCoefficients: public PHX::EvaluatorWithBaseImpl<Traits>,
00024 public PHX::EvaluatorDerived<EvalT, Traits>
00025 {
00026
00027 public:
00028
00032 DamageCoefficients(Teuchos::ParameterList& p,
00033 const Teuchos::RCP<Albany::Layouts>& dl);
00034
00038 void postRegistrationSetup(typename Traits::SetupData d,
00039 PHX::FieldManager<Traits>& vm);
00040
00044 void evaluateFields(typename Traits::EvalData d);
00045
00046 private:
00047
00048 typedef typename EvalT::ScalarT ScalarT;
00049 typedef typename EvalT::MeshScalarT MeshScalarT;
00050
00054 PHX::MDField<ScalarT, Cell, QuadPoint> damage_;
00055
00059 PHX::MDField<ScalarT, Dummy> delta_time_;
00060
00064 PHX::MDField<ScalarT, Cell, QuadPoint, Dim, Dim> def_grad_;
00065
00069 PHX::MDField<ScalarT, Cell, QuadPoint> damage_transient_coeff_;
00070
00074 PHX::MDField<ScalarT, Cell, QuadPoint, Dim, Dim> damage_diffusivity_;
00075
00079 PHX::MDField<ScalarT, Cell, QuadPoint> damage_dot_;
00080
00084 std::size_t num_pts_;
00085
00089 std::size_t num_dims_;
00090
00094 RealType diffusivity_coeff_, transient_coeff_;
00095
00099 bool have_mech_;
00100
00104 std::string damage_name_;
00105
00106 };
00107 }
00108
00109 #endif