A Chrono YAML TDPF simulation file defines the setup for a Chrono::FSI-TDPF simulation. It consists of the following main objects:
- [required] The Chrono version (
chrono-version) that is compatible with the YAML model specification. This is a string of the formM.m(major.minor) orM.m.p(major-minor-patch), although only the two fields are verified for compatibility. - [required] The simulation
type, which must beTDPFhere. - [required] The
modelentry which names the YAML specification of the TDPF problem. - [required] The
solverentry which names the YAML specification of the TDPF solver settings. - [optional] The
simulationobject which specifies settings for the fluid phase. - [optional] The
outputobject which specifies output options from the TDPF simulation. - [optional] The
visualizationobject which specifies TDPF-specific run-time visualization settings.
FSI-TDPF simulation specification
An FSI-TDPF simulation must specify the TDPF model to be simulated, as well as optional output and TDPF-specific run-time visualization settings.
Model and solver specification
The model entry (required) must specify the path (relative to the location of this YAML simulation specification file) to the YAML file with a TDPF model specification (which must follow the TDPF model schema).
The solver entry (required) must specify the path (relative to the location of this YAML simulation specification file) to the YAML file with a TDPF solver specification (which must follow the TDPF solver schema).
Simulation options
If the simulation key is present, it must specify a YAML object with the following properties:
| Property | Description | Type | Available Values | Required | Default |
|---|---|---|---|---|---|
gravity | Gravitational acceleration vector [x, y, z] | array[3] | – | No | [0, 0, -9.8] |
Note that in a coupled FSI simulation the gravitational acceleration given in the FSI simulation file governs both phases and overrides this value, exactly as it does for Chrono::FSI-SPH. This setting therefore takes effect when the TDPF fluid system is driven on its own, as it is through the Chrono preCICE adapter, where the two phases run as separate processes and nothing reconciles their gravity for you.
Output options
If the output key is present, it must specify a YAML object with the following properties:
| Property | Description | Type | Available Values | Required | Default |
|---|---|---|---|---|---|
format | Output DB format | enum | NONE,ASCII,HDF5 | Yes | – |
mode | Output mode (one file per output frame, or a single time-series file) | enum | FRAMES,SERIES | No | FRAMES |
fps | Output frequency (FPS or Hz) | double | – | No | 100 |
Note that format is required whenever the output key is present. HDF5 output silently falls back to NONE in a build without HDF5 support.
Visualization options
If the visualization key is present, run-time visualization of the water surface is enabled. The following TDPF-specific properties can be set:
| Property | Description | Type | Available Values | Required | Default |
|---|---|---|---|---|---|
update_fps | Frequency (FPS or Hz) at which the wave mesh is updated | double | – | No | 30 |
color_map | Colormap-based coloring of the wave mesh | object | – | No | no coloring |
The color_map key, if present, specifies the following properties:
| Property | Description | Type | Available Values | Required | Default |
|---|---|---|---|---|---|
type | Wave mesh quantity used for coloring | enum | NONE,HEIGHT,VELOCITY | Yes | – |
map | Colormap | enum | BLACK_BODY,BLUE,BROWN,COPPER,FAST,INFERNO,JET,KINDLMANN,PLASMA,RED_BLUE | No | FAST |
min | Lower end of the color data range | double | – | No | -1 |
max | Upper end of the color data range | double | – | No | 1 |
Settings common to all Chrono run-time visualization (render_fps, camera, and output, documented with the MBS simulation schema) are read from this same visualization object. In a coupled FSI simulation they are overridden by the corresponding settings in the FSI simulation file, so there is no reason to duplicate them here. They do take effect when this file is the top-level specification, as it is for a Chrono preCICE participant; in that case a camera entry is effectively required, since the default places the eye in the z=0 plane.
Example
Below is an example of an FSI-TDPF simulation configuration:
YAML schema
The YAML TDPF simulation specification file must follow the data/yaml/schema/fsitdpf_simulation.schema.yaml provided in the Chrono data directory: