PICSolver2.hpp
Go to the documentation of this file.
Base class for grid-based fluid solver builder.
Definition: GridFluidSolver2.hpp:315
std::shared_ptr< ParticleEmitter2 > ParticleEmitter2Ptr
Shared pointer for the ParticleEmitter2 type.
Definition: ParticleEmitter2.hpp:94
Front-end to create PICSolver2 objects step by step.
Definition: PICSolver2.hpp:115
virtual void MoveParticles(double timeIntervalInSeconds)
Moves particles.
void ComputeAdvection(double timeIntervalInSeconds) override
Computes the advection term of the fluid solver.
std::shared_ptr< ScalarField2 > ScalarField2Ptr
Shared pointer for the ScalarField2 type.
Definition: ScalarField.hpp:67
const ParticleEmitter2Ptr & GetParticleEmitter() const
Returns the particle emitter.
std::shared_ptr< ParticleSystemData2 > ParticleSystemData2Ptr
Shared pointer type of ParticleSystemData2.
Definition: ParticleSystemData.hpp:281
Definition: Matrix.hpp:27
Definition: pybind11Utils.hpp:20
virtual void TransferFromGridsToParticles()
Transfers velocity field from grids to particles.
Definition: Array-Impl.hpp:19
std::shared_ptr< ScalarGrid2 > ScalarGrid2Ptr
Shared pointer for the ScalarGrid2 type.
Definition: ScalarGrid.hpp:266
PICSolver2 & operator=(const PICSolver2 &)=delete
Deleted copy assignment operator.
ScalarField2Ptr GetFluidSDF() const override
Returns the signed-distance field of the fluid.
void SetParticleEmitter(const ParticleEmitter2Ptr &newEmitter)
Sets the particle emitter.
const ParticleSystemData2Ptr & GetParticleSystemData() const
Returns the particle system data.
std::shared_ptr< PICSolver2 > PICSolver2Ptr
Shared pointer type for the PICSolver2.
Definition: PICSolver2.hpp:110
Abstract base class for grid-based 2-D fluid solver.
Definition: GridFluidSolver2.hpp:35
ScalarGrid2Ptr GetSignedDistanceField() const
Returns the signed-distance field of particles.
void OnBeginAdvanceTimeStep(double timeIntervalInSeconds) override
Invoked before a simulation time-step begins.
virtual void TransferFromParticlesToGrids()
Transfers velocity field from particles to grids.