MAST
solid_1d_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_1d_section_element_property_card__
21 #define __mast__solid_1d_section_element_property_card__
22 
23 
24 // MAST includes
26 
27 namespace MAST {
28 
29 
32 
33  public:
34 
37  _initialized(false),
38  _material(nullptr)
39  { }
40 
41 
46 
47 
48  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
49  stiffness_A_matrix(const MAST::ElementBase& e) const;
50 
51  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
52  stiffness_B_matrix(const MAST::ElementBase& e) const;
53 
54  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
55  stiffness_D_matrix(const MAST::ElementBase& e) const;
56 
57  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
58  damping_matrix(const MAST::ElementBase& e) const;
59 
60  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
61  inertia_matrix(const MAST::ElementBase& e) const;
62 
63  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
65 
66  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
68 
69  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
71 
72  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
74 
75  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
77 
78 
79  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
81 
82 
83  virtual std::unique_ptr<MAST::FieldFunction<RealMatrixX> >
85 
86  virtual const MAST::FieldFunction<Real>&
87  section(const MAST::ElementBase& e) const;
88 
93  _material = &mat;
94  }
95 
96 
100  virtual bool if_isotropic() const {
101  return true;
102  }
103 
104 
109  libmesh_assert(_material); // make sure it has already been set
110  return *_material;
111  }
112 
116  virtual const MAST::FieldFunction<Real>& A() const;
117 
118 
122  virtual MAST::FieldFunction<Real>& A();
123 
128  virtual const MAST::FieldFunction<Real>& J() const;
129 
134  virtual MAST::FieldFunction<Real>& J();
135 
139  virtual const MAST::FieldFunction<Real>& Ip() const;
140 
144  virtual MAST::FieldFunction<Real>& Ip();
145 
150  virtual const MAST::FieldFunction<Real>& Ay() const;
151 
156  virtual MAST::FieldFunction<Real>& Ay();
157 
162  virtual const MAST::FieldFunction<Real>& Az() const;
163 
168  virtual MAST::FieldFunction<Real>& Az();
169 
174  virtual const MAST::FieldFunction<RealMatrixX>& I() const;
175 
176 
182 
186  virtual bool depends_on(const MAST::FunctionBase& f) const;
187 
188 
189  virtual void clear();
190 
191  virtual void init();
192 
193  protected:
194 
196 
201 
202  std::unique_ptr<MAST::FieldFunction<Real> > _A;
203 
204  std::unique_ptr<MAST::FieldFunction<Real> > _J;
205 
206  std::unique_ptr<MAST::FieldFunction<Real> > _Ip;
207 
208  std::unique_ptr<MAST::FieldFunction<Real> > _Ay;
209 
210  std::unique_ptr<MAST::FieldFunction<Real> > _Az;
211 
212  std::unique_ptr<MAST::FieldFunction<RealMatrixX> > _AI;
213 
214  std::unique_ptr<MAST::FieldFunction<RealMatrixX> > _stiff_A;
215 
216  std::unique_ptr<MAST::FieldFunction<RealMatrixX> > _stiff_B;
217 
218  std::unique_ptr<MAST::FieldFunction<RealMatrixX> > _stiff_D;
219 
220  std::unique_ptr<MAST::FieldFunction<RealMatrixX> > _damp;
221 
222  std::unique_ptr<MAST::FieldFunction<RealMatrixX> > _inertia;
223 
224  std::unique_ptr<MAST::FieldFunction<RealMatrixX> > _thermal_A;
225 
226  std::unique_ptr<MAST::FieldFunction<RealMatrixX> > _thermal_B;
227 
228  std::unique_ptr<MAST::FieldFunction<RealMatrixX> > _transverse_shear;
229 
230  };
231 
232 }
233 
234 
235 
236 #endif // __mast__solid_1d_section_element_property_card__
std::unique_ptr< MAST::FieldFunction< Real > > _Ip
std::unique_ptr< MAST::FieldFunction< RealMatrixX > > _thermal_A
MAST::MaterialPropertyCardBase * _material
material property card
virtual const MAST::FieldFunction< Real > & section(const MAST::ElementBase &e) const
virtual const MAST::FieldFunction< Real > & Ay() const
std::unique_ptr< MAST::FieldFunction< RealMatrixX > > _transverse_shear
std::unique_ptr< MAST::FieldFunction< RealMatrixX > > _AI
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > thermal_conductance_matrix(const MAST::ElementBase &e) const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > thermal_expansion_A_matrix(const MAST::ElementBase &e) const
virtual const MAST::FieldFunction< Real > & J() const
virtual void set_material(MAST::MaterialPropertyCardBase &mat)
sets the material card
std::unique_ptr< MAST::FieldFunction< RealMatrixX > > _damp
std::unique_ptr< MAST::FieldFunction< RealMatrixX > > _stiff_D
virtual bool if_isotropic() const
return true if the property is isotropic
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > stiffness_A_matrix(const MAST::ElementBase &e) const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > thermal_capacitance_matrix(const MAST::ElementBase &e) const
virtual const MAST::FieldFunction< Real > & Az() const
virtual const MAST::MaterialPropertyCardBase & get_material() const
returns a reference to the material
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > transverse_shear_stiffness_matrix(const MAST::ElementBase &e) const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > thermal_expansion_B_matrix(const MAST::ElementBase &e) const
virtual const MAST::FieldFunction< Real > & Ip() const
virtual bool depends_on(const MAST::FunctionBase &f) const
returns true if the property card depends on the function f
std::unique_ptr< MAST::FieldFunction< RealMatrixX > > _stiff_A
std::unique_ptr< MAST::FieldFunction< Real > > _J
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > damping_matrix(const MAST::ElementBase &e) const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > prestress_B_matrix(MAST::ElementBase &e) const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > stiffness_B_matrix(const MAST::ElementBase &e) const
std::unique_ptr< MAST::FieldFunction< RealMatrixX > > _stiff_B
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > inertia_matrix(const MAST::ElementBase &e) const
std::unique_ptr< MAST::FieldFunction< Real > > _Az
std::unique_ptr< MAST::FieldFunction< RealMatrixX > > _inertia
virtual const MAST::FieldFunction< Real > & A() const
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > stiffness_D_matrix(const MAST::ElementBase &e) const
virtual const MAST::FieldFunction< RealMatrixX > & I() const
std::unique_ptr< MAST::FieldFunction< RealMatrixX > > _thermal_B
std::unique_ptr< MAST::FieldFunction< Real > > _A
std::unique_ptr< MAST::FieldFunction< Real > > _Ay
virtual std::unique_ptr< MAST::FieldFunction< RealMatrixX > > prestress_A_matrix(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