Fractional 2-D boundary condition solver for grids. More...
#include <Core/Solver/Grid/GridFractionalBoundaryConditionSolver2.h>
  
 Public Member Functions | |
| GridFractionalBoundaryConditionSolver2 () | |
| Default constructor.  More... | |
| virtual | ~GridFractionalBoundaryConditionSolver2 () | 
| Default destructor.  More... | |
| void | ConstrainVelocity (FaceCenteredGrid2 *velocity, unsigned int extrapolationDepth=5) override | 
| ScalarField2Ptr | GetColliderSDF () const override | 
| Returns the signed distance field of the collider.  More... | |
| VectorField2Ptr | GetColliderVelocityField () const override | 
| Returns the velocity field of the collider.  More... | |
  Public Member Functions inherited from CubbyFlow::GridBoundaryConditionSolver2 | |
| GridBoundaryConditionSolver2 () | |
| Default constructor.  More... | |
| virtual | ~GridBoundaryConditionSolver2 () | 
| Default destructor.  More... | |
| const Collider2Ptr & | GetCollider () const | 
| Returns associated collider.  More... | |
| void | UpdateCollider (const Collider2Ptr &newCollider, const Size2 &gridSize, const Vector2D &gridSpacing, const Vector2D &gridOrigin) | 
| Applies new collider and build the internals.  More... | |
| int | GetClosedDomainBoundaryFlag () const | 
| Returns the closed domain boundary flag.  More... | |
| void | SetClosedDomainBoundaryFlag (int flag) | 
| Sets the closed domain boundary flag.  More... | |
Protected Member Functions | |
| void | OnColliderUpdated (const Size2 &gridSize, const Vector2D &gridSpacing, const Vector2D &gridOrigin) override | 
| Invoked when a new collider is set.  More... | |
  Protected Member Functions inherited from CubbyFlow::GridBoundaryConditionSolver2 | |
| const Size2 & | GetGridSize () const | 
| Returns the size of the velocity grid to be constrained.  More... | |
| const Vector2D & | GetGridSpacing () const | 
| Returns the spacing of the velocity grid to be constrained.  More... | |
| const Vector2D & | GetGridOrigin () const | 
| Returns the origin of the velocity grid to be constrained.  More... | |
Detailed Description
Fractional 2-D boundary condition solver for grids.
This class constrains the velocity field by projecting the flow to the signed-distance field representation of the collider. This implementation should pair up with GridFractionalSinglePhasePressureSolver2 to provide sub-grid resolution velocity projection.
Constructor & Destructor Documentation
◆ GridFractionalBoundaryConditionSolver2()
| CubbyFlow::GridFractionalBoundaryConditionSolver2::GridFractionalBoundaryConditionSolver2 | ( | ) | 
Default constructor.
◆ ~GridFractionalBoundaryConditionSolver2()
      
  | 
  virtual | 
Default destructor.
Member Function Documentation
◆ ConstrainVelocity()
      
  | 
  overridevirtual | 
Constrains the velocity field to conform the collider boundary.
- Parameters
 - 
  
velocity Input and output velocity grid. extrapolationDepth Number of inner-collider grid cells that velocity will get extrapolated.  
Implements CubbyFlow::GridBoundaryConditionSolver2.
◆ GetColliderSDF()
      
  | 
  overridevirtual | 
Returns the signed distance field of the collider.
Implements CubbyFlow::GridBoundaryConditionSolver2.
◆ GetColliderVelocityField()
      
  | 
  overridevirtual | 
Returns the velocity field of the collider.
Implements CubbyFlow::GridBoundaryConditionSolver2.
◆ OnColliderUpdated()
      
  | 
  overrideprotectedvirtual | 
Invoked when a new collider is set.
Implements CubbyFlow::GridBoundaryConditionSolver2.
The documentation for this class was generated from the following file:
- Core/Solver/Grid/GridFractionalBoundaryConditionSolver2.h
 
 Public Member Functions inherited from 
 1.8.14