CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

performing postProcessing commands on decomposed files

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By immortality

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2013, 14:39
Default performing postProcessing commands on decomposed files
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
Hi
is it possible to use postProcessing commands like "Mach" on the files in processors withot reconstructing?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   August 24, 2013, 12:01
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick question: have you tried asking the application for help?
Code:
Mach -help
And no, I'm not kidding
__________________
wyldckat is offline   Reply With Quote

Old   August 24, 2013, 15:36
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
Hi Bruno
the application is tired now and doesn't answer!
do you know anything?
Code:
ehsan@Ehsan-com:~/Desktop/WR_4$ Mach -help

Usage: Mach [OPTIONS]
options:
  -case <dir>       specify alternate case directory, default is the cwd
  -constant         include the 'constant/' dir in the times list
  -dict <file>      read control dictionary from specified location
  -latestTime       select the latest time
  -noFlow           suppress creating flow models (execFlowFunctionObjects only)
  -noFunctionObjects
                    do not execute functionObjects
  -noWrite          suppress writing results
  -noZero           exclude the '0/' dir from the times list, has precedence
                    over the -zeroTime option
  -parallel         run in parallel
  -region <name>    specify alternative mesh region
  -roots <(dir1 .. dirN)>
                    slave root directories for distributed running
  -time <ranges>    comma-separated time ranges - eg, ':10,20,40:70,1000:'
  -srcDoc           display source code in browser
  -doc              display application documentation in browser
  -help             print the usage
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   August 24, 2013, 16:11
Default
  #4
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
I suppose that the option "-parallel" is what you are looking for.

Kind regards

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   August 24, 2013, 16:29
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
thanks,I used it in a case with one time folder in processor folders and this error occurred:
Code:
--> FOAM FATAL ERROR: 
bool IPstream::init(int& argc, char**& argv) : attempt to run parallel on 1 processor

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 79.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::error::abort() in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2  Foam::UPstream::init(int&, char**&) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/openmpi-system/libPstream.so"
#3  Foam::argList::argList(int&, char**&, bool, bool) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#4  
 in "/opt/openfoam220/platforms/linux64GccDPOpt/bin/Mach"
#5  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#6  
 in "/opt/openfoam220/platforms/linux64GccDPOpt/bin/Mach"
[Ehsan-com:23454] *** Process received signal ***
[Ehsan-com:23454] Signal: Aborted (6)
[Ehsan-com:23454] Signal code:  (-6)
[Ehsan-com:23454] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x36460) [0x7f4e67e64460]
[Ehsan-com:23454] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f4e67e643e5]
[Ehsan-com:23454] [ 2] /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b) [0x7f4e67e67b4b]
[Ehsan-com:23454] [ 3] /opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam5error5abortEv+0x166) [0x7f4e68d69046]
[Ehsan-com:23454] [ 4] /opt/openfoam220/platforms/linux64GccDPOpt/lib/openmpi-system/libPstream.so(_ZN4Foam8UPstream4initERiRPPc+0x48f) [0x7f4e67c27c5f]
[Ehsan-com:23454] [ 5] /opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam7argListC1ERiRPPcbb+0x23ce) [0x7f4e68d8a84e]
[Ehsan-com:23454] [ 6] Mach() [0x40c3d8]
[Ehsan-com:23454] [ 7] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f4e67e4f30d]
[Ehsan-com:23454] [ 8] Mach() [0x40cb7d]
[Ehsan-com:23454] *** End of error message ***
Aborted
I tried it in another case with several time folders in processor folders with the same error,could you please have a look into a case to see why this happens?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   August 24, 2013, 16:47
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Niels and Ehsan.

@Ehsan: I'm trying to get you to think for yourself, which is why I didn't give the straight answer. And I still won't. I'll give you only a few clues

Starting with this quote:
Quote:
Originally Posted by immortality View Post
Code:
--> FOAM FATAL ERROR: 
bool IPstream::init(int& argc, char**& argv) : attempt to run parallel on 1 processor
In addition, I'll ask you back: how do you launch solvers in parallel?
And have you tried using the "-help" command with the solvers you usually use?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 24, 2013, 17:35
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
Hi Bruno
I'm using pyFoamPlotRunner.py for a while and had forgot about mpirun,
I used
Code:
mpirun -np 4 Mach -parallel
but it makes another trouble now,how can add this option to totalPressureComp that we made before?
benqing likes this.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   August 24, 2013, 17:52
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by immortality View Post
but it makes another trouble now,how can add this option to totalPressureComp that we made before?
Mmm... there have been so many things I've done so far, that I can't remember which one is the "totalPressureComp" one. There are a few possibilities:
  1. It might now be possible, depending on how the calculation is done.
  2. Or it might be simple to do, by simply comparing the content of each ".C" file.
  3. Or it's already implemented, depending on what "-help" tells you.
__________________
wyldckat is offline   Reply With Quote

Old   August 24, 2013, 17:58
Default
  #9
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
I sent it to you,it can use the -parallel option,it's interesting a lot!
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Reply


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
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
OpenFOAM15 paraFoam bug koen OpenFOAM Bugs 19 June 30, 2009 10:46
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 20:51


All times are GMT -4. The time now is 21:35.