mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
add region option
This commit is contained in:
@ -97,10 +97,11 @@ using namespace Foam;
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
timeSelector::addOptions();
|
timeSelector::addOptions();
|
||||||
|
# include "addRegionOption.H"
|
||||||
# include "setRootCase.H"
|
# include "setRootCase.H"
|
||||||
# include "createTime.H"
|
# include "createTime.H"
|
||||||
instantList timeDirs = timeSelector::select0(runTime, args);
|
instantList timeDirs = timeSelector::select0(runTime, args);
|
||||||
# include "createMesh.H"
|
# include "createNamedMesh.H"
|
||||||
|
|
||||||
IOsampledSets sSets
|
IOsampledSets sSets
|
||||||
(
|
(
|
||||||
|
|||||||
@ -105,6 +105,14 @@ sets
|
|||||||
end (2 0.51 0.005);
|
end (2 0.51 0.005);
|
||||||
nPoints 10;
|
nPoints 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
somePoints
|
||||||
|
{
|
||||||
|
type cloud;
|
||||||
|
axis xyz;
|
||||||
|
points ((0.049 0.049 0.005)(0.051 0.049 0.005));
|
||||||
|
}
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -236,8 +236,6 @@ Foam::sampledSets::sampledSets
|
|||||||
loadFromFiles_(loadFromFiles),
|
loadFromFiles_(loadFromFiles),
|
||||||
outputPath_(fileName::null),
|
outputPath_(fileName::null),
|
||||||
searchEngine_(mesh_, true),
|
searchEngine_(mesh_, true),
|
||||||
// pMeshPtr_(NULL),
|
|
||||||
// pInterpPtr_(NULL),
|
|
||||||
fieldNames_(),
|
fieldNames_(),
|
||||||
interpolationScheme_(word::null),
|
interpolationScheme_(word::null),
|
||||||
writeFormat_(word::null)
|
writeFormat_(word::null)
|
||||||
@ -250,6 +248,10 @@ Foam::sampledSets::sampledSets
|
|||||||
{
|
{
|
||||||
outputPath_ = mesh_.time().path()/name_;
|
outputPath_ = mesh_.time().path()/name_;
|
||||||
}
|
}
|
||||||
|
if (mesh_.name() != fvMesh::defaultRegion)
|
||||||
|
{
|
||||||
|
outputPath_ = outputPath_/mesh_.name();
|
||||||
|
}
|
||||||
|
|
||||||
read(dict);
|
read(dict);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user