MAST
Multidisciplinary-design Adaptation and Sensitivity Toolkit (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-2020 Manav Bhatia and MAST authors
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_A_matrix() const;
94 
95  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
96  stiffness_B_matrix(const MAST::ElementBase& e) const;
97 
98  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
99  stiffness_B_matrix() const;
100 
101  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
102  stiffness_D_matrix(const MAST::ElementBase& e) const;
103 
104  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
105  stiffness_D_matrix() const;
106 
107  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
108  damping_matrix(const MAST::ElementBase& e) const;
109 
110  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
111  inertia_matrix(const MAST::ElementBase& e) const;
112 
113  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
114  inertia_matrix() const;
115 
116  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
118 
119  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
121 
122  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
124 
125  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
127 
128  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
130 
131  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
133 
134  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
136 
137  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
139 
140 
141  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
143 
144  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
146 
147  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
149 
150  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
152 
153  virtual const MAST::FieldFunction<Real>*
154  section(const MAST::ElementBase& e) const;
155 
156  void set_warping_only(const bool warping_only)
157  {
158  _warping_only = warping_only;
159  }
160 
161  virtual bool get_warping_only() const
162  {
163  return _warping_only;
164  }
165 
166  protected:
167 
172 
173  };
174 
175 }
176 
177 
178 
179 #endif // __mast__solid_2d_section_element_property_card__
virtual bool if_isotropic() const
return true if the property is isotropic
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > stiffness_A_matrix() const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > damping_matrix(const MAST::ElementBase &e) const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > thermal_expansion_B_matrix() const
MAST::MaterialPropertyCardBase * _material
material property card
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > inertia_matrix() const
virtual unsigned int dim() const
dimension of the element for which this property is defined
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > thermal_capacitance_matrix() const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > stiffness_D_matrix() const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > transverse_shear_stiffness_matrix() const
virtual const MAST::MaterialPropertyCardBase & get_material() const
returns a const reference to the material
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > prestress_A_matrix(MAST::ElementBase &e) const
virtual bool depends_on(const MAST::FunctionBase &f) const
returns true if the property card depends on the function f
virtual MAST::MaterialPropertyCardBase & get_material()
returns a reference to the material
virtual const MAST::FieldFunction< Real > * section(const MAST::ElementBase &e) const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > thermal_conductance_matrix() const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > stiffness_B_matrix() const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > prestress_B_matrix(MAST::ElementBase &e) const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > thermal_expansion_A_matrix() const
virtual void set_material(MAST::MaterialPropertyCardBase &mat)
sets the material card
This is the base class for elements that implement calculation of finite element quantities over the ...
Definition: elem_base.h:72