cuIBM
A GPU-based Immersed Boundary Method code
Main Page
Namespaces
Classes
Files
File List
File Members
src
solvers
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>
16
DiffusionSolver<memoryType>::DiffusionSolver
(
parameterDB
*pDB,
domain
*dInfo)
17
{
18
NavierStokesSolver<memoryType>::paramDB
= pDB;
19
NavierStokesSolver<memoryType>::domInfo
= dInfo;
20
}
// DiffusionSolver
21
22
27
template
<
typename
memoryType>
28
void
DiffusionSolver<memoryType>::initialise
()
29
{
30
DirectForcingSolver<memoryType>::initialise
();
31
32
for
(
int
i=0; i<NavierStokesSolver<memoryType>::intgSchm.subSteps; i++)
33
{
34
NavierStokesSolver<memoryType>::intgSchm
.gamma[i] = 0.0;
35
NavierStokesSolver<memoryType>::intgSchm
.zeta[i] = 0.0;
36
}
37
}
// initialise
38
39
45
template
<
typename
memoryType>
46
void
DiffusionSolver<memoryType>::solvePoisson
()
47
{
48
}
// solvePoisson
49
50
54
template
<
typename
memoryType>
55
void
DiffusionSolver<memoryType>::projectionStep
()
56
{
57
NavierStokesSolver<memoryType>::logger
.startTimer(
"projectionStep"
);
58
59
NavierStokesSolver<memoryType>::q
=
NavierStokesSolver<memoryType>::qStar
;
60
61
NavierStokesSolver<memoryType>::logger
.stopTimer(
"projectionStep"
);
62
}
// projectionStep
63
64
65
// specialization of the class
66
template
class
DiffusionSolver<device_memory>
;
DirectForcingSolver::initialise
virtual void initialise()
Initialize the vectors used in the simulation.
Definition:
DirectForcingSolver.cu:29
DiffusionSolver::solvePoisson
virtual void solvePoisson()
Does nothing.
Definition:
DiffusionSolver.cu:46
parameterDB
std::map< std::string, componentParameter > parameterDB
Map from a string to a componentParameter.
Definition:
parameterDB.h:64
domain
Stores information about the computational grid.
Definition:
domain.h:16
DiffusionSolver::initialise
virtual void initialise()
Sets the coefficients of the convection term to zero. This is done because we are solving a pure diff...
Definition:
DiffusionSolver.cu:28
DiffusionSolver::DiffusionSolver
DiffusionSolver(parameterDB *pDB=NULL, domain *dInfo=NULL)
Constructor. Copies the simulation parameters and the domain info.
Definition:
DiffusionSolver.cu:16
DiffusionSolver
Solves unsteady diffusion equation with an immersed boundary using the direct forcing method...
Definition:
DiffusionSolver.h:25
NavierStokesSolver
Solves the Navier-Stokes equations in a rectangular domain.
Definition:
NavierStokesSolver.h:26
DiffusionSolver.h
Declaration of the class DiffusionSolver.
DiffusionSolver::projectionStep
virtual void projectionStep()
The velocity at the next time step is the same as the intermediate velocity.
Definition:
DiffusionSolver.cu:55
Generated on Wed Jul 19 2017 12:27:42 for cuIBM by
1.8.11