|
| 1 | +--- |
| 2 | +title: Customizing the output of your Simulation |
| 3 | +permalink: /docs/custom_output |
| 4 | +--- |
| 5 | + |
| 6 | +With v7.0 we have introduced a new way of customizing the output on screen, in the history file and in the visualization files. |
| 7 | +It is now possible to individually define what you want to have in your output. |
| 8 | + |
| 9 | +Let's define some terminology first. |
| 10 | + |
| 11 | +- **Screen output** : The convergence history printed on the console. |
| 12 | +- **History output**: The convergence history written to a file. |
| 13 | +- **Volume output** : Everything written to the visualization and restart files. |
| 14 | +- **Output field**: A single scalar value for screen and history output or a vector of a scalar quantity at every node in the mesh for the volume output. |
| 15 | +- **Output group**: A collection of output fields. |
| 16 | + |
| 17 | +## Customizing the screen and history output |
| 18 | + |
| 19 | +### Screen output |
| 20 | +You can define the output fields you want to have on screen by using the config option `SCREEN_OUTPUT`. |
| 21 | +That fields available depend on the solver you are using. Fields available for **all solvers** are the following: |
| 22 | + |
| 23 | +- `TIME_ITER`: Time iteration index |
| 24 | +- `OUTER_ITER`: Outer (coupling) iteration index (for multi-zone problems only) |
| 25 | +- `INNER_ITER`: Inner iteration index (pseudo-time iteration) |
| 26 | +- `CUR_TIME`: Current physical time of your simulation |
| 27 | +- `TIME_STEP`: Current time step |
| 28 | +- `WALL_TIME`: Current average wall-clock time for one iteration |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +If you run a multizone problem, the convergence history of the individual zones (i.e. the convergence of the inner iteration) is disabled by default and only the convergence of the outer iteration is shown. That means `SCREEN_OUTPUT` in the sub-config files is ignored. You can still print fields from individual zones by using the field name and the zone index. For example in an Fluid-Structure interaction problem the drag in zone 0 and the von-Mises stress in zone 1 can be used as fields by adding `DRAG[0]` and/or `VMS[1]` to the screen output in the main config file. It is possible to force the output of the full inner convergence history per zone by setting `WRT_ZONE_CONV` to `YES`. |
| 33 | + |
| 34 | + |
| 35 | +### History output |
| 36 | + |
| 37 | +The history output can be customized in a similar fashion to the screen output by using the `HISTORY_OUTPUT` option. In fact, screen and history outputs share all fields which means that everything that can written to screen can be written also to the history file and vice versa. However, instead of specifying single output fields, for the history output it is **only possible** to specify output groups by using the group name. |
| 38 | + |
| 39 | +If you run a multizone problem, in addition to the history files per zone, a file (default: `history_multizone.dat`) will be created where the convergence history of the outer iteration is stored. Groups for this output can be by using the `HISTORY_OUTPUT` option in the main config file. |
| 40 | + |
| 41 | +### Example |
| 42 | + |
| 43 | +For the compressible Navier-Stokes solver (i.e. `PHYSICAL_PROBLEM=NAVIER_STOKES`), a **non-exhaustive list** of possible fields/groups is the following: |
| 44 | + |
| 45 | +| Field Name (for screen output) | Description | Group Name (for history output) | |
| 46 | +|---|---|---| |
| 47 | +| `TIME_ITER` | Time iteration index | `ITER` | |
| 48 | +| `OUTER_ITER` | Outer (coupling) iteration index. | `ITER` | |
| 49 | +| `INNER_ITER` | Inner iteration index (pseudo-time iteration). | `ITER` | |
| 50 | +| `CUR_TIME` | Current physical time of your simulation. | `TIME_DOMAIN` | |
| 51 | +| `TIME_STEP` | Current time step. | `TIME_DOMAIN` | |
| 52 | +| `WALL_TIME` | Current average wall-clock time for one iteration. | `WALL_TIME` | |
| 53 | +| `RMS_DENSITY` | Root-mean square residual of the density. | `RMS_RES` | |
| 54 | +| `RMS_MOMENTUM-X` | Root-mean square residual of the momentum x-component. | `RMS_RES` | |
| 55 | +| `RMS_MOMENTUM-Y` | Root-mean square residual of the momentum y-component. | `RMS_RES` | |
| 56 | +| `RMS_MOMENTUM-Z` | Root-mean square residual of the momentum z-component. | `RMS_RES` | |
| 57 | +| `RMS_ENERGY` | Root-mean square residual of the energy. | `RMS_RES` | |
| 58 | +| `DRAG` | Total Drag coefficient. | `AERO_COEFF` | |
| 59 | +| `LIFT` | Total Lift coefficient | `AERO_COEFF` | |
| 60 | +| `SIDEFORCE` | Total Sideforce coefficient. | `AERO_COEFF` | |
| 61 | +| `MOMENT-X` | Total Moment around the x-axis. | `AERO_COEFF` | |
| 62 | +| `MOMENT-Y` | Total Moment around the y-axis. | `AERO_COEFF` | |
| 63 | +| `MOMENT-Z` | Total Moment around the z-axis. | `AERO_COEFF` | |
| 64 | +| `FORCE-X` | Total Force in x direction. | `AERO_COEFF` | |
| 65 | +| `FORCE-Y` | Total Force in y direction. | `AERO_COEFF` | |
| 66 | +| `FORCE-Z` | Total Force in z direction.| `AERO_COEFF` | |
| 67 | +| `EFFICIENCY` | Total Lift-to-drag ratio. | `AERO_COEFF` | |
| 68 | + |
| 69 | +## Volume Output |
| 70 | + |
| 71 | +The `VOLUME_OUTPUT` option can be used to set fields for the restart and visualization files. Here you have the option to specify either single fields and/or groups. |
| 72 | + |
| 73 | +### Example |
| 74 | + |
| 75 | +For the compressible Navier-Stokes solver (i.e. `PHYSICAL_PROBLEM=NAVIER_STOKES`), a **non-exhaustive list** of possible fields/groups is the following: |
| 76 | + |
| 77 | +| Field Name | Description | Group Name | |
| 78 | +|---|---|---| |
| 79 | +| `COORD-X` | x coordinate | `COORDINATES` | |
| 80 | +| `COORD-Y` | y coordinate | `COORDINATES` | |
| 81 | +| `COORD-Z` | z coordinate | `COORDINATES` | |
| 82 | +| `DENSITY` | Density | `SOLUTION` | |
| 83 | +| `MOMENTUM-X` | Momentum x-component | `SOLUTION` | |
| 84 | +| `MOMENTUM-Y` | Momentum y-component | `SOLUTION` | |
| 85 | +| `MOMENTUM-Z` | Momentum z-component | `SOLUTION` | |
| 86 | +| `ENERGY` | Energy | `SOLUTION` | |
| 87 | +| `PRESSURE` | Pressure| `PRIMITIVE` | |
| 88 | +| `TEMPERATURE` | Temperature | `PRIMITIVE` | |
| 89 | +| `MACH` | Mach Number | `PRIMITIVE` | |
| 90 | +| `PRESSURE_COEFF` | Pressure Coefficient | `PRIMITIVE` | |
| 91 | +| `LAMINAR_VISCOSITY` | Laminar viscosity | `PRIMITIVE` | |
| 92 | +| `SKIN_FRICTION-X` | Skin friction coefficient x-component | `PRIMITIVE` | |
| 93 | +| `SKIN_FRICTION-Y` | Skin friction coefficient y-component | `PRIMITIVE` | |
| 94 | +| `SKIN_FRICTION-Z` | Skin friction coefficient z-component | `PRIMITIVE` | |
| 95 | +| `HEAT_FLUX` | Heat flux | `PRIMITIVE` | |
| 96 | +| `Y_PLUS` | Y-Plus | `PRIMITIVE` | |
0 commit comments