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:
authorJanne Karhu <jhkarh@gmail.com>2010-04-04 16:29:06 +0400
committerJanne Karhu <jhkarh@gmail.com>2010-04-04 16:29:06 +0400
commitc5871b87502cfd35fa14881f1bcadbd5564e658f (patch)
tree7397e7a403589d31244ecaf7f976e3f532729159 /source/blender/makesdna/DNA_particle_types.h
parentd574e8b82617c389de85a09fcf9b0f14172466a8 (diff)
Fluid physics for particles by Raul Fernandez Hernandez (Farsthary) and Stephen Swhitehorn:
This patch add SPH (Smoothed Particle Hydrodynamics)fluid dynamics to the blender particle system. SPH is an boundless Lagrangian interpolation technique to solve the fluid motion equations. From liquids to sand, goo and gases could be simulated using the particle system. It features internal viscosity, a double density relaxation that accounts for surface tension effects, static internal springs for plastic fluids, and buoyancy for gases. --------------------------------------- This is a commit of the core fluid physics. Raul will work on proper documentation soon and more features such as surface extraction from the particle point cloud and increasing stability by sub-frame calculations later.
Diffstat (limited to 'source/blender/makesdna/DNA_particle_types.h')
-rw-r--r--source/blender/makesdna/DNA_particle_types.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_particle_types.h b/source/blender/makesdna/DNA_particle_types.h
index 36c144a1cfa..8367875aa7a 100644
--- a/source/blender/makesdna/DNA_particle_types.h
+++ b/source/blender/makesdna/DNA_particle_types.h
@@ -114,11 +114,20 @@ typedef struct ParticleData {
short alive; /* the life state of a particle */
} ParticleData;
+typedef struct SPHFluidSettings {
+ /*Particle Fluid*/
+ float spring_k, radius, rest_length;
+ float viscosity_omega, viscosity_beta;
+ float stiffness_k, stiffness_knear, rest_density;
+ float buoyancy;
+} SPHFluidSettings;
+
typedef struct ParticleSettings {
ID id;
struct AnimData *adt;
struct BoidSettings *boids;
+ struct SPHFluidSettings *fluid;
struct EffectorWeights *effector_weights;
@@ -322,6 +331,7 @@ typedef struct ParticleSystem{ /* note, make sure all (runtime) are NULL's in
#define PART_PHYS_NEWTON 1
#define PART_PHYS_KEYED 2
#define PART_PHYS_BOIDS 3
+#define PART_PHYS_FLUID 4
/* part->kink */
#define PART_KINK_NO 0