5 Struct N_FLUID
gullradriel edited this page 2026-10-09 00:55:18 +02:00

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