LifeV
NavierStokesSolver< Mesh, InitPolicy, TimeIterationPolicy, ExporterPolicy > Class Template Reference

#include <NavierStokesSolver.hpp>

+ Inheritance diagram for NavierStokesSolver< Mesh, InitPolicy, TimeIterationPolicy, ExporterPolicy >:
+ Collaboration diagram for NavierStokesSolver< Mesh, InitPolicy, TimeIterationPolicy, ExporterPolicy >:

Public Types

typedef std::shared_ptr< NavierStokesProblem< Mesh > > NSProblemPtr_Type
 
typedef MatrixEpetra< Realmatrix_Type
 
typedef std::shared_ptr< matrix_TypematrixPtr_Type
 
typedef VectorEpetra vector_Type
 
typedef std::shared_ptr< VectorEpetravectorPtr_Type
 
typedef MapEpetra map_Type
 
typedef std::shared_ptr< map_TypemapPtr_Type
 
typedef std::shared_ptr< Mesh > meshPtr_Type
 
typedef FESpace< Mesh, map_Typefespace_Type
 
typedef std::shared_ptr< fespace_TypefespacePtr_Type
 
typedef BCHandler bcContainer_Type
 
typedef std::shared_ptr< bcContainer_TypebcContainerPtr_Type
 
typedef Epetra_Comm comm_Type
 
typedef std::shared_ptr< comm_TypecommPtr_Type
 
typedef OseenAssembler< Mesh, matrix_Type, vector_Typeassembler_Type
 
typedef std::shared_ptr< assembler_TypeassemblerPtr_Type
 
typedef TimeAdvanceBDF< vector_Typebdf_Type
 
typedef std::shared_ptr< bdf_TypebdfPtr_Type
 

Private Member Functions

Displayer displayer ()
 
meshPtr_Type mesh () const
 
commPtr_Type comm ()
 
bdfPtr_Type bdf () const
 

Private Attributes

commPtr_Type M_comm
 
Displayer M_displayer
 
NSProblemPtr_Type M_nsProblem
 
meshPtr_Type M_mesh
 
bcContainerPtr_Type M_bcHandler
 
fespacePtr_Type M_uFESpace
 
fespacePtr_Type M_pFESpace
 
mapPtr_Type M_solutionMap
 
vectorPtr_Type M_solution
 
bdfPtr_Type M_bdf
 
Real M_initialTime
 
Real M_endTime
 
Real M_timestep
 
Real M_currentTime
 
bool M_usePreviousSolutionAsGuess
 

Constructors, destructor

 NavierStokesSolver (commPtr_Type comm=commPtr_Type(new Epetra_MpiComm(MPI_COMM_WORLD)))
 
 ~NavierStokesSolver ()
 

Methods

void printErrors ()
 Prints the error of the finite element solution vector. More...
 
void setup (Teuchos::ParameterList &list)
 Setup all the parameters. More...
 
void init ()
 Computes an initial solutions, or several solutions, if needed. More...
 
void solve ()
 Solves the Navier-Stokes equations. More...
 

Set Methods

void setProblem (NSProblemPtr_Type nsProblem)
 Setup the problem to be solved. More...
 

Get Methods

NSProblemPtr_Type problem () const
 Returns the type of problem (e.g. Navier-Stokes) More...
 
bcContainerPtr_Type bcHandler () const
 
fespacePtr_Type uFESpace () const
 Returns the FE space for the velocity. More...
 
fespacePtr_Type pFESpace () const
 Returns the FE space for the pressure. More...
 
Real initialTime () const
 Returns the initial time. More...
 
Real endTime () const
 Returns the end time. More...
 
Real timestep () const
 Returns the timestep. More...
 
Real currentTime () const
 Returns the current time. More...
 

Detailed Description

template<class Mesh, class InitPolicy, class TimeIterationPolicy, class ExporterPolicy = ExporterPolicyNoExporter>
class LifeV::NavierStokesSolver< Mesh, InitPolicy, TimeIterationPolicy, ExporterPolicy >

Definition at line 76 of file NavierStokesSolver.hpp.

Member Typedef Documentation

◆ NSProblemPtr_Type

typedef std::shared_ptr< NavierStokesProblem<Mesh> > NSProblemPtr_Type

Definition at line 81 of file NavierStokesSolver.hpp.

◆ matrix_Type

Definition at line 82 of file NavierStokesSolver.hpp.

◆ matrixPtr_Type

typedef std::shared_ptr<matrix_Type> matrixPtr_Type

Definition at line 83 of file NavierStokesSolver.hpp.

◆ vector_Type

Definition at line 84 of file NavierStokesSolver.hpp.

◆ vectorPtr_Type

typedef std::shared_ptr<VectorEpetra> vectorPtr_Type

Definition at line 85 of file NavierStokesSolver.hpp.

◆ map_Type

Definition at line 86 of file NavierStokesSolver.hpp.

◆ mapPtr_Type

typedef std::shared_ptr<map_Type> mapPtr_Type

Definition at line 87 of file NavierStokesSolver.hpp.

◆ meshPtr_Type

typedef std::shared_ptr<Mesh> meshPtr_Type

Definition at line 88 of file NavierStokesSolver.hpp.

◆ fespace_Type

typedef FESpace< Mesh, map_Type > fespace_Type

Definition at line 89 of file NavierStokesSolver.hpp.

◆ fespacePtr_Type

typedef std::shared_ptr< fespace_Type > fespacePtr_Type

Definition at line 90 of file NavierStokesSolver.hpp.

◆ bcContainer_Type

Definition at line 91 of file NavierStokesSolver.hpp.

