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

[OpenFOAM.org] one folder for external utilities

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2015, 00:53
Default one folder for external utilities
  #1
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 286
Blog Entries: 6
Rep Power: 16
student666 is on a distinguished road
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.
student666 is offline   Reply With Quote

Old   May 24, 2015, 10:40
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,971
Blog Entries: 45
Rep Power: 127
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
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
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing IOdictionary to user-defined folder Arnoldinho OpenFOAM Programming & Development 3 June 16, 2021 05:04
[OpenFOAM.com] v1606+ Run Folder JSMOKA OpenFOAM Installation 5 December 18, 2016 20:47
[waves2Foam] making prepareCase.sh executable within the bin folder erased all files within? nikos325 OpenFOAM Community Contributions 3 November 1, 2014 06:49
icoFsiFoam folder structure OF 2.2.1 philipp1 OpenFOAM Running, Solving & CFD 1 January 25, 2014 18:08
I want to arrange all source file into Single Folder :Debate Urgent Help hhh OpenFOAM 3 July 27, 2013 06:15


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