LevelSetLiquidSolver2.h
Go to the documentation of this file.
122 class LevelSetLiquidSolver2::Builder final : public GridFluidSolverBuilderBase2<LevelSetLiquidSolver2::Builder>
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.h:303
LevelSetLiquidSolver2Ptr MakeShared() const
Builds shared pointer of LevelSetLiquidSolver2 instance.
LevelSetSolver2Ptr GetLevelSetSolver() const
Returns the level set solver.
std::shared_ptr< LevelSetLiquidSolver2 > LevelSetLiquidSolver2Ptr
Shared pointer type for the LevelSetLiquidSolver2.
Definition: LevelSetLiquidSolver2.h:117
Level set based 2-D liquid solver.
Definition: LevelSetLiquidSolver2.h:28
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: ScalarField2.h:44
Definition: pybind11Utils.h:24
std::shared_ptr< ScalarGrid2 > ScalarGrid2Ptr
Shared pointer for the ScalarGrid2 type.
Definition: ScalarGrid2.h:179
double ComputeVolume() const
Returns liquid volume measured by smeared Heaviside function.
std::shared_ptr< LevelSetSolver2 > LevelSetSolver2Ptr
Shared pointer type for the LevelSetSolver2.
Definition: LevelSetSolver2.h:88
void OnBeginAdvanceTimeStep(double timeIntervalInSeconds) override
Called at the beginning of the time-step.
Front-end to create LevelSetLiquidSolver2 objects step by step.
Definition: LevelSetLiquidSolver2.h:122
Abstract base class for grid-based 2-D fluid solver.
Definition: GridFluidSolver2.h:33
void ComputeAdvection(double timeIntervalInSeconds) override
Customizes advection step.
void SetIsGlobalCompensationEnabled(bool isEnabled)
Enables (or disables) global compensation feature flag.
LevelSetLiquidSolver2 Build() const
Builds LevelSetLiquidSolver2.
void SetLevelSetSolver(const LevelSetSolver2Ptr &newSolver)
Sets the level set solver.