SFSolver#
The SFSolver is the Stable Fluid solver: a grid-based (Eulerian) solver for gaseous phenomena such as smoke. It advects a velocity field and one or more scalar density fields on a fixed 3D grid, then makes the velocity field divergence-free with a Jacobi pressure projection.
It simulates the SF.Smoke material; see Smoke. For usage and behavior, see Beyond rigid bodies.
Options#
- class genesis.options.solvers.SFOptions(*, dt: float | None = None, res: int = 128, solver_iters: int = 500, decay: float = 0.99, T_low: float = 1.0, T_high: float = 0.0, inlet_pos: tuple[float, float, float] = (0.6, 0.0, 0.1), inlet_vel: tuple[float, float, float] = (0.0, 0.0, 1.0), inlet_quat: tuple[float, float, float, float] = (1.0, 0.0, 0.0, 0.0), inlet_s: float = 400.0) None[source]#
Options configuring the SFSolver.
SFSolver#
- class genesis.engine.solvers.sf_solver.SFSolver(scene, sim, options)[source]#
Bases:
TimeBasedMixin,SolverStable Fluid solver for eulerian-based gaseous simulation.
- property is_active#
- pressure_jacobi(pf: <quadrants.types.annotations.Template object at 0x797f40f83200>, new_pf: <quadrants.types.annotations.Template object at 0x797f40f831a0>)[source]#
See also#
Smoke: the smoke material simulated by this solver.