Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Fraser <alex@phatcore.com>2011-09-25 15:51:28 +0400
committerAlex Fraser <alex@phatcore.com>2011-09-25 15:51:28 +0400
commit558b646216feaa43abf44eb332d2449c68bf1b39 (patch)
treefd723cb9ceeef9bc715f08ab9ae62a8698f54a0d /source/blender/blenkernel/BKE_particle.h
parent9931c9442e16867ac2117a60b5a41839df76a454 (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.h4
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{