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

Option to save selected variables in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By jaydeep

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 16, 2017, 14:39
Default Option to save selected variables in OpenFOAM
  #1
New Member
 
bangun
Join Date: Feb 2015
Posts: 16
Rep Power: 11
eb19 is on a distinguished road
Hi,

Is there a way to avoid automatic save for all computed variables in OpenFOAM? My OpenFOAM simulations produce many variable fields including u, p, alpha.water, k, nuSgs, etc.

Is there an option in the dictionary files so that only selected variables are saved? Doing a modification of the source code may be more challenging so if you know a possible option, i would be happy if you inform me.

Thanks
eb19
eb19 is offline   Reply With Quote

Old   November 16, 2017, 17:16
Default
  #2
Member
 
Jaydeep
Join Date: Jun 2015
Posts: 34
Rep Power: 11
jaydeep is on a distinguished road
Quote:
Originally Posted by eb19 View Post
Hi,

Is there a way to avoid automatic save for all computed variables in OpenFOAM? My OpenFOAM simulations produce many variable fields including u, p, alpha.water, k, nuSgs, etc.

Is there an option in the dictionary files so that only selected variables are saved? Doing a modification of the source code may be more challenging so if you know a possible option, i would be happy if you inform me.

Thanks
eb19
Actually, compiling your own solver is very easy. To answer your question, look at the source here: https://github.com/OpenFOAM/OpenFOAM...eFluidFields.H


You can see this block:
Code:
                IOobject::NO_READ,
                IOobject::AUTO_WRITE
Simply make NO_WRITE for the variables you don't want to write out.
ssyadav likes this.
jaydeep is offline   Reply With Quote

Reply

Tags
openfoam, save data, variables


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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
Simple piston movement in cylinder- fluid models arun1994 CFX 4 July 8, 2016 03:54
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 07:20
Error in Two phase (condensation) modeling adilsyyed CFX 15 June 24, 2015 20:42
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00


All times are GMT -4. The time now is 15:16.