Blender V4.3
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
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
63 /* store output path, and file prefix for baked fluid surface */
64 /* strlens; 256= FILE_MAXFILE, 768= FILE_MAXDIR */
65 char surfdataPath[1024];
66
67 /* store start coords of axis aligned bounding box together with size */
68 /* values are initialized during derived mesh display. */
69 float bbStart[3], bbSize[3];
70
71 /* animated params */
72 struct Ipo *ipo;
73
74 /* additional flags depending on the type, lower short contains flags
75 * to check validity, higher short additional flags */
76 short typeFlags;
82
83 /* boundary "stickiness" for part slip values */
85
86 /* number of tracers to generate */
88 /* particle generation - on if >0, then determines amount (experimental...) */
90 /* smooth fluid surface? */
95 int flag;
96
99 /* testing vars */
101
106
107 /* Fluid control settings */
111
116
118
120 float animRate;
122
124enum {
133};
134
136enum {
140};
ID and Library types, which are fundamental for SDNA.
struct FluidsimSettings FluidsimSettings
@ OB_FLUIDSIM_OVERRIDE_TIME
struct FluidVertexVelocity FluidVertexVelocity
short viscosityMode DNA_DEPRECATED
struct FluidsimModifierData * fmd
struct FluidVertexVelocity * meshVelocities