diff options
author | Alex Fraser <alex@phatcore.com> | 2011-09-25 15:51:28 +0400 |
---|---|---|
committer | Alex Fraser <alex@phatcore.com> | 2011-09-25 15:51:28 +0400 |
commit | 558b646216feaa43abf44eb332d2449c68bf1b39 (patch) | |
tree | fd723cb9ceeef9bc715f08ab9ae62a8698f54a0d /source/blender/blenkernel/BKE_particle.h | |
parent | 9931c9442e16867ac2117a60b5a41839df76a454 (diff) |
Committing patch #27442: Adaptive time step for fluid particles. The number of
subframes can now be altered automatically while an SPH (fluid particle)
simulation is running.
Diffstat (limited to 'source/blender/blenkernel/BKE_particle.h')
-rw-r--r-- | source/blender/blenkernel/BKE_particle.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_particle.h b/source/blender/blenkernel/BKE_particle.h index 5b565223ece..c417b1efe4f 100644 --- a/source/blender/blenkernel/BKE_particle.h +++ b/source/blender/blenkernel/BKE_particle.h @@ -80,6 +80,10 @@ typedef struct ParticleSimulationData { struct ParticleSystem *psys; struct ParticleSystemModifierData *psmd; struct ListBase *colliders; + /* Courant number. This is used to implement an adaptive time step. Only the + maximum value per time step is important. Only sph_integrate makes use of + this at the moment. Other solvers could, too. */ + float courant_num; } ParticleSimulationData; typedef struct ParticleTexture{ |