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

Can you disable solver output?

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

Like Tree4Likes
  • 4 Post By alexeym

Reply
 
LinkBack Thread Tools Display Modes
Old   February 10, 2014, 16:33
Default Can you disable solver output?
  #1
Member
 
Chris L
Join Date: Sep 2012
Posts: 36
Rep Power: 4
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, 02:43
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 553
Rep Power: 10
alexeym is on a distinguished road
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, vbchris and 1 others like this.

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

Old   February 13, 2014, 16:31
Default
  #3
Member
 
Chris L
Join Date: Sep 2012
Posts: 36
Rep Power: 4
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, 04:27
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 918
Rep Power: 16
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.
*Check out the scientific computing exchange http://scicomp.stackexchange.com
akidess is offline   Reply With Quote

Reply

Thread Tools
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 On
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 10 April 11, 2012 15:25
Working directory via command line Luiz CFX 4 March 6, 2011 20:02
Creating New Solver: For particle-laden compressible jets sankarv OpenFOAM Running, Solving & CFD 16 September 1, 2010 17:25
Creating New Solver: For particle-laden compressible jets sankarv OpenFOAM 0 April 4, 2010 18:06
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08


All times are GMT -4. The time now is 22:50.