Loading...
Searching...
No Matches
PICSolver2.hpp
Go to the documentation of this file.
Definition Array.hpp:36
Abstract base class for grid-based 2-D fluid solver.
Definition GridFluidSolver2.hpp:36
Base class for grid-based fluid solver builder.
Definition GridFluidSolver2.hpp:316
Definition Matrix.hpp:30
Front-end to create PICSolver2 objects step by step.
Definition PICSolver2.hpp:116
PICSolver2Ptr MakeShared() const
Builds shared pointer of PicSolver2 instance.
ScalarGrid2Ptr GetSignedDistanceField() const
Returns the signed-distance field of particles.
ScalarField2Ptr GetFluidSDF() const override
Returns the signed-distance field of the fluid.
virtual void TransferFromParticlesToGrids()
Transfers velocity field from particles to grids.
virtual void MoveParticles(double timeIntervalInSeconds)
Moves particles.
void ComputeAdvection(double timeIntervalInSeconds) override
Computes the advection term of the fluid solver.
virtual void TransferFromGridsToParticles()
Transfers velocity field from grids to particles.
PICSolver2(const Vector2UZ &resolution, const Vector2D &gridSpacing, const Vector2D &gridOrigin)
Constructs solver with initial grid size.
void SetParticleEmitter(const ParticleEmitter2Ptr &newEmitter)
Sets the particle emitter.
const ParticleSystemData2Ptr & GetParticleSystemData() const
Returns the particle system data.
const ParticleEmitter2Ptr & GetParticleEmitter() const
Returns the particle emitter.
void OnBeginAdvanceTimeStep(double timeIntervalInSeconds) override
Invoked before a simulation time-step begins.
Definition pybind11Utils.hpp:21
std::shared_ptr< ScalarField2 > ScalarField2Ptr
Shared pointer for the ScalarField2 type.
Definition ScalarField.hpp:67
std::shared_ptr< ParticleEmitter2 > ParticleEmitter2Ptr
Shared pointer for the ParticleEmitter2 type.
Definition ParticleEmitter2.hpp:94
std::shared_ptr< ParticleSystemData2 > ParticleSystemData2Ptr
Shared pointer type of ParticleSystemData2.
Definition ParticleSystemData.hpp:281
std::shared_ptr< ScalarGrid2 > ScalarGrid2Ptr
Shared pointer for the ScalarGrid2 type.
Definition ScalarGrid.hpp:266
std::shared_ptr< PICSolver2 > PICSolver2Ptr
Shared pointer type for the PICSolver2.
Definition PICSolver2.hpp:110
1.9.8