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

Disable OpenFOAM output

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 23, 2021, 19:25
Default Disable OpenFOAM output
  #1
New Member
 
Russian Federation
Join Date: Apr 2020
Posts: 18
Rep Power: 6
fetc95 is on a distinguished road
Hi, dear colleagues.

Does anybody know is there a possibility to disable OpenFOAM solver output in a specific case? For example, if I run the solver through runApplication, its output is written in "log.<solverName>". Otherwise, it is written to std. But can I disable this output at all or set this output to be written only at writeTime?
fetc95 is offline   Reply With Quote

Old   November 24, 2021, 06:27
Default
  #2
Member
 
Join Date: Oct 2011
Posts: 56
Rep Power: 15
fanta is on a distinguished road
hi,
you can edit your controlDict. There are options for the dictionary keyword "writeControl", look here: https://cfd.direct/openfoam/user-guide/v9-controlDict/

HTH, fanta
fanta is offline   Reply With Quote

Old   November 24, 2021, 21:39
Default
  #3
New Member
 
Russian Federation
Join Date: Apr 2020
Posts: 18
Rep Power: 6
fetc95 is on a distinguished road
Quote:
Originally Posted by fanta View Post
hi,
you can edit your controlDict. There are options for the dictionary keyword "writeControl", look here: https://cfd.direct/openfoam/user-guide/v9-controlDict/

HTH, fanta
Thanks, but unfortunately it does not seem to be my question. WriteControl is just an indicator how to interpret the number given in writeInterval to write out the solution results into time directiories. It is not related to output of the solver to the console.
fetc95 is offline   Reply With Quote

Old   November 26, 2021, 05:22
Default
  #4
Senior Member
 
JNSN's Avatar
 
Jan
Join Date: Jul 2009
Location: Hamburg
Posts: 144
Rep Power: 20
JNSN is on a distinguished road
Hi,


you can simply redirect the output to /dev/null:
Code:
whateverFoam > /dev/null
or, if you want to redirect both error and output messages:
Code:
whateverFoam > /dev/null 2>&1
Best,
Jan
JNSN is offline   Reply With Quote

Reply

Tags
openfoam, output to file


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
Getting Started with OpenFOAM wyldckat OpenFOAM 26 June 21, 2024 07:54
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
How to get the output pressure of OpenFoam? IGH OpenFOAM Post-Processing 3 October 4, 2017 11:38
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 04:19
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36


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