- this refines commit c233961d45
, which added prefix scoping.
Default is now off (v2106 behaviour).
The 'useNamePrefix' keyword can be specified on a per function basis
or at the top-level of "functions".
```
functions
{
errors warn;
useNamePrefix true;
func1
{
type ...;
useNamePrefix false;
}
func2
{
type ...;
// Uses current default for useNamePrefix
}
}
```
35 lines
630 B
C++
35 lines
630 B
C++
// -*- C++ -*-
|
|
// Calculate momentum fields
|
|
momentum
|
|
{
|
|
type momentum;
|
|
libs (fieldFunctionObjects);
|
|
log true;
|
|
useNamePrefix true;
|
|
|
|
writeControl writeTime;
|
|
// executeInterval 10;
|
|
|
|
// writeToFile true;
|
|
|
|
writeMomentum true;
|
|
writePosition true;
|
|
writeVelocity true;
|
|
|
|
// Cells to select (all/cellSet/cellZone)
|
|
regionType all;
|
|
// name c0;
|
|
|
|
cylindrical false;
|
|
|
|
origin (0 0 0);
|
|
rotation
|
|
{
|
|
type cylindrical;
|
|
axis (1 0 0); //< local Z
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|