MAST
Multidisciplinary-design Adaptation and Sensitivity Toolkit (MAST)
MAST::FrequencyDomainPressureFunction Class Reference

Detailed Description

Definition at line 42 of file frequency_domain_pressure_function.h.

#include <frequency_domain_pressure_function.h>

Inheritance diagram for MAST::FrequencyDomainPressureFunction:
Collaboration diagram for MAST::FrequencyDomainPressureFunction:

Public Member Functions

 FrequencyDomainPressureFunction (MAST::SystemInitialization &sys, MAST::FlightCondition &flt)
 
virtual ~FrequencyDomainPressureFunction ()
 
void init (const libMesh::NumericVector< Real > &steady_sol, const libMesh::NumericVector< Real > &small_dist_sol_real, const libMesh::NumericVector< Real > &small_dist_sol_imag)
 initiate the mesh function for this solution More...
 
virtual void operator() (const libMesh::Point &p, const Real t, Complex &dp) const
 provides the complex pressure perturbation More...
 
void set_calculate_cp (bool if_cp)
 sets the mode of the pressure value return More...
 
- Public Member Functions inherited from MAST::FieldFunction< Complex >
 FieldFunction (const std::string &nm)
 
virtual void derivative (const MAST::FunctionBase &f, Complex &v) const
 calculates the value of the function derivative and returns it in v. More...
 
virtual void derivative (const MAST::FunctionBase &f, const libMesh::Point &p, const Real t, Complex &v) const
 calculates the value of the derivative of function with respect to the function f at the specified point, p, and time, t, and returns it in v. More...
 
virtual void operator() (Complex &v) const
 calculates the value of the function and returns it in v. More...
 
virtual void perturbation (Complex &v) const
 calculates the perturbation and returns it in v. More...
 
virtual void perturbation (const libMesh::Point &p, const Real t, Complex &v) const
 calculates the value of a perturbation in function at the specified point, p, and time, t, and returns it in v. More...
 
- Public Member Functions inherited from MAST::FunctionBase
 FunctionBase (const std::string &nm, const bool is_field_func)
 initializes the parameter to the given name More...
 
 FunctionBase (const MAST::FunctionBase &f)
 Copy constructor. More...
 
virtual ~FunctionBase ()
 virtual destructor More...
 
virtual bool depends_on (const MAST::FunctionBase &f) const
 returns true if the function depends on the provided value More...
 
virtual bool is_shape_parameter () const
 
virtual bool is_topology_parameter () const
 
const std::string & name () const
 returns the name of this function More...
 
virtual void set_as_shape_parameter (bool f)
 
virtual void set_as_topology_parameter (bool f)
 

Protected Attributes

std::unique_ptr< libMesh::MeshFunction > _dsol_im_function
 
std::unique_ptr< libMesh::NumericVector< Real > > _dsol_imag
 imag part of small-disturbance solution More...
 
std::unique_ptr< libMesh::MeshFunction > _dsol_re_function
 
std::unique_ptr< libMesh::NumericVector< Real > > _dsol_real
 real part of small-disturbance solution More...
 
MAST::FlightCondition_flt_cond
 flight condition More...
 
bool _if_cp
 the function will return cp instead of pressure if this option is true. More...
 
std::unique_ptr< libMesh::NumericVector< Real > > _sol
 steady part of solution More...
 
std::unique_ptr< libMesh::MeshFunction > _sol_function
 mesh function that interpolates the solution More...
 
MAST::SystemInitialization_system
 system associated with the mesh and solution vector More...
 
- Protected Attributes inherited from MAST::FunctionBase
std::set< const MAST::FunctionBase * > _functions
 set of functions that this function depends on More...
 
bool _is_field_func
 flag to store the nature of field function More...
 
bool _is_shape_parameter
 
bool _is_topology_parameter
 
std::string _name
 name of this parameter More...
 

Constructor & Destructor Documentation

◆ FrequencyDomainPressureFunction()

MAST::FrequencyDomainPressureFunction::FrequencyDomainPressureFunction ( MAST::SystemInitialization sys,
MAST::FlightCondition flt 
)

Definition at line 38 of file frequency_domain_pressure_function.cpp.

◆ ~FrequencyDomainPressureFunction()

MAST::FrequencyDomainPressureFunction::~FrequencyDomainPressureFunction ( )
virtual

Definition at line 50 of file frequency_domain_pressure_function.cpp.

Member Function Documentation

◆ init()

void MAST::FrequencyDomainPressureFunction::init ( const libMesh::NumericVector< Real > &  steady_sol,
const libMesh::NumericVector< Real > &  small_dist_sol_real,
const libMesh::NumericVector< Real > &  small_dist_sol_imag 
)

initiate the mesh function for this solution

Definition at line 59 of file frequency_domain_pressure_function.cpp.

◆ operator()()

void MAST::FrequencyDomainPressureFunction::operator() ( const libMesh::Point &  p,
const Real  t,
Complex dp 
) const
virtual

provides the complex pressure perturbation

Reimplemented from MAST::FieldFunction< Complex >.

Definition at line 114 of file frequency_domain_pressure_function.cpp.

◆ set_calculate_cp()

void MAST::FrequencyDomainPressureFunction::set_calculate_cp ( bool  if_cp)
inline

sets the mode of the pressure value return

Definition at line 57 of file frequency_domain_pressure_function.h.

Member Data Documentation

◆ _dsol_im_function

std::unique_ptr<libMesh::MeshFunction> MAST::FrequencyDomainPressureFunction::_dsol_im_function
protected

Definition at line 104 of file frequency_domain_pressure_function.h.

◆ _dsol_imag

std::unique_ptr<libMesh::NumericVector<Real> > MAST::FrequencyDomainPressureFunction::_dsol_imag
protected

imag part of small-disturbance solution

Definition at line 121 of file frequency_domain_pressure_function.h.

◆ _dsol_re_function

std::unique_ptr<libMesh::MeshFunction> MAST::FrequencyDomainPressureFunction::_dsol_re_function
protected

Definition at line 104 of file frequency_domain_pressure_function.h.

◆ _dsol_real

std::unique_ptr<libMesh::NumericVector<Real> > MAST::FrequencyDomainPressureFunction::_dsol_real
protected

real part of small-disturbance solution

Definition at line 116 of file frequency_domain_pressure_function.h.

◆ _flt_cond

MAST::FlightCondition& MAST::FrequencyDomainPressureFunction::_flt_cond
protected

flight condition

Definition at line 97 of file frequency_domain_pressure_function.h.

◆ _if_cp

bool MAST::FrequencyDomainPressureFunction::_if_cp
protected

the function will return cp instead of pressure if this option is true.

Definition at line 86 of file frequency_domain_pressure_function.h.

◆ _sol

std::unique_ptr<libMesh::NumericVector<Real> > MAST::FrequencyDomainPressureFunction::_sol
protected

steady part of solution

Definition at line 111 of file frequency_domain_pressure_function.h.

◆ _sol_function

std::unique_ptr<libMesh::MeshFunction> MAST::FrequencyDomainPressureFunction::_sol_function
protected

mesh function that interpolates the solution

Definition at line 104 of file frequency_domain_pressure_function.h.

◆ _system

MAST::SystemInitialization& MAST::FrequencyDomainPressureFunction::_system
protected

system associated with the mesh and solution vector

Definition at line 91 of file frequency_domain_pressure_function.h.


The documentation for this class was generated from the following files: