LevelSetLiquidSolver2.hpp
Go to the documentation of this file.
ScalarField2Ptr GetFluidSDF() const override
Returns fluid region as a signed-distance field.
void OnEndAdvanceTimeStep(double timeIntervalInSeconds) override
Called at the end of the time-step.
void SetMinReinitializeDistance(double distance)
Sets minimum reinitialization distance.
Base class for grid-based fluid solver builder.
Definition: GridFluidSolver2.hpp:315
LevelSetSolver2Ptr GetLevelSetSolver() const
Returns the level set solver.
std::shared_ptr< LevelSetLiquidSolver2 > LevelSetLiquidSolver2Ptr
Shared pointer type for the LevelSetLiquidSolver2.
Definition: LevelSetLiquidSolver2.hpp:130
Level set based 2-D liquid solver.
Definition: LevelSetLiquidSolver2.hpp:30
static Builder GetBuilder()
Returns builder fox LevelSetLiquidSolver2.
ScalarGrid2Ptr GetSignedDistanceField() const
Returns signed-distance field.
std::shared_ptr< ScalarField2 > ScalarField2Ptr
Shared pointer for the ScalarField2 type.
Definition: ScalarField.hpp:67
Definition: Matrix.hpp:27
LevelSetLiquidSolver2 & operator=(const LevelSetLiquidSolver2 &)=delete
Deleted copy assignment operator.
Definition: pybind11Utils.hpp:20
std::shared_ptr< ScalarGrid2 > ScalarGrid2Ptr
Shared pointer for the ScalarGrid2 type.
Definition: ScalarGrid.hpp:266
double ComputeVolume() const
Returns liquid volume measured by smeared Heaviside function.
std::shared_ptr< LevelSetSolver2 > LevelSetSolver2Ptr
Shared pointer type for the LevelSetSolver2.
Definition: LevelSetSolver2.hpp:93
void OnBeginAdvanceTimeStep(double timeIntervalInSeconds) override
Called at the beginning of the time-step.
Front-end to create LevelSetLiquidSolver2 objects step by step.
Definition: LevelSetLiquidSolver2.hpp:135
Abstract base class for grid-based 2-D fluid solver.
Definition: GridFluidSolver2.hpp:35
void ComputeAdvection(double timeIntervalInSeconds) override
Customizes advection step.
~LevelSetLiquidSolver2() override=default
Default virtual destructor.
void SetIsGlobalCompensationEnabled(bool isEnabled)
Enables (or disables) global compensation feature flag.
void SetLevelSetSolver(const LevelSetSolver2Ptr &newSolver)
Sets the level set solver.