mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: snappyHexMesh: update outfile location for surfaceSimplify
This commit is contained in:
@ -137,8 +137,11 @@ autoPtr<refinementSurfaces> createRefinementSurfaces
|
|||||||
const scalar surfaceCellSize =
|
const scalar surfaceCellSize =
|
||||||
readScalar(scsDict.lookup("surfaceCellSizeCoeff"));
|
readScalar(scsDict.lookup("surfaceCellSizeCoeff"));
|
||||||
|
|
||||||
globalMinLevel[surfI] = label(1.0/surfaceCellSize);
|
const label calculatedCellLevel =
|
||||||
globalMaxLevel[surfI] = label(1.0/surfaceCellSize);
|
round(::log(1.0/surfaceCellSize)/::log(2) + 1);
|
||||||
|
|
||||||
|
globalMinLevel[surfI] = calculatedCellLevel;
|
||||||
|
globalMaxLevel[surfI] = calculatedCellLevel;
|
||||||
globalLevelIncr[surfI] = shapeDict.lookupOrDefault
|
globalLevelIncr[surfI] = shapeDict.lookupOrDefault
|
||||||
(
|
(
|
||||||
"gapLevelIncrement",
|
"gapLevelIncrement",
|
||||||
@ -319,8 +322,14 @@ autoPtr<refinementSurfaces> createRefinementSurfaces
|
|||||||
scsDict.lookup("surfaceCellSizeCoeff")
|
scsDict.lookup("surfaceCellSizeCoeff")
|
||||||
);
|
);
|
||||||
|
|
||||||
globalMinLevel[surfI] = label(1.0/surfaceCellSize);
|
const label calculatedCellLevel =
|
||||||
globalMaxLevel[surfI] = label(1.0/surfaceCellSize);
|
round
|
||||||
|
(
|
||||||
|
::log(1.0/surfaceCellSize)/::log(2) + 1
|
||||||
|
);
|
||||||
|
|
||||||
|
globalMinLevel[surfI] = calculatedCellLevel;
|
||||||
|
globalMaxLevel[surfI] = calculatedCellLevel;
|
||||||
globalLevelIncr[surfI] =
|
globalLevelIncr[surfI] =
|
||||||
shapeControlRegionDict.lookupOrDefault
|
shapeControlRegionDict.lookupOrDefault
|
||||||
(
|
(
|
||||||
@ -1518,12 +1527,14 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fileName outFileName("simplifiedSurface.obj");
|
fileName outFileName
|
||||||
|
(
|
||||||
if (args.optionFound("outFile"))
|
args.optionLookupOrDefault<fileName>
|
||||||
{
|
(
|
||||||
outFileName = word(args.optionLookup("outFile")());
|
"outFile",
|
||||||
}
|
"constant/triSurface/simplifiedSurface.stl"
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
extractSurface
|
extractSurface
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user