CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Parafoam: foreground process (https://www.cfd-online.com/Forums/openfoam-pre-processing/73938-parafoam-foreground-process.html)

smillion March 20, 2010 04:27

Parafoam: foreground process
 
Hey guys,

After typing paraFoam in the command line I don't get my next command prompt. The user guide says all I need to type is "paraFoam" in the command line but do I have to type anything else to run icoFoam in the foreground?

smillion

wyldckat March 20, 2010 09:47

Quote:

Originally Posted by smillion (Post 250895)
Hey guys,

After typing paraFoam in the command line I don't get my next command prompt. The user guide says all I need to type is "paraFoam" in the command line but do I have to type anything else to run icoFoam in the foreground?

smillion

Greetings smillion,

You have (at least) two possibilities:
  1. Type an ampersand after paraFoam, as such:
    Code:

    paraFoam &
    The ampersand in will make the program launch as a forked process, thus allowing you to continue using the main terminal window. If you close that terminal, all forked processes from it will be terminated.
  2. Open a new terminal, and go to the same folder, and voilá, you can run other OpenFOAM applications from there... as long as the environment is properly set up by OpenFOAM's bashrc file (or crshrc, I think)
But if you are reading the user guide, there should be mention on it about the nohup command, which acts similarly to the ampersand, but will spawn it as a new process, instead of a forked one!

Best regards,
Bruno

smillion March 20, 2010 21:49

Thanks wyldckat

wyldckat March 21, 2010 13:51

You're welcome smillion :)

By the way, I finally found again a cheat sheet pdf for *nix/Linux commands and OpenFOAM, available here.

Best regards,
Bruno


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