Loading...
Searching...
No Matches
PICSolver3.hpp
Go to the documentation of this file.
Definition Array.hpp:36
Abstract base class for grid-based 3-D fluid solver.
Definition GridFluidSolver3.hpp:36
Base class for grid-based fluid solver builder.
Definition GridFluidSolver3.hpp:316
Definition Matrix.hpp:30
Front-end to create PICSolver3 objects step by step.
Definition PICSolver3.hpp:117
PICSolver3Ptr MakeShared() const
Builds shared pointer of PICSolver3 instance.
void OnBeginAdvanceTimeStep(double timeIntervalInSeconds) override
Invoked before a simulation time-step begins.
virtual void TransferFromGridsToParticles()
Transfers velocity field from grids to particles.
virtual void TransferFromParticlesToGrids()
Transfers velocity field from particles to grids.
const ParticleEmitter3Ptr & GetParticleEmitter() const
Returns the particle emitter.
virtual void MoveParticles(double timeIntervalInSeconds)
Moves particles.
void SetParticleEmitter(const ParticleEmitter3Ptr &newEmitter)
Sets the particle emitter.
const ParticleSystemData3Ptr & GetParticleSystemData() const
Returns the particle system data.
void ComputeAdvection(double timeIntervalInSeconds) override
Computes the advection term of the fluid solver.
PICSolver3(const Vector3UZ &resolution, const Vector3D &gridSpacing, const Vector3D &gridOrigin)
Constructs solver with initial grid size.
ScalarGrid3Ptr GetSignedDistanceField() const
Returns the signed-distance field of particles.
ScalarField3Ptr GetFluidSDF() const override
Returns the signed-distance field of the fluid.
Definition pybind11Utils.hpp:21
std::shared_ptr< ParticleSystemData3 > ParticleSystemData3Ptr
Shared pointer type of ParticleSystemData3.
Definition ParticleSystemData.hpp:284
std::shared_ptr< PICSolver3 > PICSolver3Ptr
Shared pointer type for the PICSolver3.
Definition PICSolver3.hpp:111
std::shared_ptr< ScalarGrid3 > ScalarGrid3Ptr
Shared pointer for the ScalarGrid3 type.
Definition ScalarGrid.hpp:269
std::shared_ptr< ScalarField3 > ScalarField3Ptr
Shared pointer for the ScalarField3 type.
Definition ScalarField.hpp:70
std::shared_ptr< ParticleEmitter3 > ParticleEmitter3Ptr
Shared pointer for the ParticleEmitter3 type.
Definition ParticleEmitter3.hpp:94
1.9.8