|
[Sponsors] |
how to sample / output only certain fields openfoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 18, 2018, 14:18 |
how to sample / output only certain fields openfoam
|
#1 |
New Member
MASc Student
Join Date: Sep 2016
Posts: 25
Rep Power: 10 |
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! |
|
August 20, 2018, 18:22 |
|
#2 |
Senior Member
Join Date: Aug 2015
Posts: 494
Rep Power: 15 |
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(); } |
|
Tags |
controldict, openfoam, output fields, results, writeregisteredobject |
|
|
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 |