41 if (nSamples >
fld.size())
44 <<
"Number of samples in sampling window is greater than the "
45 <<
"size of the input field" <<
nl
46 <<
" input field size = " <<
fld.size() <<
nl
48 <<
" requested window index = " << windowI
54 auto& result = tresult.ref();
60 <<
"Requested window " << windowI <<
" outside of range. "
61 <<
"Number of available windows is " <<
nWindow
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Generic templated field type.
SubField is a Field obtained as a section of another Field, without its own allocation....
virtual void apply()=0
Apply bins.
A class for managing temporary objects.
label nWindow() const
Return the number of windows.
label nWindowsTotal(label nSamplesTotal) const
Return the total number of windows for a given number of samples.
static autoPtr< windowModel > New(const dictionary &dict, const label nSamples)
Return a reference to the selected window model.
label nSamples() const
Return the number of samples in the window.
label nOverlapSamples_
Number of overlap samples per window.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManip< error > abort(error &err)
static constexpr const zero Zero
Global zero (0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)