MAST
ks_stress_output.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__ks_stress_output__
21 #define __mast__ks_stress_output__
22 
23 // C++ includes
24 #include <map>
25 #include <vector>
26 
27 // MAST includes
29 
30 
31 // libMesh includes
32 #include "libmesh/elem.h"
33 
34 namespace MAST {
35 
36 
43 
44  public:
45 
46 
51 
52  virtual ~KSStressStrainOutput();
53 
54 
62  virtual void functional_for_all_elems();
63 
64 
70  (const MAST::FunctionBase& f,
71  const libMesh::dof_id_type e_id,
72  Real& dsigma_vm_val_df) const;
73 
74 
80  (const MAST::FunctionBase& f,
81  const libMesh::dof_id_type e_id,
82  Real& dsigma_vm_val_df) const;
83 
84 
85 
98  (const libMesh::dof_id_type e_id,
99  RealVectorX& dq_dX) const;
100 
101 
102 
103  protected:
104 
105  };
106 }
107 
108 #endif // __mast__ks_stress_output__
Data structure provides the mechanism to store stress and strain output from a structural analysis...
virtual void functional_boundary_sensitivity_for_elem(const MAST::FunctionBase &f, const libMesh::dof_id_type e_id, Real &dsigma_vm_val_df) const
calculates and returns the boundary sensitivity of von Mises p-norm functional for the element e...
libMesh::Real Real
KSStressStrainOutput()
default constructor
virtual void functional_for_all_elems()
calculates and returns the von Mises p-norm functional for all the elements that this object currentl...
Matrix< Real, Dynamic, 1 > RealVectorX
virtual void functional_sensitivity_for_elem(const MAST::FunctionBase &f, const libMesh::dof_id_type e_id, Real &dsigma_vm_val_df) const
calculates and returns the sensitivity of von Mises p-norm functional for the element e...
virtual void functional_state_derivartive_for_elem(const libMesh::dof_id_type e_id, RealVectorX &dq_dX) const
calculates and returns the derivative of von Mises p-norm functional wrt state vector for the specifi...
This implements the computation of KS-constraint aggregation functional for the stress constraint...