Skip to content

Commit 1755591

Browse files
authored
Merge pull request #123 from su2code/document_probes
document point probes
2 parents ae10945 + 0c1a8f1 commit 1755591

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

_docs_v7/Custom-Output.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ The available types are:
218218
- `Function`: Introduces a new scalar output that is a function of other scalar outputs, it cannot reference fields (e.g. velocity).
219219
- `AreaAvg` and `AreaInt`: Computes an area average or integral of a field (the expression) over the list of markers.
220220
- `MassFlowAvg` and `MassFlowInt`: Computes a mass flow average or integral.
221+
- `Probe`: Evaluates the expression using the values of the mesh point closest to the coordinates specified inside "[]", [x, y] or [x, y, z] (2 or 3D).
221222

222223
**Note:** Each custom output can only use one type, e.g. it is not possible to write `p_drop : AreaAvg{PRESSURE}[inlet] - AreaAvg{PRESSURE}[outlet]`. This would need to be separated into two `AreaAvg` outputs and one `Function` to compute their difference.
223224

@@ -226,7 +227,8 @@ The available types are:
226227
CUSTOM_OUTPUTS= 'velocity : Macro{sqrt(pow(VELOCITY_X, 2) + pow(VELOCITY_Y, 2) + pow(VELOCITY_Z, 2))};\
227228
avg_vel : AreaAvg{$velocity}[z_minus, z_plus];\
228229
var_vel : AreaAvg{pow($velocity - avg_vel, 2)}[z_minus, z_plus];\
229-
dev_vel : Function{sqrt(var_vel) / avg_vel}'
230+
dev_vel : Function{sqrt(var_vel) / avg_vel};\
231+
probe1 : Probe{$velocity}[0.005, 0.005, 0.05]'
230232
```
231233

232234
To obtain the list of solver variables that can be used, write an invalid expression (e.g. 'x : AreaAvg{INVALID}[]') and run SU2.

0 commit comments

Comments
 (0)