mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
MRG: Integrated Foundation code to commit 47bd8e1
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -874,6 +874,12 @@ int main(int argc, char *argv[])
|
||||
"factor",
|
||||
"geometry scaling factor - default is 1"
|
||||
);
|
||||
argList::addOption
|
||||
(
|
||||
"2D",
|
||||
"thickness",
|
||||
"use when converting a 2-D mesh (applied before scale)"
|
||||
);
|
||||
argList::addBoolOption
|
||||
(
|
||||
"writeSets",
|
||||
@ -960,22 +966,26 @@ int main(int argc, char *argv[])
|
||||
// Construct shapes from face lists
|
||||
cellShapeList cellShapes(nCells);
|
||||
|
||||
// Extrude 2-D mesh into 3-D
|
||||
|
||||
Info<< "dimension of grid: " << dimensionOfGrid << endl;
|
||||
faceList frontAndBackFaces;
|
||||
|
||||
if (dimensionOfGrid == 2)
|
||||
{
|
||||
const scalar extrusionFactor = 0.01;
|
||||
// Extrude 2-D mesh into 3-D, in z-direction
|
||||
|
||||
boundBox box(max(points), min(points));
|
||||
scalar twoDThickness = 1.0;
|
||||
|
||||
const scalar zOffset = extrusionFactor*box.mag();
|
||||
if (!args.optionReadIfPresent("2D", twoDThickness))
|
||||
{
|
||||
const scalar extrusionFactor = 0.02; //0.01 in each direction
|
||||
boundBox box(points);
|
||||
twoDThickness = extrusionFactor*box.mag();
|
||||
}
|
||||
|
||||
// two-dimensional grid. Extrude in z-direction
|
||||
Info<< "Grid is 2-D. Extruding in z-direction by: "
|
||||
<< 2*zOffset << endl;
|
||||
Info<< "Grid is 2-D. Extruding in z-direction by: " << twoDThickness
|
||||
<< endl;
|
||||
|
||||
const scalar zOffset = twoDThickness / 2;
|
||||
|
||||
pointField oldPoints = points;
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -81,7 +81,7 @@ int main(int argc, char *argv[])
|
||||
(
|
||||
"2D",
|
||||
"thickness",
|
||||
"use when converting a 2-D geometry"
|
||||
"use when converting a 2-D mesh (applied before scale)"
|
||||
);
|
||||
|
||||
argList args(argc, argv);
|
||||
|
||||
@ -29,7 +29,7 @@ EXE_LIBS = \
|
||||
-lfiniteVolume \
|
||||
-lmeshTools \
|
||||
-ldecompositionMethods \
|
||||
-L$(FOAM_LIBBIN)/dummy -lptscotchDecomp \
|
||||
-L$(FOAM_LIBBIN)/dummy -lscotchDecomp -lptscotchDecomp \
|
||||
-ledgeMesh \
|
||||
-ltriSurface \
|
||||
-ldynamicMesh \
|
||||
|
||||
@ -35,6 +35,6 @@ EXE_LIBS = \
|
||||
-ltriSurface \
|
||||
-ldynamicMesh \
|
||||
-ldecompositionMethods \
|
||||
-L$(FOAM_LIBBIN)/dummy -lptscotchDecomp \
|
||||
-L$(FOAM_LIBBIN)/dummy -lscotchDecomp -lptscotchDecomp \
|
||||
-lsampling \
|
||||
-lfileFormats
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||
\\/ M anipulation | Copyright (C) 2015-2016 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -710,7 +710,7 @@ int main(int argc, char *argv[])
|
||||
Foam::argList::addOption
|
||||
(
|
||||
"outFile",
|
||||
"fileName",
|
||||
"file",
|
||||
"name of the file to save the simplified surface to"
|
||||
);
|
||||
#include "addProfilingOption.H"
|
||||
|
||||
@ -17,4 +17,5 @@ EXE_LIBS = \
|
||||
-lrenumberMethods \
|
||||
-lreconstruct \
|
||||
$(LINK_FLAGS) \
|
||||
-ldecompositionMethods -L$(FOAM_LIBBIN)/dummy -lmetisDecomp -lscotchDecomp
|
||||
-ldecompositionMethods \
|
||||
-L$(FOAM_LIBBIN)/dummy -lmetisDecomp -lscotchDecomp
|
||||
|
||||
Reference in New Issue
Block a user