MAST
level_set_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__level_set_transient_assembly__
21 #define __mast__level_set_transient_assembly__
22 
23 // MAST includes
25 
26 
27 
28 namespace MAST {
29 
30 
33  public:
34 
39 
40 
46 
47 
52 
59  virtual void elem_calculations(bool if_jac,
60  RealVectorX& f_m,
61  RealVectorX& f_x,
62  RealMatrixX& f_m_jac_x_dot,
63  RealMatrixX& f_m_jac,
64  RealMatrixX& f_x_jac);
65 
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  libmesh_error();
79  }
80 
89  virtual void
91 
97  RealVectorX& vec);
98 
99 
104  virtual void
106 
107  virtual void
109  RealVectorX& f_m,
110  RealVectorX& f_x);
111 
115  virtual void
116  set_elem_data(unsigned int dim,
117  const libMesh::Elem& ref_elem,
118  MAST::GeomElem& elem) const { }
119 
120 
126  virtual void
127  init(const MAST::GeomElem& elem);
128 
129  protected:
130 
131  };
132 
133 
134 }
135 
136 #endif // __mast__level_set_transient_assembly__
137 
virtual void elem_calculations(bool if_jac, RealVectorX &f_m, RealVectorX &f_x, RealMatrixX &f_m_jac_xddot, RealMatrixX &f_m_jac_xdot, RealMatrixX &f_m_jac, RealMatrixX &f_x_jac_xdot, RealMatrixX &f_x_jac)
This call for second order ode should not be used for this transient assembly.
virtual ~LevelSetTransientAssemblyElemOperations()
destructor resets the association of this assembly object with the system
virtual void set_elem_data(unsigned int dim, const libMesh::Elem &ref_elem, MAST::GeomElem &elem) const
virtual function, nothing to be done here.
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)
performs the element calculations over elem, and returns the element vector and matrix quantities in ...
virtual void init(const MAST::GeomElem &elem)
initializes the object for the geometric element elem.
Matrix< Real, Dynamic, Dynamic > RealMatrixX
LevelSetTransientAssemblyElemOperations()
constructor associates this assembly object with the system
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
void set_elem_reference_solution(const RealVectorX &sol)
set element reference solution for reinitialization
virtual void elem_second_derivative_dot_solution_assembly(RealMatrixX &mat)
calculates over elem, and returns the matrix in vec .
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 void elem_sensitivity_calculations(const MAST::FunctionBase &f, RealVectorX &vec)
performs the element sensitivity calculations over elem, and returns the element residual sensitivity...