CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Probe output produce merged numbers (https://www.cfd-online.com/Forums/openfoam-bugs/62402-probe-output-produce-merged-numbers.html)

olesen October 15, 2008 02:23

I think you should file it as
 
I think you should file it as a bug.
But IMO the solution would be to change Foam::probes::sampleAndWrite to just use spaces.
ie,

probeStream << vField.time().value();
forAll(values, probeI)
{
probeStream << ' ' << values[probeI];
}
probeStream << endnl;


This would give properly separated fields, without the hassles of an sprintf() format - eg, someone is silly and specifies "%s"

henry October 15, 2008 03:55

For now I have added a space t
 
For now I have added a space to the current column formatting to "protect" the numbers should they fill the field width allocated and will push this change into our git repository shortly.

We will also review the formatting options and consider more flexible specifications.

H

vishal October 15, 2008 15:14

Hi, What if i want to calcu
 
Hi,

What if i want to calculate Grad phi and grad P at wall for supersonic flow....
Do u know any utelities for that...

Thanks
Vishal

zeliboba October 15, 2008 15:51

on the other hand, sprintf() f
 
on the other hand, sprintf() format allow more flexibility: vectors can be written as
(0.0 0.1 0.2) # as it is now
or
(0.0, 0.1, 0.2) # might be preferable for postprocessing


All times are GMT -4. The time now is 12:58.