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

how to sample / output only certain fields openfoam

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

Like Tree1Likes
  • 1 Post By clapointe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 18, 2018, 14:18
Default how to sample / output only certain fields openfoam
  #1
New Member
 
MASc Student
Join Date: Sep 2016
Posts: 25
Rep Power: 9
New-to-CFD is on a distinguished road
Hello all,

Is there a way to only save certain field results during a simulation?

I.e. I would only like to save P and U, and would not like to save the rest of the default parameters. It is taking too much space and I don't even need them.

Is there a way to change controlDict or any other file that would allow this?

I've seen writeRegisteredObject but not quite sure how to use it..anyone?

Thanks!
New-to-CFD is offline   Reply With Quote

Old   August 20, 2018, 18:22
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
To write only a few fields, use this in the solver instead of runTime.write() and recompile :

Code:
if (runTime.write())
{
U.write();
p.write();
}
Caelan
BlnPhoenix likes this.
clapointe is offline   Reply With Quote

Reply

Tags
controldict, openfoam, output fields, results, writeregisteredobject

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
calculate and sample wallGradU & wallShearStress every output time ArathoN OpenFOAM Post-Processing 8 July 11, 2018 13:14
OpenFOAM 5.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 11 June 6, 2018 00:48
writing execFlowFunctionObjects immortality OpenFOAM Post-Processing 30 September 15, 2013 07:16
an odd(at least for me!) reconstructPar error on a field immortality OpenFOAM Running, Solving & CFD 3 June 3, 2013 23:36
[Commercial meshers] Output deck from ANSA for OpenFOAM use Kattie OpenFOAM Meshing & Mesh Conversion 10 February 2, 2011 08:46


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