MAST
|
#include <pressure_function.h>
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... | |
Definition at line 42 of file pressure_function.h.
MAST::PressureFunction::PressureFunction | ( | MAST::SystemInitialization & | sys, |
MAST::FlightCondition & | flt | ||
) |
Definition at line 38 of file pressure_function.cpp.
|
virtual |
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.
|
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.
|
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.
|
inline |
sets the mode of the pressure value return
Definition at line 57 of file pressure_function.h.
|
inline |
sets the mode of the pressure value return
Definition at line 66 of file pressure_function.h.
|
protected |
small-disturbance solution
Definition at line 142 of file pressure_function.h.
|
protected |
Definition at line 131 of file pressure_function.h.
|
protected |
flight condition
Definition at line 124 of file pressure_function.h.
|
protected |
the function will return cp instead of pressure if this option is true.
Definition at line 107 of file pressure_function.h.
|
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.
|
protected |
steady part of solution
Definition at line 137 of file pressure_function.h.
|
protected |
mesh function that interpolates the solution
Definition at line 131 of file pressure_function.h.
|
protected |
system associated with the mesh and solution vector
Definition at line 118 of file pressure_function.h.