cuIBM
A GPU-based Immersed Boundary Method code
DiffusionSolver.cu
Go to the documentation of this file.
1 
7 #include <sys/stat.h>
8 
9 #include "DiffusionSolver.h"
10 
11 
15 template <typename memoryType>
17 {
20 } // DiffusionSolver
21 
22 
27 template <typename memoryType>
29 {
31 
32  for(int i=0; i<NavierStokesSolver<memoryType>::intgSchm.subSteps; i++)
33  {
36  }
37 } // initialise
38 
39 
45 template <typename memoryType>
47 {
48 } // solvePoisson
49 
50 
54 template <typename memoryType>
56 {
57  NavierStokesSolver<memoryType>::logger.startTimer("projectionStep");
58 
60 
61  NavierStokesSolver<memoryType>::logger.stopTimer("projectionStep");
62 } // projectionStep
63 
64 
65 // specialization of the class
66 template class DiffusionSolver<device_memory>;
virtual void initialise()
Initialize the vectors used in the simulation.
virtual void solvePoisson()
Does nothing.
std::map< std::string, componentParameter > parameterDB
Map from a string to a componentParameter.
Definition: parameterDB.h:64
Stores information about the computational grid.
Definition: domain.h:16
virtual void initialise()
Sets the coefficients of the convection term to zero. This is done because we are solving a pure diff...
DiffusionSolver(parameterDB *pDB=NULL, domain *dInfo=NULL)
Constructor. Copies the simulation parameters and the domain info.
Solves unsteady diffusion equation with an immersed boundary using the direct forcing method...
Solves the Navier-Stokes equations in a rectangular domain.
Declaration of the class DiffusionSolver.
virtual void projectionStep()
The velocity at the next time step is the same as the intermediate velocity.