MAST
element_property_card_2D.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__element_property_card_2D__
21 #define __mast__element_property_card_2D__
22 
23 // MAST includes
25 
26 
27 namespace MAST
28 {
29 
31 
32  public:
36  _if_plane_stress(true)
37  { }
38 
42  virtual ~ElementPropertyCard2D() { }
43 
48  _bending_model = b;
49  }
50 
51 
56 
57 
63  virtual int extra_quadrature_order(const MAST::GeomElem& elem) const {
64  if (this->bending_model(elem) == MAST::DKT)
65  return 2;
66  else
67  return 0;
68  }
69 
73  void set_plane_stress(bool val) {
74  _if_plane_stress = val;
75  }
76 
80  bool plane_stress() const {
81  return _if_plane_stress;
82  }
83 
84 
85  protected:
86 
92 
98 
99  };
100 
101 }
102 
103 
104 
105 
106 #endif // __mast__element_property_card_2D__
virtual int extra_quadrature_order(const MAST::GeomElem &elem) const
returns the extra quadrature order (on top of the system) that this element should use...
virtual ~ElementPropertyCard2D()
virtual destructor
void set_plane_stress(bool val)
sets the flag for plane stress.
MAST::BendingOperatorType _bending_model
material property card.
bool plane_stress() const
returns the flag for plane stress.
This class acts as a wrapper around libMesh::Elem for the purpose of providing a uniform interface fo...
Definition: geom_elem.h:59
void set_bending_model(MAST::BendingOperatorType b)
returns the bending model to be used for the 2D element
bool _if_plane_stress
if the analysis is plne stress, otherwise it is plane strain.
MAST::BendingOperatorType bending_model(const MAST::GeomElem &elem) const
returns the bending model to be used for the 2D element.
BendingOperatorType