Loading...
Searching...
No Matches
reducedSimpleSteadyNS Class Reference

Class where it is implemented a reduced problem for the steady Navier-stokes problem. More...

#include <ReducedSimpleSteadyNS.H>

Inheritance diagram for reducedSimpleSteadyNS:
reducedProblem reducedSimpleSteadyNN

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.
 
SteadyNSSimpleproblem
 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.
 
reductionProblemproblem
 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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ reducedSimpleSteadyNS() [1/2]

reducedSimpleSteadyNS::reducedSimpleSteadyNS ( )

Construct Null.

Definition at line 39 of file ReducedSimpleSteadyNS.C.

◆ reducedSimpleSteadyNS() [2/2]

reducedSimpleSteadyNS::reducedSimpleSteadyNS ( SteadyNSSimple & problem)
explicit

Construct Null.

Parameters
[in]problema full order steadyNS problem
[in]tipoType of pressure stabilisation method you want to use "SUP" for supremizer, "PPE" for pressure Poisson equation.

Definition at line 43 of file ReducedSimpleSteadyNS.C.

◆ ~reducedSimpleSteadyNS()

reducedSimpleSteadyNS::~reducedSimpleSteadyNS ( )
inline

Definition at line 75 of file ReducedSimpleSteadyNS.H.

Member Function Documentation

◆ setOnlineVelocity()

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.

Parameters
[in]velInlet velocity

Definition at line 258 of file ReducedSimpleSteadyNS.C.

◆ solveOnline_Simple()

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.

Parameters
[in]vel_nowThe 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]NmodesUprojThe number of modes required for velocity projection
[in]NmodesPprojThe number of modes required for pressure projection
[in]FolderThe folder where we want to esport solutions (default is "./ITHACAoutput/Reconstruct/")

Definition at line 62 of file ReducedSimpleSteadyNS.C.

Member Data Documentation

◆ counter

int reducedSimpleSteadyNS::counter = 0

Counter.

Definition at line 121 of file ReducedSimpleSteadyNS.H.

◆ maxIterOn

int reducedSimpleSteadyNS::maxIterOn = 1000

Maximum iterations number for the online step.

Definition at line 118 of file ReducedSimpleSteadyNS.H.

◆ PprojN

int reducedSimpleSteadyNS::PprojN

Definition at line 124 of file ReducedSimpleSteadyNS.H.

◆ problem

SteadyNSSimple* reducedSimpleSteadyNS::problem

Full problem.

Definition at line 109 of file ReducedSimpleSteadyNS.H.

◆ projGradModP

Eigen::MatrixXd reducedSimpleSteadyNS::projGradModP

Projected gradient of the pressure modes.

Definition at line 112 of file ReducedSimpleSteadyNS.H.

◆ ULmodes

volVectorModes reducedSimpleSteadyNS::ULmodes

Lifted velocity modes.

Definition at line 106 of file ReducedSimpleSteadyNS.H.

◆ UprojN

int reducedSimpleSteadyNS::UprojN

Definition at line 123 of file ReducedSimpleSteadyNS.H.

◆ vel_now

Eigen::MatrixXd reducedSimpleSteadyNS::vel_now

Imposed boundary conditions.

Definition at line 115 of file ReducedSimpleSteadyNS.H.


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