Tuning knobs of one fluid simulation. 更多...
#include <FluidMath.h>
Public 属性 | |
| float | particleRadius = 0.05f |
| Resting particle radius in world units. | |
| float | supportRadius = 0.20f |
| SPH support radius h (kernel cutoff), typically 4x particleRadius. | |
| float | restDensity = 1.0f |
| Rest density; normalized to 1. | |
| glm::vec3 | gravity {0.f, -9.8f, 0.f} |
| Gravity vector in world units / s^2. | |
| float | viscosity = 0.02f |
| XSPH viscosity strength (0 = inviscid). | |
| float | yieldStress = 0.0f |
| Bingham yield stress: below this shear rate particles "freeze". | |
| float | cohesion = 0.0f |
| Fluid-fluid cohesion strength (droplet formation). | |
| float | adhesion = 0.0f |
| Fluid-surface adhesion strength (contact angle / sticking). | |
| float | damping = 0.0f |
| Linear air damping applied each substep. | |
| float | maxVelocity = 20.f |
| Velocity clamp after integration. | |
| int | iterations = 1 |
| Solver substeps per call to step(dt). | |
| int | pbfIterations = 2 |
| PBF density-constraint relaxation passes per substep. | |
详细描述
Tuning knobs of one fluid simulation.
Units are normalized (mass = 1 per particle, rest density 1). The support radius defaults to 4x the particle radius, the common PBF/SPH choice, so a particle sees roughly a 2-cell neighborhood in the uniform grid.
在文件 FluidMath.h 第 26 行定义.
类成员变量说明
◆ adhesion
| float eve::fluids::FluidParams::adhesion = 0.0f |
Fluid-surface adhesion strength (contact angle / sticking).
在文件 FluidMath.h 第 42 行定义.
◆ cohesion
| float eve::fluids::FluidParams::cohesion = 0.0f |
Fluid-fluid cohesion strength (droplet formation).
在文件 FluidMath.h 第 40 行定义.
◆ damping
| float eve::fluids::FluidParams::damping = 0.0f |
Linear air damping applied each substep.
在文件 FluidMath.h 第 44 行定义.
◆ gravity
Gravity vector in world units / s^2.
在文件 FluidMath.h 第 34 行定义.
◆ iterations
| int eve::fluids::FluidParams::iterations = 1 |
Solver substeps per call to step(dt).
在文件 FluidMath.h 第 48 行定义.
被这些函数引用 eve::fluids::FluidSimulator::step() , 以及 eve::fluids::FluidSimulation::step().
◆ maxVelocity
| float eve::fluids::FluidParams::maxVelocity = 20.f |
Velocity clamp after integration.
在文件 FluidMath.h 第 46 行定义.
◆ particleRadius
| float eve::fluids::FluidParams::particleRadius = 0.05f |
Resting particle radius in world units.
在文件 FluidMath.h 第 28 行定义.
被这些函数引用 eve::fluids_editing::FluidSimulationRuntimeApplier::apply(), eve::fluids::FluidSurfaceRenderer::render(), eve::fluids::FluidSimulator::setParticleRadius() , 以及 eve::fluids::FluidSimulation::spawnDrop().
◆ pbfIterations
| int eve::fluids::FluidParams::pbfIterations = 2 |
PBF density-constraint relaxation passes per substep.
在文件 FluidMath.h 第 50 行定义.
被这些函数引用 eve::fluids::FluidSimulator::setPbfIterations() , 以及 eve::fluids::FluidSimulation::step().
◆ restDensity
| float eve::fluids::FluidParams::restDensity = 1.0f |
Rest density; normalized to 1.
在文件 FluidMath.h 第 32 行定义.
◆ supportRadius
| float eve::fluids::FluidParams::supportRadius = 0.20f |
SPH support radius h (kernel cutoff), typically 4x particleRadius.
在文件 FluidMath.h 第 30 行定义.
被这些函数引用 eve::fluids::FluidSimulator::setSdf(), eve::fluids::FluidSimulation::setSdf() , 以及 eve::fluids::FluidSimulator::setSupportRadius().
◆ viscosity
| float eve::fluids::FluidParams::viscosity = 0.02f |
XSPH viscosity strength (0 = inviscid).
在文件 FluidMath.h 第 36 行定义.
◆ yieldStress
| float eve::fluids::FluidParams::yieldStress = 0.0f |
Bingham yield stress: below this shear rate particles "freeze".
在文件 FluidMath.h 第 38 行定义.
该结构体的文档由以下文件生成:
- src/modules/fluids/FluidMath.h