MAST
solid_2d_section_element_property_card.h
Go to the documentation of this file.
1 /*
2  * MAST: Multidisciplinary-design Adaptation and Sensitivity Toolkit
3  * Copyright (C) 2013-2019 Manav Bhatia
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #ifndef __mast__solid_2d_section_element_property_card__
21 #define __mast__solid_2d_section_element_property_card__
22 
23 // MAST includes
25 
26 
27 namespace MAST {
28 
31  public:
34  _material(nullptr)
35  { }
36 
41 
42 
46  virtual unsigned int dim() const {
47  return 2;
48  }
49 
53  virtual bool if_isotropic() const {
54  return true;
55  }
56 
61  _material = &mat;
62  }
63 
64 
69  libmesh_assert(_material); // make sure it has already been set
70  return *_material;
71  }
72 
73 
78  libmesh_assert(_material); // make sure it has already been set
79  return *_material;
80  }
81 
82 
86  virtual bool depends_on(const MAST::FunctionBase& f) const;
87 
88 
89  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
90  stiffness_A_matrix(const MAST::ElementBase& e) const;
91 
92  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
93  stiffness_B_matrix(const MAST::ElementBase& e) const;
94 
95  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
96  stiffness_D_matrix(const MAST::ElementBase& e) const;
97 
98  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
99  damping_matrix(const MAST::ElementBase& e) const;
100 
101  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
102  inertia_matrix(const MAST::ElementBase& e) const;
103 
104  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
106 
107  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
109 
110  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
112 
113  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
115 
116  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
118 
119 
120  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
122 
123 
124  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
126 
127  virtual const MAST::FieldFunction<Real>&
128  section(const MAST::ElementBase& e) const;
129 
130  protected:
131 
136  };
137 
138 }
139 
140 
141 
142 #endif // __mast__solid_2d_section_element_property_card__
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > prestress_A_matrix(MAST::ElementBase &e) const
virtual bool if_isotropic() const
return true if the property is isotropic
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > prestress_B_matrix(MAST::ElementBase &e) const
virtual const MAST::FieldFunction< Real > & section(const MAST::ElementBase &e) const
virtual unsigned int dim() const
dimension of the element for which this property is defined
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > thermal_expansion_A_matrix(const MAST::ElementBase &e) const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > inertia_matrix(const MAST::ElementBase &e) const
MAST::MaterialPropertyCardBase * _material
material property card
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > stiffness_D_matrix(const MAST::ElementBase &e) const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > transverse_shear_stiffness_matrix(const MAST::ElementBase &e) const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > thermal_conductance_matrix(const MAST::ElementBase &e) const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > thermal_capacitance_matrix(const MAST::ElementBase &e) const
virtual MAST::MaterialPropertyCardBase & get_material()
returns a reference to the material
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > thermal_expansion_B_matrix(const MAST::ElementBase &e) const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > stiffness_B_matrix(const MAST::ElementBase &e) const
virtual const MAST::MaterialPropertyCardBase & get_material() const
returns a const reference to the material
virtual void set_material(MAST::MaterialPropertyCardBase &mat)
sets the material card
virtual bool depends_on(const MAST::FunctionBase &f) const
returns true if the property card depends on the function f
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > damping_matrix(const MAST::ElementBase &e) const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > stiffness_A_matrix(const MAST::ElementBase &e) const
This is the base class for elements that implement calculation of finite element quantities over the ...
Definition: elem_base.h:72