Go to the documentation of this file.
    7 #ifndef INCLUDE_JET_GRID_FRACTIONAL_BOUNDARY_CONDITION_SOLVER2_H_ 
    8 #define INCLUDE_JET_GRID_FRACTIONAL_BOUNDARY_CONDITION_SOLVER2_H_ 
   44         unsigned int extrapolationDepth = 5) 
override;
 
   65 typedef std::shared_ptr<GridFractionalBoundaryConditionSolver2>
 
   70 #endif  // INCLUDE_JET_GRID_FRACTIONAL_BOUNDARY_CONDITION_SOLVER2_H_ 
  
void onColliderUpdated(const Size2 &gridSize, const Vector2D &gridSpacing, const Vector2D &gridOrigin) override
Invoked when a new collider is set.
 
const Vector2D & gridOrigin() const
Returns the origin of the velocity grid to be constrained.
 
Abstract base class for 2-D boundary condition solver for grids.
Definition: grid_boundary_condition_solver2.h:26
 
Fractional 2-D boundary condition solver for grids.
Definition: grid_fractional_boundary_condition_solver2.h:27
 
std::shared_ptr< CustomVectorField2 > CustomVectorField2Ptr
Shared pointer type for the CustomVectorField2.
Definition: custom_vector_field2.h:73
 
VectorField2Ptr colliderVelocityField() const override
Returns the velocity field of the collider.
 
2-D face-centered (a.k.a MAC or staggered) grid.
Definition: face_centered_grid2.h:26
 
const Size2 & gridSize() const
Returns the size of the velocity grid to be constrained.
 
Definition: advection_solver2.h:18
 
std::shared_ptr< ScalarField2 > ScalarField2Ptr
Shared pointer for the ScalarField2 type.
Definition: scalar_field2.h:40
 
const Vector2D & gridSpacing() const
Returns the spacing of the velocity grid to be constrained.
 
ScalarField2Ptr colliderSdf() const override
Returns the signed distance field of the collider.
 
2-D vector class.
Definition: vector2.h:24
 
2-D size class.
Definition: size2.h:19
 
void constrainVelocity(FaceCenteredGrid2 *velocity, unsigned int extrapolationDepth=5) override
 
std::shared_ptr< GridFractionalBoundaryConditionSolver2 > GridFractionalBoundaryConditionSolver2Ptr
Shared pointer type for the GridFractionalBoundaryConditionSolver2.
Definition: grid_fractional_boundary_condition_solver2.h:66
 
std::shared_ptr< VectorField2 > VectorField2Ptr
Shared pointer for the VectorField2 type.
Definition: vector_field2.h:40
 
virtual ~GridFractionalBoundaryConditionSolver2()
Default destructor.
 
std::shared_ptr< CellCenteredScalarGrid2 > CellCenteredScalarGrid2Ptr
Shared pointer for the CellCenteredScalarGrid2 type.
Definition: cell_centered_scalar_grid2.h:84
 
GridFractionalBoundaryConditionSolver2()
Default constructor.