MAST
structural_nonlinear_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_nonlinear_assembly_elem_operations__
21 #define __mast__structural_nonlinear_assembly_elem_operations__
22 
23 // MAST includes
25 
26 
27 namespace MAST {
28 
29 
30  // Forward declerations
31  class StructuralAssembly;
32 
33 
36 
37  public:
38 
43 
44 
50 
55 
56 
61 
62 
66  virtual void set_elem_solution(const RealVectorX& sol);
67 
74  virtual void elem_calculations(bool if_jac,
75  RealVectorX& vec,
76  RealMatrixX& mat);
77 
78 
86  virtual void
88 
89 
95  RealVectorX& vec);
96 
101  virtual void
103  RealVectorX& vec) {
104  libmesh_assert(false); // to be implemented
105  }
106 
111  virtual void
114  RealVectorX& vec);
115 
120  virtual void
122 
123 
127  virtual void
128  set_elem_data(unsigned int dim,
129  const libMesh::Elem& ref_elem,
130  MAST::GeomElem& elem) const;
131 
137  virtual void
138  init(const MAST::GeomElem& elem);
139 
140  protected:
141 
142 
144 
145  };
146 }
147 
148 
149 #endif // __mast__structural_nonlinear_assembly_elem_operations__
This class provides some routines that are common to structural assembly routines.
virtual void elem_sensitivity_calculations(const MAST::FunctionBase &f, RealVectorX &vec)
performs the element sensitivity calculations over elem, and returns the element residual sensitivity...
StructuralNonlinearAssemblyElemOperations()
constructor associates this assembly object with the system
virtual void elem_linearized_jacobian_solution_product(RealVectorX &vec)
performs the element calculations over elem, and returns the element vector quantity in vec...
Matrix< Real, Dynamic, Dynamic > RealMatrixX
virtual void elem_shape_sensitivity_calculations(const MAST::FunctionBase &f, RealVectorX &vec)
performs the element shape sensitivity calculations over elem, and returns the element residual sensi...
Matrix< Real, Dynamic, 1 > RealVectorX
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 ~StructuralNonlinearAssemblyElemOperations()
destructor resets the association of this assembly object with the system
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 .
virtual void elem_topology_sensitivity_calculations(const MAST::FunctionBase &f, const MAST::FieldFunction< RealVectorX > &vel, RealVectorX &vec)
performs the element topology sensitivity calculations over elem, and returns the element residual se...
virtual void set_elem_solution(const RealVectorX &sol)
sets the element solution(s) before calculations
virtual void init(const MAST::GeomElem &elem)
initializes the object for the geometric element elem.
virtual void elem_calculations(bool if_jac, RealVectorX &vec, RealMatrixX &mat)
performs the element calculations over elem, and returns the element vector and matrix quantities in ...
void attach_incompatible_solution_object(MAST::StructuralAssembly &str_assembly)
attached the incompatible solution object
void clear_incompatible_solution_object()
clear the incompatible solution object