MAST
heat_conduction_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__heat_conduction_transient_assembly__
21 #define __mast__heat_conduction_transient_assembly__
22 
23 // MAST includes
25 
26 
27 
28 namespace MAST {
29 
30 
33  public:
34 
39 
40 
46 
53  virtual void elem_calculations(bool if_jac,
54  RealVectorX& f_m,
55  RealVectorX& f_x,
56  RealMatrixX& f_m_jac_x_dot,
57  RealMatrixX& f_m_jac,
58  RealMatrixX& f_x_jac);
59 
64  virtual void elem_calculations(bool if_jac,
65  RealVectorX& f_m,
66  RealVectorX& f_x,
67  RealMatrixX& f_m_jac_xddot,
68  RealMatrixX& f_m_jac_xdot,
69  RealMatrixX& f_m_jac,
70  RealMatrixX& f_x_jac_xdot,
71  RealMatrixX& f_x_jac) {
72  libmesh_error();
73  }
74 
83  virtual void
85 
92  RealVectorX& f_m,
93  RealVectorX& f_x);
94 
95 
100  virtual void
102 
106  virtual void
107  set_elem_data(unsigned int dim,
108  const libMesh::Elem& ref_elem,
109  MAST::GeomElem& elem) const;
110 
116  virtual void
117  init(const MAST::GeomElem& elem);
118 
119  protected:
120 
121  };
122 
123 
124 }
125 
126 #endif // __mast__heat_conduction_transient_assembly__
virtual ~HeatConductionTransientAssemblyElemOperations()
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_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 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 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...
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 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_second_derivative_dot_solution_assembly(RealMatrixX &mat)
calculates over elem, and returns the matrix in vec .
Matrix< Real, Dynamic, Dynamic > RealMatrixX
virtual void init(const MAST::GeomElem &elem)
initializes the object for the geometric element elem.
HeatConductionTransientAssemblyElemOperations()
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