CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   performing postProcessing commands on decomposed files (http://www.cfd-online.com/Forums/openfoam-post-processing/122637-performing-postprocessing-commands-decomposed-files.html)

immortality August 23, 2013 14:39

performing postProcessing commands on decomposed files
 
Hi
is it possible to use postProcessing commands like "Mach" on the files in processors withot reconstructing?

wyldckat August 24, 2013 12:01

Quick question: have you tried asking the application for help?
Code:

Mach -help
And no, I'm not kidding :)

immortality August 24, 2013 15:36

Hi Bruno
the application is tired now and doesn't answer!:D
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


ngj August 24, 2013 16:11

I suppose that the option "-parallel" is what you are looking for.

Kind regards

Niels

immortality August 24, 2013 16:29

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?

wyldckat August 24, 2013 16:47

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 (Post 447831)
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

immortality August 24, 2013 17:35

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?

wyldckat August 24, 2013 17:52

Quote:

Originally Posted by immortality (Post 447839)
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.

immortality August 24, 2013 17:58

I sent it to you,it can use the -parallel option,it's interesting a lot! :)


All times are GMT -4. The time now is 11:55.