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

Writing data to a file

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 3 Post By hk318i
  • 1 Post By hk318i

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 14, 2015, 02:11
Default Writing data to a file
  #1
kcn
Member
 
Join Date: May 2014
Posts: 31
Rep Power: 12
kcn is on a distinguished road
Hello,

I modified a solver to calculate a scalar coefficient which I need to compare with some experimental data.

This coefficient is not a scalar field, a simple scalar for each time value.

My problem is how shall I write this scalar to some text file along with time value? Some thing like:

(time scalar value)
(0 0 )
(0.1 0.125 )
(0.2 0.137 )

etc?

Or some alternative form is also fine. All I need to write is coefficient and time.

Can some one please help?
kcn is offline   Reply With Quote

 


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
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 08:46
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 07:31
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23


All times are GMT -4. The time now is 06:24.