snappyHexMeshConfig: added '-noBackground' option to prevent writing of a blockMeshDict file
This commit is contained in:
@ -107,6 +107,9 @@ Usage
|
|||||||
- \par -cylindricalBackground
|
- \par -cylindricalBackground
|
||||||
Generate a cylindrical background mesh aligned with the z-axis
|
Generate a cylindrical background mesh aligned with the z-axis
|
||||||
|
|
||||||
|
- \par -noBackground
|
||||||
|
Do not write a blockMeshDict file
|
||||||
|
|
||||||
- \par -refineBackground \<int\>
|
- \par -refineBackground \<int\>
|
||||||
Integer multiplier for the number of cells (>= 1)
|
Integer multiplier for the number of cells (>= 1)
|
||||||
|
|
||||||
@ -245,6 +248,12 @@ int main(int argc, char *argv[])
|
|||||||
"generate a cylindrical background mesh aligned with the z-axis"
|
"generate a cylindrical background mesh aligned with the z-axis"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
argList::addBoolOption
|
||||||
|
(
|
||||||
|
"noBackground",
|
||||||
|
"do not write a blockMeshDict file"
|
||||||
|
);
|
||||||
|
|
||||||
argList::addOption
|
argList::addOption
|
||||||
(
|
(
|
||||||
"refineBackground",
|
"refineBackground",
|
||||||
@ -513,6 +522,8 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
const bool clearBoundary(args.optionFound("clearBoundary"));
|
const bool clearBoundary(args.optionFound("clearBoundary"));
|
||||||
|
|
||||||
|
if (!args.optionFound("noBackground"))
|
||||||
|
{
|
||||||
if (args.optionFound("cylindricalBackground"))
|
if (args.optionFound("cylindricalBackground"))
|
||||||
{
|
{
|
||||||
blockMeshCylindricalConfiguration blockMeshConfig
|
blockMeshCylindricalConfiguration blockMeshConfig
|
||||||
@ -547,6 +558,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
blockMeshConfig.write();
|
blockMeshConfig.write();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// snappyHexMeshDict options
|
// snappyHexMeshDict options
|
||||||
const label refinementLevel
|
const label refinementLevel
|
||||||
|
|||||||
Reference in New Issue
Block a user