CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Probe output produce merged numbers

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 15, 2008, 03:23
Default I think you should file it as
  #1
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,679
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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"
olesen is offline   Reply With Quote

Old   October 15, 2008, 04:55
Default For now I have added a space t
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
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
henry is offline   Reply With Quote

Old   October 15, 2008, 16:14
Default Hi, What if i want to calcu
  #3
Member
 
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 17
vishal is on a distinguished road
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
__________________
Cheers,

Vishal Jambhekar...
"Simulate the way ahead......!!!"
vishal is offline   Reply With Quote

Old   October 15, 2008, 16:51
Default on the other hand, sprintf() f
  #4
Member
 
Maxim Loginov
Join Date: Mar 2009
Posts: 33
Rep Power: 17
zeliboba is on a distinguished road
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
zeliboba is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use gnuplot to produce residual plots in run time? chenzhi Main CFD Forum 2 September 8, 2008 21:58
grid check failed due to the merged zones biksham FLUENT 0 February 20, 2008 23:31
gambit: how to produce hanging notes Ralf Schmidt FLUENT 4 July 15, 2007 17:52
mesh generator, that can produce hanging notes? Ralf Schmidt Main CFD Forum 2 July 14, 2007 02:57
How to produce the geometry file for Es-ice lizhihua Siemens 0 December 4, 2006 07:49


All times are GMT -4. The time now is 10:50.