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-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_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 
42  const MAST::GeomElem& elem,
43  const MAST::FlightCondition& f);
44 
45 
47 
48 
52  virtual bool
53  internal_residual (bool request_jacobian,
54  ComplexVectorX& f,
55  ComplexMatrixX& jac);
56 
62  virtual bool
64  bool request_jacobian,
65  ComplexVectorX& f,
66  ComplexMatrixX& jac);
67 
68 
72  bool
73  side_external_residual (bool request_jacobian,
74  ComplexVectorX& f,
75  ComplexMatrixX& jac,
76  std::multimap<libMesh::boundary_id_type, MAST::BoundaryConditionBase*>& bc);
77 
78 
84  virtual bool
86  bool request_jacobian,
87  ComplexVectorX& f,
88  ComplexMatrixX& jac,
89  std::multimap<libMesh::boundary_id_type, MAST::BoundaryConditionBase*>& bc);
90 
91 
96 
97 
98  protected:
99 
100 
104  virtual bool
105  slip_wall_surface_residual(bool request_jacobian,
106  ComplexVectorX& f,
107  ComplexMatrixX& jac,
108  const unsigned int s,
110 
111 
117  virtual bool
119  bool request_jacobian,
120  ComplexVectorX& f,
121  ComplexMatrixX& jac,
122  const unsigned int s,
124 
125  };
126 }
127 
128 
129 
130 #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.
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
virtual bool internal_residual(bool request_jacobian, ComplexVectorX &f, ComplexMatrixX &jac)
internal force contribution to system residual
const MAST::GeomElem & elem() const
Definition: elem_base.h:117
Matrix< Complex, Dynamic, 1 > ComplexVectorX
MAST::FrequencyFunction * freq
frequency function that provides the frequency for computations.
MAST::AssemblyBase & assembly()
Definition: elem_base.h:103
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
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.
FrequencyDomainLinearizedConservativeFluidElem(MAST::SystemInitialization &sys, MAST::AssemblyBase &assembly, const MAST::GeomElem &elem, const MAST::FlightCondition &f)
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.
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.