MAST
MAST::FrequencyDomainPressureFunction Class Reference

#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 set_calculate_cp (bool if_cp)
 sets the mode of the pressure value return More...
 
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...
 
- Public Member Functions inherited from MAST::FieldFunction< Complex >
 FieldFunction (const std::string &nm)
 
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...
 
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...
 
- 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...
 
const std::string & name () const
 returns the name of this function 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 void set_as_shape_parameter (bool f)
 
virtual bool is_topology_parameter () const
 
virtual void set_as_topology_parameter (bool f)
 

Protected Attributes

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

Detailed Description

Definition at line 42 of file frequency_domain_pressure_function.h.

Constructor & Destructor Documentation

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

Definition at line 38 of file frequency_domain_pressure_function.cpp.

MAST::FrequencyDomainPressureFunction::~FrequencyDomainPressureFunction ( )
virtual

Definition at line 50 of file frequency_domain_pressure_function.cpp.

Here is the call graph for this function:

Member Function Documentation

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Member Data Documentation

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

Definition at line 104 of file frequency_domain_pressure_function.h.

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.

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

Definition at line 104 of file frequency_domain_pressure_function.h.

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.

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

flight condition

Definition at line 97 of file frequency_domain_pressure_function.h.

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.

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.

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.

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: