cuIBM
A GPU-based Immersed Boundary Method code
DFModifiedSolver.cu
Go to the documentation of this file.
1 
7 #include <sys/stat.h>
8 
9 #include "DFModifiedSolver.h"
10 
11 
15 template <typename memoryType>
17 {
20 } // DFModifiedSolver
21 
22 
26 template <typename memoryType>
28 {
29  // temp_1 = Q.pressure
31  // r^n = r^n - temp1
33 } // calculateExplicitLambdaTerms
34 
35 
39 template <typename memoryType>
41 {
42  // u^{n+1} = u^{*} - B^N.Q.\phi
44 
45  // p^{n+1} = p^{n} + \phi
46  NavierStokesSolver<memoryType>::logger.startTimer("projectionStep");
48  NavierStokesSolver<memoryType>::logger.stopTimer("projectionStep");
49 } // projectionStep
50 
51 
52 // specialization of the class
53 template class DFModifiedSolver<device_memory>;
DFModifiedSolver(parameterDB *pDB=NULL, domain *dInfo=NULL)
Constructor – get simulation parameters and grid.
virtual void calculateExplicitLambdaTerms()
Compute and add the explicit pressure gradient to the RHS of velocity system.
A fully discrete formulation of the direct forcing method.
std::map< std::string, componentParameter > parameterDB
Map from a string to a componentParameter.
Definition: parameterDB.h:64
Definition of the class DFModifiedSolver.
Stores information about the computational grid.
Definition: domain.h:16
virtual void projectionStep()
Projects the flux onto the divergence-free field.
A fully discrete formulation of the direct forcing method, with an explicit pressure term in the inte...
Solves the Navier-Stokes equations in a rectangular domain.
virtual void projectionStep()
Project velocity field onto divergence-free space and update pressure.