MAST
structural_transient_assembly.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__structural_transient_assembly_elem_operations_h__
21 #define __mast__structural_transient_assembly_elem_operations_h__
22 
23 
24 // MAST includes
26 
27 
28 
29 namespace MAST {
30 
31 
34  public:
35 
40 
41 
47 
48  //**************************************************************
49  //these methods are provided for use by the solvers
50  //**************************************************************
51 
52 
57  virtual void elem_calculations(bool if_jac,
58  RealVectorX& f_m,
59  RealVectorX& f_x,
60  RealMatrixX& f_m_jac_x_dot,
61  RealMatrixX& f_m_jac,
62  RealMatrixX& f_x_jac);
63 
70  virtual void elem_calculations(bool if_jac,
71  RealVectorX& f_m,
72  RealVectorX& f_x,
73  RealMatrixX& f_m_jac_xddot,
74  RealMatrixX& f_m_jac_xdot,
75  RealMatrixX& f_m_jac,
76  RealMatrixX& f_x_jac_xdot,
77  RealMatrixX& f_x_jac);
78 
87  virtual void
89 
90 
97  RealVectorX& f_m,
98  RealVectorX& f_x);
99 
104  virtual void
106 
107 
111  virtual void
112  set_elem_data(unsigned int dim,
113  const libMesh::Elem& ref_elem,
114  MAST::GeomElem& elem) const;
115 
116 
122  virtual void
123  init(const MAST::GeomElem& elem);
124 
125  protected:
126 
127 
128  };
129 
130 
131 }
132 
133 
134 #endif // __mast__structural_transient_assembly_elem_operations_h__
135 
virtual void linearized_jacobian_solution_product(RealVectorX &f)
Calculates the product of Jacobian-solution, and Jacobian-velocity over the element for a system of t...
virtual ~StructuralTransientAssemblyElemOperations()
destructor resets the association of this assembly object with the system
virtual void elem_calculations(bool if_jac, RealVectorX &f_m, RealVectorX &f_x, RealMatrixX &f_m_jac_x_dot, RealMatrixX &f_m_jac, RealMatrixX &f_x_jac)
This call for first order ode should not be used for this transient assembly.
virtual void set_elem_data(unsigned int dim, const libMesh::Elem &ref_elem, MAST::GeomElem &elem) const
sets the structural element y-vector if 1D element is used.
virtual void elem_sensitivity_calculations(const MAST::FunctionBase &f, RealVectorX &f_m, RealVectorX &f_x)
performs the element sensitivity calculations over elem, and returns the component of element residua...
Matrix< Real, Dynamic, Dynamic > RealMatrixX
Matrix< Real, Dynamic, 1 > RealVectorX
This class acts as a wrapper around libMesh::Elem for the purpose of providing a uniform interface fo...
Definition: geom_elem.h:59
virtual void elem_second_derivative_dot_solution_assembly(RealMatrixX &mat)
calculates over elem, and returns the matrix in vec .
StructuralTransientAssemblyElemOperations()
constructor associates this assembly object with the system
virtual void init(const MAST::GeomElem &elem)
initializes the object for the geometric element elem.