Blender V4.5
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
14struct Ipo;
15
19
20typedef struct FluidsimSettings {
23 /* threadcont the calculation is done with */
25 char _pad1[4];
26 /* domain, fluid or obstacle */
27 short type;
28 /* Display advanced options in fluid sim tab (on=1, off=0). */
30
31 /* domain object settings */
32 /* resolutions */
35 /* size of the domain in real units (meters along largest resolution x, y, z extent) */
36 float realsize;
37 /* show original meshes, preview or final sim */
40
41 /* fluid properties */
43 short viscosityMode DNA_DEPRECATED;
45 /* gravity strength */
46 float grav[3];
47 /* anim start end time (in seconds) */
49 /* bake start end time (in blender frames) */
51 /* offset for baked frames */
53 char _pad2[4];
54 /* g star param (LBM compressibility) */
55 float gstar;
56 /* activate refinement? */
58
59 /* fluid object type settings */
60 /* gravity strength */
62
66 char surfdataPath[/*FILE_MAX*/ 1024];
67
68 /* store start coords of axis aligned bounding box together with size */
69 /* values are initialized during derived mesh display. */
70 float bbStart[3], bbSize[3];
71
73 struct Ipo *ipo;
74
75 /* additional flags depending on the type, lower short contains flags
76 * to check validity, higher short additional flags */
77 short typeFlags;
83
84 /* boundary "stickiness" for part slip values */
86
87 /* number of tracers to generate */
89 /* particle generation - on if >0, then determines amount (experimental...) */
91 /* smooth fluid surface? */
96 int flag;
97
100 /* testing vars */
102
107
108 /* Fluid control settings */
112
117
119
121 float animRate;
123
125enum {
134};
135
137enum {
141};
ID and Library types, which are fundamental for SDNA.
@ OB_FLUIDSIM_OVERRIDE_TIME
short viscosityMode DNA_DEPRECATED
struct FluidsimModifierData * fmd
struct FluidVertexVelocity * meshVelocities