MAST
Multidisciplinary-design Adaptation and Sensitivity Toolkit (MAST)
frequency_domain_linearized_conservative_fluid_elem.h
Go to the documentation of this file.
1 /*
2  * MAST: Multidisciplinary-design Adaptation and Sensitivity Toolkit
3  * Copyright (C) 2013-2020 Manav Bhatia and MAST authors
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_conservative_fluid_elem__
21 #define __mast_frequency_domain_linearized_conservative_fluid_elem__
22 
23 
24 // MAST includes
26 
27 
28 namespace MAST {
29 
30  // Forward declerations
31  class FrequencyFunction;
32 
33 
36 
37  public:
38 
41  const MAST::GeomElem& elem,
42  const MAST::FlightCondition& f);
43 
44 
46 
47 
51  virtual bool
52  internal_residual (bool request_jacobian,
53  ComplexVectorX& f,
54  ComplexMatrixX& jac);
55 
61  virtual bool
63  bool request_jacobian,
64  ComplexVectorX& f,
65  ComplexMatrixX& jac);
66 
67 
71  bool
72  side_external_residual (bool request_jacobian,
73  ComplexVectorX& f,
74  ComplexMatrixX& jac,
75  std::multimap<libMesh::boundary_id_type, MAST::BoundaryConditionBase*>& bc);
76 
77 
83  virtual bool
85  bool request_jacobian,
86  ComplexVectorX& f,
87  ComplexMatrixX& jac,
88  std::multimap<libMesh::boundary_id_type, MAST::BoundaryConditionBase*>& bc);
89 
90 
95 
96 
97  protected:
98 
99 
103  virtual bool
104  slip_wall_surface_residual(bool request_jacobian,
105  ComplexVectorX& f,
106  ComplexMatrixX& jac,
107  const unsigned int s,
109 
110 
116  virtual bool
118  bool request_jacobian,
119  ComplexVectorX& f,
120  ComplexMatrixX& jac,
121  const unsigned int s,
123 
124  };
125 }
126 
127 
128 
129 #endif // __mast_frequency_domain_linearized_fluid_elem_h__
This class provides the necessary functionality for spatial discretization of the conservative fluid ...
virtual bool internal_residual_sensitivity(const MAST::FunctionBase &p, bool request_jacobian, ComplexVectorX &f, ComplexMatrixX &jac)
sensitivity of internal force contribution to system residual.
virtual bool internal_residual(bool request_jacobian, ComplexVectorX &f, ComplexMatrixX &jac)
internal force contribution to system residual
Matrix< Complex, Dynamic, 1 > ComplexVectorX
virtual bool side_external_residual_sensitivity(const MAST::FunctionBase &p, bool request_jacobian, ComplexVectorX &f, ComplexMatrixX &jac, std::multimap< libMesh::boundary_id_type, MAST::BoundaryConditionBase *> &bc)
sensitivity of internal force contribution to system residual.
MAST::FrequencyFunction * freq
frequency function that provides the frequency for computations.
FrequencyDomainLinearizedConservativeFluidElem(MAST::SystemInitialization &sys, const MAST::GeomElem &elem, const MAST::FlightCondition &f)
Matrix< Complex, Dynamic, Dynamic > ComplexMatrixX
This class acts as a wrapper around libMesh::Elem for the purpose of providing a uniform interface fo...
Definition: geom_elem.h:59
bool side_external_residual(bool request_jacobian, ComplexVectorX &f, ComplexMatrixX &jac, std::multimap< libMesh::boundary_id_type, MAST::BoundaryConditionBase *> &bc)
side external force contribution to system residual
const MAST::GeomElem & elem() const
Definition: elem_base.h:109
virtual bool slip_wall_surface_residual_sensitivity(const MAST::FunctionBase &p, bool request_jacobian, ComplexVectorX &f, ComplexMatrixX &jac, const unsigned int s, MAST::BoundaryConditionBase &bc)
sensitivity of residual of the slip wall that may be oscillating.
virtual bool slip_wall_surface_residual(bool request_jacobian, ComplexVectorX &f, ComplexMatrixX &jac, const unsigned int s, MAST::BoundaryConditionBase &bc)
residual of the slip wall that may be oscillating.