MAST
MAST::PressureFunction Class Reference

#include <pressure_function.h>

Inheritance diagram for MAST::PressureFunction:
Collaboration diagram for MAST::PressureFunction:

Public Member Functions

 PressureFunction (MAST::SystemInitialization &sys, MAST::FlightCondition &flt)
 
virtual ~PressureFunction ()
 
void set_calculate_cp (bool if_cp)
 sets the mode of the pressure value return More...
 
void use_reference_pressure (Real ref_press)
 sets the mode of the pressure value return More...
 
void init (const libMesh::NumericVector< Real > &steady_sol, const libMesh::NumericVector< Real > *small_dist_sol=nullptr)
 initiate the mesh function for this solution More...
 
virtual void operator() (const libMesh::Point &p, const Real t, Real &press) const
 provides the value of the pressure at the specified point and time More...
 
virtual void perturbation (const libMesh::Point &p, const Real t, Real &dpress) const
 provides the pressure perturbation. More...
 
- Public Member Functions inherited from MAST::FieldFunction< Real >
 FieldFunction (const std::string &nm)
 
virtual void operator() (Real &v) const
 calculates the value of the function and returns it in v. More...
 
virtual void perturbation (Real &v) const
 calculates the perturbation and returns it in v. More...
 
virtual void derivative (const MAST::FunctionBase &f, Real &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, Real &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...
 
Real _ref_pressure
 the function will return pressure differential with respect to reference pressue defined in the flight condition object. 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_function
 
std::unique_ptr< libMesh::NumericVector< Real > > _sol
 steady part of solution More...
 
std::unique_ptr< libMesh::NumericVector< Real > > _dsol
 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 pressure_function.h.

Constructor & Destructor Documentation

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

Definition at line 38 of file pressure_function.cpp.

MAST::PressureFunction::~PressureFunction ( )
virtual

Definition at line 51 of file pressure_function.cpp.

Here is the call graph for this function:

Member Function Documentation

void MAST::PressureFunction::init ( const libMesh::NumericVector< Real > &  steady_sol,
const libMesh::NumericVector< Real > *  small_dist_sol = nullptr 
)

initiate the mesh function for this solution

Definition at line 60 of file pressure_function.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MAST::PressureFunction::operator() ( const libMesh::Point &  p,
const Real  t,
Real press 
) const
virtual

provides the value of the pressure at the specified point and time

Reimplemented from MAST::FieldFunction< Real >.

Definition at line 110 of file pressure_function.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MAST::PressureFunction::perturbation ( const libMesh::Point &  p,
const Real  t,
Real dpress 
) const
virtual

provides the pressure perturbation.

The user must have initialized the perturbed solution using the appropriate init routine.

Reimplemented from MAST::FieldFunction< Real >.

Definition at line 154 of file pressure_function.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

sets the mode of the pressure value return

Definition at line 57 of file pressure_function.h.

void MAST::PressureFunction::use_reference_pressure ( Real  ref_press)
inline

sets the mode of the pressure value return

Definition at line 66 of file pressure_function.h.

Here is the call graph for this function:

Member Data Documentation

std::unique_ptr<libMesh::NumericVector<Real> > MAST::PressureFunction::_dsol
protected

small-disturbance solution

Definition at line 142 of file pressure_function.h.

std::unique_ptr<libMesh::MeshFunction> MAST::PressureFunction::_dsol_function
protected

Definition at line 131 of file pressure_function.h.

MAST::FlightCondition& MAST::PressureFunction::_flt_cond
protected

flight condition

Definition at line 124 of file pressure_function.h.

bool MAST::PressureFunction::_if_cp
protected

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

Definition at line 107 of file pressure_function.h.

Real MAST::PressureFunction::_ref_pressure
protected

the function will return pressure differential with respect to reference pressue defined in the flight condition object.

Definition at line 113 of file pressure_function.h.

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

steady part of solution

Definition at line 137 of file pressure_function.h.

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

mesh function that interpolates the solution

Definition at line 131 of file pressure_function.h.

MAST::SystemInitialization& MAST::PressureFunction::_system
protected

system associated with the mesh and solution vector

Definition at line 118 of file pressure_function.h.


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