Authoritative settings for a shallow-water heightfield. 更多...
#include <ShallowWaterField.h>
Public 属性 | |
| int | resolutionX = 64 |
| Grid resolution along world X, in [8, 512]. | |
| int | resolutionZ = 64 |
| Grid resolution along world Z, in [8, 512]. | |
| float | cellSize = 0.25f |
| Cell edge length in meters, in (0, 10]. | |
| glm::vec3 | origin {0.f} |
| World-space origin of cell (0,0) corner (Y is bed baseline). | |
| float | gravity = 9.81f |
| Gravity magnitude used by Saint-Venant fluxes. | |
| float | viscosity = 0.08f |
| Artificial viscosity for Lax-Friedrichs stability, in [0, 1]. | |
| float | friction = 0.12f |
| Linear momentum friction per second, in [0, 8]. | |
| float | minDepth = 1e-4f |
| Depth treated as dry. | |
| float | maxDepth = 2.5f |
| Hard clamp on water column height. | |
| float | cfl = 0.45f |
| Courant number used to pick substeps. | |
| int | maxSubsteps = 8 |
Upper bound on substeps per step call. | |
| bool | preferGpu = true |
| Prefer the gpgpu path when a device is available. | |
| float | initialDepth = 0.55f |
| Initial water depth filled on create. | |
| float | bedHeight = 0.f |
| Flat bed height filled on create. | |
详细描述
Authoritative settings for a shallow-water heightfield.
在文件 ShallowWaterField.h 第 58 行定义.
类成员变量说明
◆ bedHeight
Flat bed height filled on create.
在文件 ShallowWaterField.h 第 86 行定义.
◆ cellSize
Cell edge length in meters, in (0, 10].
在文件 ShallowWaterField.h 第 64 行定义.
◆ cfl
Courant number used to pick substeps.
在文件 ShallowWaterField.h 第 78 行定义.
◆ friction
Linear momentum friction per second, in [0, 8].
在文件 ShallowWaterField.h 第 72 行定义.
◆ gravity
Gravity magnitude used by Saint-Venant fluxes.
在文件 ShallowWaterField.h 第 68 行定义.
◆ initialDepth
Initial water depth filled on create.
在文件 ShallowWaterField.h 第 84 行定义.
◆ maxDepth
Hard clamp on water column height.
在文件 ShallowWaterField.h 第 76 行定义.
◆ maxSubsteps
| int eve::fluids::ShallowWaterSettings::maxSubsteps = 8 |
Upper bound on substeps per step call.
在文件 ShallowWaterField.h 第 80 行定义.
◆ minDepth
Depth treated as dry.
在文件 ShallowWaterField.h 第 74 行定义.
◆ origin
| glm::vec3 eve::fluids::ShallowWaterSettings::origin {0.f} |
World-space origin of cell (0,0) corner (Y is bed baseline).
在文件 ShallowWaterField.h 第 66 行定义.
◆ preferGpu
Prefer the gpgpu path when a device is available.
在文件 ShallowWaterField.h 第 82 行定义.
◆ resolutionX
| int eve::fluids::ShallowWaterSettings::resolutionX = 64 |
Grid resolution along world X, in [8, 512].
在文件 ShallowWaterField.h 第 60 行定义.
被这些函数引用 eve::fluids::Fluids::newShallowWater() , 以及 eve::fluids::ShallowWaterField::settings().
◆ resolutionZ
| int eve::fluids::ShallowWaterSettings::resolutionZ = 64 |
Grid resolution along world Z, in [8, 512].
在文件 ShallowWaterField.h 第 62 行定义.
◆ viscosity
Artificial viscosity for Lax-Friedrichs stability, in [0, 1].
在文件 ShallowWaterField.h 第 70 行定义.
该结构体的文档由以下文件生成:
- src/modules/fluids/ShallowWaterField.h