cuIBM
A GPU-based Immersed Boundary Method code
Functions
createSolver.cu File Reference

Implementation of the function that creates the Navier-Stokes solver. More...

#include "createSolver.h"
Include dependency graph for createSolver.cu:

Go to the source code of this file.

Functions

template<typename memoryType >
NavierStokesSolver< memoryType > * createSolver (parameterDB &paramDB, domain &domInfo)
 Creates the appropriate Navier-Stokes solver. More...
 

Detailed Description

Implementation of the function that creates the Navier-Stokes solver.

Definition in file createSolver.cu.

Function Documentation

template<typename memoryType >
template NavierStokesSolver< device_memory > * createSolver ( parameterDB paramDB,
domain domInfo 
)

Creates the appropriate Navier-Stokes solver.

The type of solver depends on the IBM used. If there is no immersed body in the flow, an instance of the class NavierStokesSolver is created. If TAIRA_COLONIUS is the IBM used, an instance of the class TairaColoniusSolver is created, that inherits from the class NavierStokesSolver.

Parameters
paramDBdatabase that contains all the simulation parameters
domInfoinformation about the computational grid
Returns
an instance of the appropriate class

Definition at line 26 of file createSolver.cu.

References createSolver(), DF_IMPROVED, DF_MODIFIED, DIFFUSION, DIRECT_FORCING, FADLUN_ET_AL, FEA_MODIFIED, DFImprovedSolver< memoryType >::name(), NAVIER_STOKES, SAIKI_BIRINGEN, and TAIRA_COLONIUS.

Referenced by createSolver().