MAST
frequency_domain_linearized_complex_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__frequency_domain_linearized_complex_assembly_elem_operations_h__
21 #define __mast__frequency_domain_linearized_complex_assembly_elem_operations_h__
22 
23 // MAST includes
25 
26 
27 
28 namespace MAST {
29 
30 
31  // Forward declerations
32  class FunctionBase;
33  class FrequencyFunction;
34 
35 
38 
39  public:
40 
45 
46 
51 
52 
57 
58 
62  virtual void clear_frequency_function();
63 
70  virtual void elem_calculations(bool if_jac,
71  ComplexVectorX& vec,
72  ComplexMatrixX& mat);
73 
79  ComplexVectorX& vec);
80 
84  virtual void
85  set_elem_data(unsigned int dim,
86  const libMesh::Elem& ref_elem,
87  MAST::GeomElem& elem) const { }
88 
94  virtual void
95  init(const MAST::GeomElem& elem);
96 
97  protected:
98 
103 
104  };
105 }
106 
107 
108 #endif // __mast__frequency_domain_linearized_complex_assembly_elem_operations_h__
109 
virtual void init(const MAST::GeomElem &elem)
initializes the object for the geometric element elem.
Matrix< Complex, Dynamic, 1 > ComplexVectorX
virtual void clear_frequency_function()
clears association with a system to this discipline, and vice-a-versa
virtual void set_elem_data(unsigned int dim, const libMesh::Elem &ref_elem, MAST::GeomElem &elem) const
virtual function, but nothing to be done for fluids.
virtual void elem_calculations(bool if_jac, ComplexVectorX &vec, ComplexMatrixX &mat)
performs the element calculations over elem, and returns the element vector and matrix quantities in ...
Matrix< Complex, Dynamic, Dynamic > ComplexMatrixX
MAST::FrequencyFunction * _frequency
frequency function used to define the oscillatory frequency
virtual void elem_sensitivity_calculations(const MAST::FunctionBase &f, ComplexVectorX &vec)
performs the element sensitivity calculations over elem, and returns the element residual sensitivity...
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_frequency_function(MAST::FrequencyFunction &f)
sets the frequency function for analysis