CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] one folder for external utilities (https://www.cfd-online.com/Forums/openfoam-installation/153330-one-folder-external-utilities.html)

student666 May 22, 2015 23:53

one folder for external utilities
 
Hi all,

I just finished to install OF 2.4.0. I copied the platfoms folder, that contains external utilities (eg. cfMesh utilities), to new folder location:

Code:

~/OpenFOAM/michele-2.4.0/platforms/......
I would like to know, even for future releases, if there's a way to set a common folder that is used from every sourced version, without copying and pasting each time, and in order to have for all versions, the last updated folder.

Thank you very much.

Michele.

wyldckat May 24, 2015 09:40

Greetings Michele,

  1. The "platforms" folder usually contains the binaries. These will likely only work with the OpenFOAM version they were built with. Copying these folders to another version can lead to unexpected crashes of the binaries contained therein.
  2. You can have a single folder where you have all of your source code, for example this folder structure:
    Code:

    ~/OpenFOAM/Contributions
    ~/OpenFOAM/Contributions/cfMesh
    ~/OpenFOAM/Contributions/swak4Foam

  3. Then after you install a new OpenFOAM version, run:
    Code:

    cd ~/OpenFOAM/Contributions

    cd cfMesh
    wclean all
    wmake all
    cd ..

    cd swak4Foam
    wclean all
    wmake all
    cd ..

    Note: I'm assuming each folder has the proper "Allwmake" and "Allwclean" scripts, for this to work as intended. If not, instead of "wclean/wmake", you'll have to use the build instructions that are written for each one.


Best regards,
Bruno


All times are GMT -4. The time now is 18:43.