Table of Contents
- N_FLUID
- Public Attributes
- Public Attributes Documentation
- variable v
- variable u
- variable solveIncompressibility_chunk_list
- variable showSmoke
- variable showPressure
- variable showPaint
- variable s
- variable positive_float_tolerance
- variable p
- variable overRelaxation
- variable numZ
- variable numY
- variable numX
- variable numIters
- variable numCells
- variable newV
- variable newU
- variable newM
- variable negative_float_tolerance
- variable m
- variable integrate_chunk_list
- variable h
- variable gravity
- variable fluid_production_percentage
- variable dt
- variable density
- variable cScale
- variable advectVel_chunk_list
- variable advectSmoke_chunk_list
N_FLUID
Module: FLUIDS: fluid simulation example
structure of a fluid
#include "n_fluids.h"
Public Attributes
| Name | |
|---|---|
| double * | v holder for v arrays |
| double * | u holder for u arrays |
| LIST * | solveIncompressibility_chunk_list preprocessed list of threaded procs parameters, for n_fluid_solveIncompressibility |
| bool | showSmoke display fluid as a colored cloud instead of black and white, can be combined with showPressure |
| bool | showPressure display fluids pressures as color variations, can be combined with showSmoke |
| bool | showPaint activate a fonky palette, override smoke and pressure display |
| double * | s holder for s arrays |
| double | positive_float_tolerance fluid double positive precision setting |
| double * | p holder for p arrays |
| double | overRelaxation over relaxation |
| size_t | numZ number of cells in Z |
| size_t | numY number of cells in Y |
| size_t | numX number of cells in X |
| size_t | numIters number of fluid processing iterations for each frame |
| size_t | numCells total number of cells |
| double * | newV holder for newV arrays |
| double * | newU holder for newU arrays |
| double * | newM holder for newM arrays |
| double | negative_float_tolerance fluid double negative precision setting |
| double * | m holder for m arrays |
| LIST * | integrate_chunk_list preprocessed list of threaded procs parameters, for n_fluid_integrate |
| double | h |
| double | gravity gravity on Y |
| double | fluid_production_percentage size of the produced fluid |
| double | dt time between frames |
| double | density density of the fluid (not working ?) |
| double | cScale scale used to deduce cellX and cellY from screen/window width and height |
| LIST * | advectVel_chunk_list preprocessed list of threaded procs parameters, for n_fluid_advectVel |
| LIST * | advectSmoke_chunk_list preprocessed list of threaded procs parameters, for n_fluid_advectSmoke |
Public Attributes Documentation
variable v
double * v;
holder for v arrays
variable u
double * u;
holder for u arrays
variable solveIncompressibility_chunk_list
LIST * solveIncompressibility_chunk_list;
preprocessed list of threaded procs parameters, for n_fluid_solveIncompressibility
variable showSmoke
bool showSmoke;
display fluid as a colored cloud instead of black and white, can be combined with showPressure
variable showPressure
bool showPressure;
display fluids pressures as color variations, can be combined with showSmoke
variable showPaint
bool showPaint;
activate a fonky palette, override smoke and pressure display
variable s
double * s;
holder for s arrays
variable positive_float_tolerance
double positive_float_tolerance;
fluid double positive precision setting
variable p
double * p;
holder for p arrays
variable overRelaxation
double overRelaxation;
over relaxation
variable numZ
size_t numZ;
number of cells in Z
variable numY
size_t numY;
number of cells in Y
variable numX
size_t numX;
number of cells in X
variable numIters
size_t numIters;
number of fluid processing iterations for each frame
variable numCells
size_t numCells;
total number of cells
variable newV
double * newV;
holder for newV arrays
variable newU
double * newU;
holder for newU arrays
variable newM
double * newM;
holder for newM arrays
variable negative_float_tolerance
double negative_float_tolerance;
fluid double negative precision setting
variable m
double * m;
holder for m arrays
variable integrate_chunk_list
LIST * integrate_chunk_list;
preprocessed list of threaded procs parameters, for n_fluid_integrate
variable h
double h;
variable gravity
double gravity;
gravity on Y
variable fluid_production_percentage
double fluid_production_percentage;
size of the produced fluid
variable dt
double dt;
time between frames
variable density
double density;
density of the fluid (not working ?)
variable cScale
double cScale;
scale used to deduce cellX and cellY from screen/window width and height
variable advectVel_chunk_list
LIST * advectVel_chunk_list;
preprocessed list of threaded procs parameters, for n_fluid_advectVel
variable advectSmoke_chunk_list
LIST * advectSmoke_chunk_list;
preprocessed list of threaded procs parameters, for n_fluid_advectSmoke
Modules
- AABB3D
- ACCEPT_POOL
- ALLEGRO4
- ALLEGRO5
- ANIM_LIB
- ASTAR
- ATLAS_LIB
- AVRO
- CLOCK_SYNC
- COMMONS
- CONFIGFILE
- CYPHER_BASE64
- CYPHER_VIGENERE
- DEAD_RECKONING
- ENUMS
- EXCEPTIONS
- GAME_ENV
- GIT
- GUI
- HASH_TABLE
- ISOMETRIC_ENGINE
- LIST
- LOG
- LOGNODUP
- LZ4
- NETWORKING
- NETWORK_MSG
- N_COOKIES
- N_DIFF
- N_DIGEST
- N_DISK_CACHE
- N_DNS
- N_ECC
- N_ENTROPY
- N_FILES
- N_FLUIDS
- N_GUI_COLOR
- N_GUI_COLORWHEEL
- N_GUI_CURVE
- N_GUI_GRID
- N_GUI_POPUP
- N_HEX
- N_HTTP3
- N_HTTP_COOKIE
- N_HTTP_FORM
- N_HTTP_MIME
- N_HTTP_REQ
- N_HTTP_RESP
- N_HTTP_ROUTER
- N_HTTP_SERVER
- N_ICC
- N_JSON
- N_KAFKA
- N_LINALG
- N_MODULE
- N_OPENSSL_COMPAT
- N_PRETTY
- N_PTH
- N_QUERY
- N_RANDOM
- N_SHA256
- N_STR
- N_TIFF
- N_TIME
- N_USER
- N_X509
- N_ZIP
- PARTICLES
- PCRE
- PHYSICS
- SIGNALS
- STACK
- THREADS
- TRAJECTORY
- TREE
- ZLIB