![]() |
waves
Basic FE playground
|
Manage the problem. More...
#include <wProblem.h>
Public Member Functions | |
Problem (std::shared_ptr< tbox::MshData > _msh, int dim, double aoa, double aos, double minf, double sref, double cref, double xref, double yref, double zref) | |
virtual | ~Problem () |
void | set (std::shared_ptr< Medium > m) |
Set the fluid medium. More... | |
void | add (std::shared_ptr< Boundary > b) |
Add a boundary surface. More... | |
void | set (std::shared_ptr< Initial > i) |
Add initial condition. More... | |
void | add (std::shared_ptr< Dirichlet > d) |
Add Dirichlet boundary condition. More... | |
void | add (std::shared_ptr< Freestream > f) |
Add freestream (Neumann) boundary condition. More... | |
void | add (std::shared_ptr< Wake > w) |
Add wake boundary condition. More... | |
void | add (std::shared_ptr< Kutta > k) |
Add Kutta condition. More... | |
void | add (std::shared_ptr< Blowing > b) |
Add Blowing boundary condition. More... | |
void | update (double aoa) |
Update the angle of attack. More... | |
void | check () const |
Check that Problem is not empty and that elements are supported. More... | |
void | pin () |
Pin a degree of freedom if no Dirichlet BC is explicitely provided. More... | |
void | initElems () |
Initialize the elements precomputed values. More... | |
void | initGradElems () |
Initialize the elements precomputed gradients. More... | |
virtual void | write (std::ostream &out) const override |
Public Attributes | |
std::shared_ptr< tbox::MshData > | msh |
Mesh structure. More... | |
int | nDim |
Problem dimension. More... | |
double | alpha |
Angle of attack. More... | |
double | beta |
Angle of sideslip. More... | |
double | M_inf |
Mach number. More... | |
double | S_ref |
Reference surface. More... | |
double | c_ref |
Reference chord. More... | |
Eigen::Vector3d | x_ref |
Reference center point (for moment computation) More... | |
F1CtDrag | dirD |
F1CtSide | dirS |
F1CtLift | dirL |
std::shared_ptr< Medium > | medium |
Fluid. More... | |
std::vector< std::shared_ptr< Boundary > > | bnds |
Boundaries. More... | |
std::shared_ptr< Initial > | iIC |
Initial condition. More... | |
std::vector< std::shared_ptr< Dirichlet > > | dBCs |
Dirichlet boundary conditions. More... | |
std::vector< std::shared_ptr< Freestream > > | fBCs |
Freestream boundary conditions. More... | |
std::vector< std::shared_ptr< Wake > > | wBCs |
Wake boundary condition. More... | |
std::vector< std::shared_ptr< Kutta > > | kSCs |
Kutta condition. More... | |
std::vector< std::shared_ptr< Blowing > > | bBCs |
Blowing (transpiration) boundary condition. More... | |
std::vector< fwk::Observer * > | obs |
classes depending on problem variables More... | |
Manage the problem.
Contains freestream definition, reference values and physical groups
flow::Problem::Problem | ( | std::shared_ptr< tbox::MshData > | _msh, |
int | dim, | ||
double | aoa, | ||
double | aos, | ||
double | minf, | ||
double | sref, | ||
double | cref, | ||
double | xref, | ||
double | yref, | ||
double | zref | ||
) |
|
inlinevirtual |
void Problem::add | ( | std::shared_ptr< Boundary > | b | ) |
Add a boundary surface.
void Problem::add | ( | std::shared_ptr< Freestream > | f | ) |
Add freestream (Neumann) boundary condition.
void Problem::add | ( | std::shared_ptr< Wake > | w | ) |
Add wake boundary condition.
void Problem::check | ( | ) | const |
Check that Problem is not empty and that elements are supported.
void Problem::initElems | ( | ) |
Initialize the elements precomputed values.
void Problem::initGradElems | ( | ) |
Initialize the elements precomputed gradients.
void Problem::pin | ( | ) |
Pin a degree of freedom if no Dirichlet BC is explicitely provided.
void Problem::set | ( | std::shared_ptr< Initial > | i | ) |
Add initial condition.
void Problem::set | ( | std::shared_ptr< Medium > | m | ) |
Set the fluid medium.
void Problem::update | ( | double | aoa | ) |
Update the angle of attack.
|
overridevirtual |
double flow::Problem::alpha |
Angle of attack.
std::vector<std::shared_ptr<Blowing> > flow::Problem::bBCs |
Blowing (transpiration) boundary condition.
double flow::Problem::beta |
Angle of sideslip.
std::vector<std::shared_ptr<Boundary> > flow::Problem::bnds |
Boundaries.
double flow::Problem::c_ref |
Reference chord.
F1CtDrag flow::Problem::dirD |
F1CtLift flow::Problem::dirL |
F1CtSide flow::Problem::dirS |
std::vector<std::shared_ptr<Freestream> > flow::Problem::fBCs |
Freestream boundary conditions.
double flow::Problem::M_inf |
Mach number.
std::shared_ptr<Medium> flow::Problem::medium |
Fluid.
std::shared_ptr<tbox::MshData> flow::Problem::msh |
Mesh structure.
int flow::Problem::nDim |
Problem dimension.
std::vector<fwk::Observer *> flow::Problem::obs |
classes depending on problem variables
double flow::Problem::S_ref |
Reference surface.
Eigen::Vector3d flow::Problem::x_ref |
Reference center point (for moment computation)