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

How to save a time-dependent scalar variable ?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Yann

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 5, 2015, 09:35
Default How to save a time-dependent scalar variable ?
  #1
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,086
Rep Power: 26
Yann will become famous soon enough
Hello Foamers,

I'm currently working on a custom solver and there is something I can't figure out.

The solver calculates and uses a scalar variable (a rotational speed). It works fine but since this variable isn't written anywhere, I can't stop a case and restart it later.

My first idea was to use an IOobject to write this variable with the other data in each time directory but I can't figure how. Since it's only a single scalar I have to use a IOdictionary but I'm unable to write data in it.

So dear experienced users, how would you deal with this ?
Any suggestions are welcome.

Thanks,
Yann
Kummi likes this.
Yann 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
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 14 December 16, 2019 23:12
AMI interDyMFoam for mixer nu problem danny123 OpenFOAM Programming & Development 8 September 6, 2013 02:34
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 07:47
emag beta feature: charge density charlotte CFX 4 March 22, 2011 09:14


All times are GMT -4. The time now is 13:07.