- 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
}
}
```
47 lines
1.4 KiB
C++
47 lines
1.4 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: v2112 |
|
|
| \\ / A nd | Website: www.openfoam.com |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
momentum1
|
|
{
|
|
// Mandatory entries
|
|
type momentum;
|
|
libs (fieldFunctionObjects);
|
|
|
|
// Optional entries
|
|
regionType all;
|
|
writeMomentum yes;
|
|
writePosition yes;
|
|
writeVelocity yes;
|
|
p p;
|
|
U U;
|
|
rho rho;
|
|
rhoRef 1.0;
|
|
cylindrical false;
|
|
|
|
// Optional (inherited) entries
|
|
writePrecision 10;
|
|
writeToFile true;
|
|
useUserTime true;
|
|
|
|
region region0;
|
|
enabled true;
|
|
log true;
|
|
timeStart 0;
|
|
timeEnd 1000;
|
|
|
|
executeControl timeStep;
|
|
executeInterval 1;
|
|
writeControl writeTime;
|
|
writeInterval -1;
|
|
|
|
useNamePrefix true;
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|