Blender V5.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
8
9#pragma once
10
11#include "BLI_enum_flags.hh"
12#include "DNA_defs.h"
13
14namespace blender {
15
28
29
36
38 float vel[3] = {};
39};
40
43 struct FluidsimModifierData *fmd = nullptr;
44 /* threadcount the calculation is done with */
45 int threads = 0;
46 char _pad1[4] = {};
47 /* domain, fluid or obstacle */
49 /* Display advanced options in fluid sim tab (on=1, off=0). */
51
52 /* domain object settings */
53 /* resolutions */
54 short resolutionxyz = 0;
55 short previewresxyz = 0;
56 /* size of the domain in real units (meters along largest resolution x, y, z extent) */
57 float realsize = 0;
58 /* show original meshes, preview or final sim */
59 short guiDisplayMode = 0;
61
62 /* fluid properties */
63 float viscosityValue = 0;
66 /* gravity strength */
67 float grav[3] = {};
68 /* anim start end time (in seconds) */
69 float animStart = 0, animEnd = 0;
70 /* bake start end time (in blender frames) */
71 int bakeStart = 0, bakeEnd = 0;
72 /* offset for baked frames */
73 int frameOffset = 0;
74 char _pad2[4] = {};
75 /* g star param (LBM compressibility) */
76 float gstar = 0;
77 /* activate refinement? */
78 int maxRefine = 0;
79
80 /* fluid object type settings */
81 /* gravity strength */
82 float iniVelx = 0, iniVely = 0, iniVelz = 0;
83
87 char surfdataPath[/*FILE_MAX*/ 1024] = "";
88
89 /* store start coords of axis aligned bounding box together with size */
90 /* values are initialized during derived mesh display. */
91 float bbStart[3] = {}, bbSize[3] = {};
92
93 /* additional flags depending on the type, lower short contains flags
94 * to check validity, higher short additional flags */
95 short typeFlags = 0;
101
102 /* boundary "stickiness" for part slip values */
103 float partSlipValue = 0;
104
105 /* number of tracers to generate */
107 /* particle generation - on if >0, then determines amount (experimental...) */
109 /* smooth fluid surface? */
115
118 /* testing vars */
119 float farFieldSize = 0;
120
124 int totvert = 0;
125
126 /* Fluid control settings */
127 float cpsTimeStart = 0;
128 float cpsTimeEnd = 0;
129 float cpsQuality = 0;
130
135
137
139 float animRate = 0;
140};
141
142} // namespace blender
#define ENUM_OPERATORS(_enum_type)
#define DNA_DEPRECATED
Definition DNA_defs.h:21
BMesh Iterators.
struct FluidVertexVelocity * meshVelocities
struct FluidsimModifierData * fmd