Loading...
Searching...
No Matches
GridPressureSolver2.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_PRESSURE_SOLVER2_HPP
12#define CUBBYFLOW_GRID_PRESSURE_SOLVER2_HPP
13
18
19namespace CubbyFlow
20{
93
95using GridPressureSolver2Ptr = std::shared_ptr<GridPressureSolver2>;
96} // namespace CubbyFlow
97
98#endif
N-D constant scalar field.
Definition ConstantScalarField.hpp:21
N-D constant vector field.
Definition ConstantVectorField.hpp:21
N-D face-centered (a.k.a MAC or staggered) grid.
Definition FaceCenteredGrid.hpp:32
Abstract base class for 2-D grid-based pressure solver.
Definition GridPressureSolver2.hpp:30
virtual void Solve(const FaceCenteredGrid2 &input, double timeIntervalInSeconds, FaceCenteredGrid2 *output, const ScalarField2 &boundarySDF=ConstantScalarField2{ std::numeric_limits< double >::max() }, const VectorField2 &boundaryVelocity=ConstantVectorField2{ { 0, 0 } }, const ScalarField2 &fluidSDF=ConstantScalarField2{ -std::numeric_limits< double >::max() }, bool useCompressed=false)=0
Solves the pressure term and apply it to the velocity field.
GridPressureSolver2()=default
Default constructor.
GridPressureSolver2(GridPressureSolver2 &&) noexcept=delete
Deleted move constructor.
virtual GridBoundaryConditionSolver2Ptr SuggestedBoundaryConditionSolver() const =0
Returns the best boundary condition solver for this solver.
GridPressureSolver2(const GridPressureSolver2 &)=delete
Deleted copy constructor.
Definition Matrix.hpp:30
Abstract base class for N-D scalar field.
Definition ScalarField.hpp:25
Abstract base class for N-D vector field.
Definition VectorField.hpp:43
Definition pybind11Utils.hpp:21
ScalarField< 2 > ScalarField2
2-D ScalarField type.
Definition ScalarField.hpp:61
Matrix< T, Rows, 1 > Vector
Definition Matrix.hpp:738
ConstantScalarField< 2 > ConstantScalarField2
2-D ConstantScalarField type.
Definition ConstantScalarField.hpp:43
std::shared_ptr< GridPressureSolver2 > GridPressureSolver2Ptr
Shared pointer type for the GridPressureSolver2.
Definition GridPressureSolver2.hpp:95
std::shared_ptr< GridBoundaryConditionSolver2 > GridBoundaryConditionSolver2Ptr
Shared pointer type for the GridBoundaryConditionSolver2.
Definition GridBoundaryConditionSolver2.hpp:117