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

Can you disable solver output?

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

Like Tree8Likes
  • 8 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 10, 2014, 17:33
Default Can you disable solver output?
  #1
Member
 
Chris L
Join Date: Sep 2012
Posts: 53
Rep Power: 13
vbchris is on a distinguished road
Hi all,

I was wondering if anyone knows a way to disable solver output to the terminal or log file?
On the cluster I am using, the file system manager is the bottle neck in my simulation run times, write operations seem to hang when under load.
Therefore I want to write to the file system as infrequently as possible.
Since the code is writing time step files once every half hour or so I think this is mostly due to the solver output stream.

I though about > /dev/null but I think this still writes to the file system.

Any input is appreciated.


Thanks,

Chris
vbchris is offline   Reply With Quote

Old   February 11, 2014, 03:43
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

You can do something like this:

Code:
mkdir -p $HOME/.OpenFOAM/$WM_PROJECT_VERSION
cp $WM_PROJECT_DIR/etc/controlDict $HOME/.OpenFOAM/$WM_PROJECT_VERSION/
Then edit debugSwitches dictionary in $HOME/.OpenFOAM/$WM_PROJECT_VERSION/controlDict and change lines

Code:
...
SolverPerformance   1;
...
lduMatrix           1;
...
to

Code:
...
SolverPerformance   0;
...
lduMatrix           0;
...
These ones switch off most of the output. If it's not enough there are other switches with values greater than 0, change them to 0 and solver can be made completely silent.
elvis, hua1015, sharonyue and 5 others like this.

Last edited by alexeym; February 11, 2014 at 03:44. Reason: typo
alexeym is offline   Reply With Quote

Old   February 13, 2014, 17:31
Default
  #3
Member
 
Chris L
Join Date: Sep 2012
Posts: 53
Rep Power: 13
vbchris is on a distinguished road
Thanks Alexey,

This is exactly what I was looking for.

In version 2.2.0

SolverPerformance 0;

doesn't exist but if other variables are set to 0 it will run quietly.

Chris
vbchris is offline   Reply With Quote

Old   February 14, 2014, 05:27
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
Just for the sake of completeness: /dev/null does not write to the file system. It's a "special file" where the kernel reports a successful write but doesn't actually touch the disk at all. So it's pretty fast.

- Anton

Quote:
Originally Posted by vbchris View Post
Hi all,

I was wondering if anyone knows a way to disable solver output to the terminal or log file?
On the cluster I am using, the file system manager is the bottle neck in my simulation run times, write operations seem to hang when under load.
Therefore I want to write to the file system as infrequently as possible.
Since the code is writing time step files once every half hour or so I think this is mostly due to the solver output stream.

I though about > /dev/null but I think this still writes to the file system.

Any input is appreciated.


Thanks,

Chris
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Reply

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
different results between serial solver and parallel solver wlt_1985 FLUENT 11 October 12, 2018 09:23
Creating New Solver: For particle-laden compressible jets sankarv OpenFOAM Running, Solving & CFD 17 December 3, 2014 20:41
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
Creating New Solver: For particle-laden compressible jets sankarv OpenFOAM 0 April 4, 2010 19:06
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 15:08


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