foamDictionary: Updated examples to 'slash' syntax which is the new default

This commit is contained in:
Henry Weller
2020-11-17 14:14:42 +00:00
parent 8a62a84b68
commit 93a0dd2f99

View File

@ -86,30 +86,30 @@ Usage
- Change solver: - Change solver:
\verbatim \verbatim
foamDictionary system/fvSolution -entry solvers.p.solver -set PCG foamDictionary system/fvSolution -entry solvers/p/solver -set PCG
\endverbatim \endverbatim
- Print bc type: - Print bc type:
\verbatim \verbatim
foamDictionary 0/U -entry boundaryField.movingWall.type foamDictionary 0/U -entry boundaryField/movingWall/type
\endverbatim \endverbatim
- Change bc parameter: - Change bc parameter:
\verbatim \verbatim
foamDictionary 0/U -entry boundaryField.movingWall.value \ foamDictionary 0/U -entry boundaryField/movingWall/value \
-set "uniform (2 0 0)" -set "uniform (2 0 0)"
\endverbatim \endverbatim
- Change bc parameter in parallel: - Change bc parameter in parallel:
\verbatim \verbatim
mpirun -np 4 foamDictionary 0.5/U \ mpirun -np 4 foamDictionary 0.5/U \
-entry boundaryField.movingWall.value \ -entry boundaryField/movingWall/value \
-set "uniform (2 0 0)" -parallel -set "uniform (2 0 0)" -parallel
\endverbatim \endverbatim
- Change whole bc type: - Change whole bc type:
\verbatim \verbatim
foamDictionary 0/U -entry boundaryField.movingWall \ foamDictionary 0/U -entry boundaryField/movingWall \
-set "{type uniformFixedValue; uniformValue (2 0 0);}" -set "{type uniformFixedValue; uniformValue (2 0 0);}"
\endverbatim \endverbatim
@ -128,7 +128,7 @@ Usage
- Change patch type: - Change patch type:
\verbatim \verbatim
foamDictionary constant/polyMesh/boundary \ foamDictionary constant/polyMesh/boundary \
-entry entry0.fixedWalls.type -set patch -entry entry0/fixedWalls/type -set patch
\endverbatim \endverbatim
This uses special parsing of Lists which stores these in the This uses special parsing of Lists which stores these in the
dictionary with keyword 'entryDDD' where DDD is the position dictionary with keyword 'entryDDD' where DDD is the position