◆ bcContainerPtr_Type

typedef std::shared_ptr<bcContainer_Type> bcContainerPtr_Type

Definition at line 92 of file NavierStokesSolver.hpp.

◆ comm_Type

typedef Epetra_Comm comm_Type

Definition at line 95 of file NavierStokesSolver.hpp.

◆ commPtr_Type

typedef std::shared_ptr<comm_Type> commPtr_Type

Definition at line 96 of file NavierStokesSolver.hpp.

◆ assembler_Type

Definition at line 97 of file NavierStokesSolver.hpp.

◆ assemblerPtr_Type

typedef std::shared_ptr< assembler_Type > assemblerPtr_Type

Definition at line 98 of file NavierStokesSolver.hpp.

◆ bdf_Type

Definition at line 99 of file NavierStokesSolver.hpp.

◆ bdfPtr_Type

typedef std::shared_ptr< bdf_Type > bdfPtr_Type

Definition at line 100 of file NavierStokesSolver.hpp.

Constructor & Destructor Documentation

◆ NavierStokesSolver()

NavierStokesSolver ( commPtr_Type  comm = commPtr_Type ( new Epetra_MpiComm ( MPI_COMM_WORLD ) ))

Definition at line 218 of file NavierStokesSolver.hpp.

◆ ~NavierStokesSolver()

Definition at line 225 of file NavierStokesSolver.hpp.

Member Function Documentation

◆ printErrors()

void printErrors ( )

Prints the error of the finite element solution vector.

Definition at line 232 of file NavierStokesSolver.hpp.

+ Here is the caller graph for this function:

◆ setup()

void setup ( Teuchos::ParameterList &  list)

Setup all the parameters.

Definition at line 261 of file NavierStokesSolver.hpp.

◆ init()

void init ( )

Computes an initial solutions, or several solutions, if needed.

Definition at line 360 of file NavierStokesSolver.hpp.

◆ solve()

void solve ( )

Solves the Navier-Stokes equations.

Definition at line 379 of file NavierStokesSolver.hpp.

◆ setProblem()

void setProblem ( NSProblemPtr_Type  nsProblem)

Setup the problem to be solved.

Definition at line 254 of file NavierStokesSolver.hpp.

◆ problem()

Returns the type of problem (e.g. Navier-Stokes)

Definition at line 434 of file NavierStokesSolver.hpp.

◆ bcHandler()

◆ uFESpace()

Returns the FE space for the velocity.

Definition at line 448 of file NavierStokesSolver.hpp.

◆ pFESpace()

Returns the FE space for the pressure.

Definition at line 455 of file NavierStokesSolver.hpp.

◆ initialTime()

Real initialTime ( ) const

Returns the initial time.

Definition at line 462 of file NavierStokesSolver.hpp.

◆ endTime()

Real endTime ( ) const

Returns the end time.

Definition at line 469 of file NavierStokesSolver.hpp.

◆ timestep()

Real timestep ( ) const

Returns the timestep.

Definition at line 476 of file NavierStokesSolver.hpp.

◆ currentTime()

Real currentTime ( ) const

Returns the current time.

Definition at line 483 of file NavierStokesSolver.hpp.

◆ displayer()

Displayer displayer ( )
inlineprivate

Definition at line 198 of file NavierStokesSolver.hpp.

◆ mesh()

meshPtr_Type mesh ( ) const
inlineprivate

Definition at line 202 of file NavierStokesSolver.hpp.

◆ comm()

commPtr_Type comm ( )
inlineprivate

Definition at line 206 of file NavierStokesSolver.hpp.

◆ bdf()

bdfPtr_Type bdf ( ) const
inlineprivate

Definition at line 210 of file NavierStokesSolver.hpp.

Field Documentation

◆ M_comm

commPtr_Type M_comm
private

Definition at line 171 of file NavierStokesSolver.hpp.

◆ M_displayer

Displayer M_displayer
private

Definition at line 172 of file NavierStokesSolver.hpp.

◆ M_nsProblem

NSProblemPtr_Type M_nsProblem
private

Definition at line 175 of file NavierStokesSolver.hpp.

◆ M_mesh

meshPtr_Type M_mesh
private

Definition at line 176 of file NavierStokesSolver.hpp.

◆ M_bcHandler

bcContainerPtr_Type M_bcHandler
private

Definition at line 177 of file NavierStokesSolver.hpp.

◆ M_uFESpace

fespacePtr_Type M_uFESpace
private

Definition at line 180 of file NavierStokesSolver.hpp.

◆ M_pFESpace

fespacePtr_Type M_pFESpace
private

Definition at line 181 of file NavierStokesSolver.hpp.

◆ M_solutionMap

mapPtr_Type M_solutionMap
private

Definition at line 184 of file NavierStokesSolver.hpp.

◆ M_solution

vectorPtr_Type M_solution
private

Definition at line 185 of file NavierStokesSolver.hpp.

◆ M_bdf

bdfPtr_Type M_bdf
private

Definition at line 188 of file NavierStokesSolver.hpp.

◆ M_initialTime

Real M_initialTime
private

Definition at line 189 of file NavierStokesSolver.hpp.

◆ M_endTime

Real M_endTime
private

Definition at line 190 of file NavierStokesSolver.hpp.

◆ M_timestep

Real M_timestep
private

Definition at line 191 of file NavierStokesSolver.hpp.

◆ M_currentTime

Real M_currentTime
private

Definition at line 192 of file NavierStokesSolver.hpp.

◆ M_usePreviousSolutionAsGuess

bool M_usePreviousSolutionAsGuess
private

Definition at line 195 of file NavierStokesSolver.hpp.


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