Class where it is implemented a reduced problem for the steady Navier-stokes problem. More...
#include <ReducedSimpleSteadyNS.H>
Public Member Functions | |
reducedSimpleSteadyNS () | |
Construct Null. | |
reducedSimpleSteadyNS (SteadyNSSimple &problem) | |
Construct Null. | |
~reducedSimpleSteadyNS () | |
void | solveOnline_Simple (scalar mu_now, int NmodesUproj, int NmodesPproj, int NmodesNut=0, int NmodesSup=0, word Folder="./ITHACAoutput/Reconstruct/") |
Method to perform an online solve using a PPE stabilisation method. | |
void | setOnlineVelocity (Eigen::MatrixXd vel) |
It checks if the number of imposed boundary conditions is correct and set the inlet velocity equal to the given one. | |
Public Member Functions inherited from reducedProblem | |
reducedProblem () | |
Construct Null. | |
virtual | ~reducedProblem () |
reducedProblem (reductionProblem &problem) | |
Construct with reduced Problem. | |
virtual void | solveOnline () |
Virtual Method to perform and online Solve. | |
Public Attributes | |
volVectorModes | ULmodes |
Lifted velocity modes. | |
SteadyNSSimple * | problem |
Full problem. | |
Eigen::MatrixXd | projGradModP |
Projected gradient of the pressure modes. | |
Eigen::MatrixXd | vel_now |
Imposed boundary conditions. | |
int | maxIterOn = 1000 |
Maximum iterations number for the online step. | |
int | counter = 0 |
Counter. | |
int | UprojN |
int | PprojN |
Public Attributes inherited from reducedProblem | |
scalar | nu |
Viscosity. | |
reductionProblem * | problem |
Pointer to FOAM problem. | |
Additional Inherited Members | |
Static Public Member Functions inherited from reducedProblem | |
static Eigen::MatrixXd | solveLinearSys (List< Eigen::MatrixXd > LinSys, Eigen::MatrixXd x, Eigen::VectorXd &residual, const Eigen::MatrixXd &bc=Eigen::MatrixXd::Zero(0, 0), const std::string solverType="fullPivLu") |
Linear system solver for the online problem. | |
static Eigen::MatrixXd | solveLinearSys (List< Eigen::MatrixXd > LinSys, Eigen::MatrixXd x, Eigen::VectorXd &residual, const std::string solverType) |
Linear system solver for the online problem. | |
Class where it is implemented a reduced problem for the steady Navier-stokes problem.
In this class are implemented the methods to solve a reduced version of the stationary Navier-stokes equations. This class must be used together with the steadyNS class
Definition at line 59 of file ReducedSimpleSteadyNS.H.
reducedSimpleSteadyNS::reducedSimpleSteadyNS | ( | ) |
Construct Null.
Definition at line 39 of file ReducedSimpleSteadyNS.C.
|
explicit |
Construct Null.
[in] | problem | a full order steadyNS problem |
[in] | tipo | Type of pressure stabilisation method you want to use "SUP" for supremizer, "PPE" for pressure Poisson equation. |
Definition at line 43 of file ReducedSimpleSteadyNS.C.
|
inline |
Definition at line 75 of file ReducedSimpleSteadyNS.H.
void reducedSimpleSteadyNS::setOnlineVelocity | ( | Eigen::MatrixXd | vel | ) |
It checks if the number of imposed boundary conditions is correct and set the inlet velocity equal to the given one.
[in] | vel | Inlet velocity |
Definition at line 258 of file ReducedSimpleSteadyNS.C.
void reducedSimpleSteadyNS::solveOnline_Simple | ( | scalar | mu_now, |
int | NmodesUproj, | ||
int | NmodesPproj, | ||
int | NmodesNut = 0, | ||
int | NmodesSup = 0, | ||
word | Folder = "./ITHACAoutput/Reconstruct/" ) |
Method to perform an online solve using a PPE stabilisation method.
[in] | vel_now | The vector of online velocity. It is defined in with an Eigen::MatrixXd and must have one col and as many rows as the number of parametrized boundary conditions. |
[in] | NmodesUproj | The number of modes required for velocity projection |
[in] | NmodesPproj | The number of modes required for pressure projection |
[in] | Folder | The folder where we want to esport solutions (default is "./ITHACAoutput/Reconstruct/") |
Definition at line 62 of file ReducedSimpleSteadyNS.C.
int reducedSimpleSteadyNS::counter = 0 |
Counter.
Definition at line 121 of file ReducedSimpleSteadyNS.H.
int reducedSimpleSteadyNS::maxIterOn = 1000 |
Maximum iterations number for the online step.
Definition at line 118 of file ReducedSimpleSteadyNS.H.
int reducedSimpleSteadyNS::PprojN |
Definition at line 124 of file ReducedSimpleSteadyNS.H.
SteadyNSSimple* reducedSimpleSteadyNS::problem |
Full problem.
Definition at line 109 of file ReducedSimpleSteadyNS.H.
Eigen::MatrixXd reducedSimpleSteadyNS::projGradModP |
Projected gradient of the pressure modes.
Definition at line 112 of file ReducedSimpleSteadyNS.H.
volVectorModes reducedSimpleSteadyNS::ULmodes |
Lifted velocity modes.
Definition at line 106 of file ReducedSimpleSteadyNS.H.
int reducedSimpleSteadyNS::UprojN |
Definition at line 123 of file ReducedSimpleSteadyNS.H.
Eigen::MatrixXd reducedSimpleSteadyNS::vel_now |
Imposed boundary conditions.
Definition at line 115 of file ReducedSimpleSteadyNS.H.