Loading...
Searching...
No Matches
GridFractionalBoundaryConditionSolver2.hpp
Go to the documentation of this file.
1// This code is based on Jet framework.
2// Copyright (c) 2018 Doyub Kim
3// CubbyFlow is voxel-based fluid simulation engine for computer games.
4// Copyright (c) 2020 CubbyFlow Team
5// Core Part: Chris Ohk, Junwoo Hwang, Jihong Sin, Seungwoo Yoo
6// AI Part: Dongheon Cho, Minseo Kim
7// We are making my contributions/submissions to this project solely in our
8// personal capacity and are not conveying any rights to any intellectual
9// property of any third parties.
10
11#ifndef CUBBYFLOW_GRID_FRACTIONAL_BOUNDARY_CONDITION_SOLVER2_HPP
12#define CUBBYFLOW_GRID_FRACTIONAL_BOUNDARY_CONDITION_SOLVER2_HPP
13
17
18namespace CubbyFlow
19{
80
84} // namespace CubbyFlow
85
86#endif
N-D face-centered (a.k.a MAC or staggered) grid.
Definition FaceCenteredGrid.hpp:32
Abstract base class for 2-D boundary condition solver for grids.
Definition GridBoundaryConditionSolver2.hpp:28
Fractional 2-D boundary condition solver for grids.
Definition GridFractionalBoundaryConditionSolver2.hpp:30
GridFractionalBoundaryConditionSolver2()=default
Default constructor.
VectorField2Ptr GetColliderVelocityField() const override
Returns the velocity field of the collider.
void OnColliderUpdated(const Vector2UZ &gridSize, const Vector2D &gridSpacing, const Vector2D &gridOrigin) override
Invoked when a new collider is set.
GridFractionalBoundaryConditionSolver2(GridFractionalBoundaryConditionSolver2 &&) noexcept=delete
Deleted move constructor.
GridFractionalBoundaryConditionSolver2(const GridFractionalBoundaryConditionSolver2 &)=delete
Deleted copy constructor.
ScalarField2Ptr GetColliderSDF() const override
Returns the signed distance field of the collider.
void ConstrainVelocity(FaceCenteredGrid2 *velocity, unsigned int extrapolationDepth=5) override
Definition Matrix.hpp:30
Definition pybind11Utils.hpp:21
std::shared_ptr< ScalarField2 > ScalarField2Ptr
Shared pointer for the ScalarField2 type.
Definition ScalarField.hpp:67
std::shared_ptr< VectorField2 > VectorField2Ptr
Shared pointer for the VectorField2 type.
Definition VectorField.hpp:87
std::shared_ptr< GridFractionalBoundaryConditionSolver2 > GridFractionalBoundaryConditionSolver2Ptr
Shared pointer type for the GridFractionalBoundaryConditionSolver2.
Definition GridFractionalBoundaryConditionSolver2.hpp:83
std::shared_ptr< CustomVectorField2 > CustomVectorField2Ptr
Shared pointer type for the CustomVectorField2.
Definition CustomVectorField.hpp:93
std::shared_ptr< CellCenteredScalarGrid2 > CellCenteredScalarGrid2Ptr
Shared pointer for the CellCenteredScalarGrid2 type.
Definition CellCenteredScalarGrid.hpp:103