mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: sampledSet, sampledSurface : remove default value for interpolation scheme and writer
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.6 |
|
||||
| \\ / O peration | Version: 1.7.1 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -95,18 +95,9 @@ sets
|
||||
type face;
|
||||
axis x;
|
||||
|
||||
//- flangeHex
|
||||
//start (0 20 -20);
|
||||
//end (0 20 10);
|
||||
|
||||
//- nablaCavity
|
||||
//start (-1 0.05 0.005);
|
||||
//end ( 1 0.05 0.005);
|
||||
|
||||
//- cavity
|
||||
start (0.001 0.5101 0.00501);
|
||||
end (2.01 0.5101 0.00501);
|
||||
nPoints 10;
|
||||
start (0.0001 0.0525 0.00501);
|
||||
end (0.0999 0.0525 0.00501);
|
||||
}
|
||||
|
||||
somePoints
|
||||
|
||||
@ -234,17 +234,8 @@ void Foam::sampledSets::read(const dictionary& dict)
|
||||
dict_.lookup("fields") >> fieldSelection_;
|
||||
clearFieldGroups();
|
||||
|
||||
interpolationScheme_ = dict.lookupOrDefault<word>
|
||||
(
|
||||
"interpolationScheme",
|
||||
"cell"
|
||||
);
|
||||
writeFormat_ = dict.lookupOrDefault<word>
|
||||
(
|
||||
"setFormat",
|
||||
"null"
|
||||
);
|
||||
|
||||
dict.lookup("interpolationScheme") >> interpolationScheme_;
|
||||
dict.lookup("setFormat") >> writeFormat_;
|
||||
|
||||
PtrList<sampledSet> newList
|
||||
(
|
||||
|
||||
@ -220,17 +220,8 @@ void Foam::sampledSurfaces::read(const dictionary& dict)
|
||||
dict.lookup("fields") >> fieldSelection_;
|
||||
clearFieldGroups();
|
||||
|
||||
interpolationScheme_ = dict.lookupOrDefault<word>
|
||||
(
|
||||
"interpolationScheme",
|
||||
"cell"
|
||||
);
|
||||
writeFormat_ = dict.lookupOrDefault<word>
|
||||
(
|
||||
"surfaceFormat",
|
||||
"null"
|
||||
);
|
||||
|
||||
dict.lookup("interpolationScheme") >> interpolationScheme_;
|
||||
dict.lookup("surfaceFormat") >> writeFormat_;
|
||||
|
||||
// define the generic (geometry) writer
|
||||
genericFormatter_ = surfaceWriter<bool>::New(writeFormat_);
|
||||
|
||||
Reference in New Issue
Block a user