Skip to content
Snippets Groups Projects
Commit 935d7a81 authored by henry's avatar henry
Browse files

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
parent 6794ff5a
Branches
Tags
No related merge requests found
......@@ -231,14 +231,22 @@ bool Foam::probes::checkFieldTypes()
probeFilePtrs_.insert(fldName, sPtr);
*sPtr<< '#' << setw(IOstream::defaultPrecision() + 6)
<< "Time";
unsigned int w = IOstream::defaultPrecision() + 7;
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;
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment