G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
gsFlowSolverParams< T > Class Template Reference

Detailed Description

template<class T>
class gismo::gsFlowSolverParams< T >

A class that holds all parameters needed by the incompressible flow solver.

  • the INS PDE representation
  • discretization bases
  • list of parameters/options for the solver
  • list of assembler options
  • list of preconditioner options
+ Collaboration diagram for gsFlowSolverParams< T >:

Public Member Functions

gsAssemblerOptionsassemblerOptions ()
 Returns a reference to the assembler option list.
 
void createDofMappers (std::vector< gsDofMapper > &mappers)
 Creates DOF mappers for velocity and pressure.
 
std::vector< gsMultiBasis< T > > & getBases ()
 Returns a reference to the discretization bases.
 
const gsBoundaryConditions< T > & getBCs () const
 Returns a const reference to the boundary conditions.
 
std::vector< std::pair< int, boxSide > > getBndIn ()
 Get vector of [patch, side] corresponding to the inflow boundary.
 
std::vector< std::pair< int, boxSide > > getBndOut ()
 Get vector of [patch, side] corresponding to the outflow boundary.
 
std::vector< std::pair< int, boxSide > > getBndWall ()
 Get vector of [patch, side] corresponding to the solid wall boundary.
 
const gsNavStokesPde< T > & getPde () const
 Returns a const reference to the PDE.
 
 gsFlowSolverParams (const gsNavStokesPde< T > &pde, const std::vector< gsMultiBasis< T > > &bases)
 Constructor of the object.
 
gsOptionListoptions ()
 Returns a reference to the INS solver option list.
 
gsOptionListprecOptions ()
 Returns a reference to the preconditioner option list.
 
void setAssemblerOptions (const gsAssemblerOptions &opt)
 Set assembler options given in opt.
 
void setBndParts (std::vector< std::pair< int, boxSide > > bndIn, std::vector< std::pair< int, boxSide > > bndOut, std::vector< std::pair< int, boxSide > > bndWall)
 Set boundary parts (vectors of pairs [patch, side]).
 
void setOptions (const gsOptionList &opt)
 Set INS solver options given in opt.
 
void setPrecOptions (const gsOptionList &opt)
 Set preconditioner options given in opt.
 

Static Public Member Functions

static gsOptionList defaultOptions ()
 Returns a list of default options for the incompressible flow solver.
 

Constructor & Destructor Documentation

◆ gsFlowSolverParams()

template<class T >
gsFlowSolverParams ( const gsNavStokesPde< T > &  pde,
const std::vector< gsMultiBasis< T > > &  bases 
)
inline

Constructor of the object.

Parameters
pdean incompressible Navier-Stokes problem
basesvector of discretization bases (velocity, pressure)

Member Function Documentation

◆ assemblerOptions()

template<class T >
gsAssemblerOptions & assemblerOptions ( )
inline

Returns a reference to the assembler option list.

There is also a const version returning a const reference.

◆ getBases()

template<class T >
std::vector< gsMultiBasis< T > > & getBases ( )
inline

Returns a reference to the discretization bases.

There is also a const version returning a const reference.

◆ options()

template<class T >
gsOptionList & options ( )
inline

Returns a reference to the INS solver option list.

There is also a const version returning a const reference.

◆ precOptions()

template<class T >
gsOptionList & precOptions ( )
inline

Returns a reference to the preconditioner option list.

There is also a const version returning a const reference.

◆ setBndParts()

template<class T >
void setBndParts ( std::vector< std::pair< int, boxSide > >  bndIn,
std::vector< std::pair< int, boxSide > >  bndOut,
std::vector< std::pair< int, boxSide > >  bndWall 
)
inline

Set boundary parts (vectors of pairs [patch, side]).

Parameters
[in]bndIninflow boundary part
[in]bndOutoutlfow boundary part
[in]bndWallsolid wall boundary part