Blender V5.0
SPHData Struct Reference

#include <BKE_particle.h>

Public Attributes

ParticleSystempsys [10]
ParticleDatapa
float mass
const blender::Map< blender::OrderedEdge, int > * eh
const floatgravity
float hfac
int pass
float element_size
float flow [3]
blender::Vector< ParticleSpringnew_springs
void(* force_cb )(void *sphdata_v, ParticleKey *state, float *force, float *impulse)
void(* density_cb )(void *rangedata_v, int index, const float co[3], float squared_dist)

Detailed Description

Definition at line 82 of file BKE_particle.h.

Member Data Documentation

◆ density_cb

void(* SPHData::density_cb) (void *rangedata_v, int index, const float co[3], float squared_dist)

Definition at line 103 of file BKE_particle.h.

Referenced by psys_sph_density(), and psys_sph_init().

◆ eh

const blender::Map<blender::OrderedEdge, int>* SPHData::eh

Definition at line 86 of file BKE_particle.h.

Referenced by psys_sph_init(), and sph_force_cb().

◆ element_size

float SPHData::element_size

Definition at line 95 of file BKE_particle.h.

Referenced by sph_particle_courant(), and update_courant_num().

◆ flow

float SPHData::flow[3]

Definition at line 96 of file BKE_particle.h.

Referenced by sph_particle_courant(), and update_courant_num().

◆ force_cb

void(* SPHData::force_cb) (void *sphdata_v, ParticleKey *state, float *force, float *impulse)

Definition at line 102 of file BKE_particle.h.

Referenced by psys_sph_init(), and sph_integrate().

◆ gravity

const float* SPHData::gravity

The gravity as a float[3], may also be null when the simulation doesn't use gravity.

Definition at line 89 of file BKE_particle.h.

Referenced by psys_sph_init(), sph_force_cb(), and sphclassical_force_cb().

◆ hfac

◆ mass

◆ new_springs

blender::Vector<ParticleSpring> SPHData::new_springs

◆ pa

ParticleData* SPHData::pa

Definition at line 84 of file BKE_particle.h.

Referenced by psys_sph_init(), sph_force_cb(), sph_integrate(), and sphclassical_force_cb().

◆ pass

int SPHData::pass

Definition at line 94 of file BKE_particle.h.

Referenced by sph_force_cb(), sph_integrate(), and sphclassical_force_cb().

◆ psys


The documentation for this struct was generated from the following file: