Blender V5.0
DNA_object_fluidsim_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2004-2005 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DNA_ID.h"
12#include "DNA_defs.h"
13
17
18typedef struct FluidsimSettings {
21 /* threadcont the calculation is done with */
23 char _pad1[4];
24 /* domain, fluid or obstacle */
25 short type;
26 /* Display advanced options in fluid sim tab (on=1, off=0). */
28
29 /* domain object settings */
30 /* resolutions */
33 /* size of the domain in real units (meters along largest resolution x, y, z extent) */
34 float realsize;
35 /* show original meshes, preview or final sim */
38
39 /* fluid properties */
41 short viscosityMode DNA_DEPRECATED;
43 /* gravity strength */
44 float grav[3];
45 /* anim start end time (in seconds) */
47 /* bake start end time (in blender frames) */
49 /* offset for baked frames */
51 char _pad2[4];
52 /* g star param (LBM compressibility) */
53 float gstar;
54 /* activate refinement? */
56
57 /* fluid object type settings */
58 /* gravity strength */
60
64 char surfdataPath[/*FILE_MAX*/ 1024];
65
66 /* store start coords of axis aligned bounding box together with size */
67 /* values are initialized during derived mesh display. */
68 float bbStart[3], bbSize[3];
69
70 /* additional flags depending on the type, lower short contains flags
71 * to check validity, higher short additional flags */
72 short typeFlags;
78
79 /* boundary "stickiness" for part slip values */
81
82 /* number of tracers to generate */
84 /* particle generation - on if >0, then determines amount (experimental...) */
86 /* smooth fluid surface? */
91 int flag;
92
95 /* testing vars */
97
102
103 /* Fluid control settings */
107
112
114
116 float animRate;
118
120enum {
129};
130
132enum {
136};
ID and Library types, which are fundamental for SDNA.
@ OB_FLUIDSIM_OVERRIDE_TIME
short viscosityMode DNA_DEPRECATED
struct FluidsimModifierData * fmd
struct FluidVertexVelocity * meshVelocities