mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Changed format to be spreadsheet-friendly:
# x 0.05 0.03
# y 0.05 0.04
# z 0.001 0.001
# Time
0.005 0.130842 7.7749e-05
0.01 0.0554095 -0.0100031
0.015 0.0388121 -0.0115969
This commit is contained in:
@ -231,14 +231,22 @@ bool Foam::probes::checkFieldTypes()
|
|||||||
|
|
||||||
probeFilePtrs_.insert(fldName, sPtr);
|
probeFilePtrs_.insert(fldName, sPtr);
|
||||||
|
|
||||||
*sPtr<< '#' << setw(IOstream::defaultPrecision() + 6)
|
unsigned int w = IOstream::defaultPrecision() + 7;
|
||||||
<< "Time";
|
|
||||||
|
|
||||||
forAll(probeLocations_, probeI)
|
for (direction cmpt=0; cmpt<vector::nComponents; cmpt++)
|
||||||
{
|
{
|
||||||
*sPtr << token::SPACE << probeLocations_[probeI];
|
*sPtr<< '#' << setw(IOstream::defaultPrecision() + 6)
|
||||||
|
<< vector::componentNames[cmpt];
|
||||||
|
|
||||||
|
forAll(probeLocations_, probeI)
|
||||||
|
{
|
||||||
|
*sPtr<< setw(w) << probeLocations_[probeI][cmpt];
|
||||||
|
}
|
||||||
|
*sPtr << endl;
|
||||||
}
|
}
|
||||||
*sPtr << endl;
|
|
||||||
|
*sPtr<< '#' << setw(IOstream::defaultPrecision() + 6)
|
||||||
|
<< "Time" << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user