cuIBM
A GPU-based Immersed Boundary Method code
DFModifiedSolver.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include "DirectForcingSolver.h"
10 
11 
24 template <typename memoryType>
25 class DFModifiedSolver : public DirectForcingSolver<memoryType>
26 {
27 protected:
28  // compute and add explicit pressure gradient to RHS of velocity system
29  virtual void calculateExplicitLambdaTerms();
30 
31  // project velocity onto divergence-free space and update pressure
32  virtual void projectionStep();
33 
34 public:
35  // constructor -- get simulation parameters and grid
36  DFModifiedSolver(parameterDB *pDB=NULL, domain *dInfo=NULL);
37 
41  virtual std::string name()
42  {
43  return "DFModified";
44  }
45 
46 }; // DFModifiedSolver
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
Stores information about the computational grid.
Definition: domain.h:16
Declaration of the class DirectForcingSolver.
virtual std::string name()
Return name of solver.
A fully discrete formulation of the direct forcing method, with an explicit pressure term in the inte...
virtual void projectionStep()
Project velocity field onto divergence-free space and update pressure.