|
[Sponsors] |
OpenFOAM cloud computing on Rescale with custom libraries |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 24, 2015, 07:48 |
OpenFOAM cloud computing on Rescale with custom libraries
|
#1 |
New Member
Luka Denies
Join Date: Oct 2014
Posts: 28
Rep Power: 12 |
For my thesis project, I recently ran into a lack of computational resources on my trusty old laptop. As it took some time to get access to the CFD cluster at the faculty, I started exploring other avenues. One of the solutions I found was Rescale.com, a company that offers cloud computing resources and has OpenFOAM pre-installed on their servers. They offer some free computing time if you sign up for their trial, so I went with that. However, it took me quite some time to get things running, so I wanted to offer some help here for anyone trying to do the same thing.
If you simply want to run with the standard OpenFOAM setup, the process is very simple. Create a new job and select the hardware you want to use. Then create a .zip archive of the case you want to simulate (i.e. of the 0, constant and system directories, as well as any other supporting files). The easiest is to use an Allrun file that contains all the commands you want to execute. Now upload this .zip archive as input file. Choose OpenFOAM as software and fill in ./Allrun as the command to run. If you execute the job now, it will simply run the OpenFOAM case for you. Using custom solvers and executables is also straighforward. Simply add the executable to the .zip archive you upload and it should work. Custom libraries are somewhat more difficult. First, create a new directory called "lib" in your case directory. Add to this directory all custom libraries you want to use (e.g. some swak4foam libraries you need). Now we need to tell the server where to find these libraries. The solution is to add the following line to the start of the Allrun file: Code:
export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH So far, I'm quite happy with the results as the calculations are approximately 4x faster than my own computer. Note: I am not affiliated in any way with Rescale, I just wanted to offer this short guide because the problems I encountered had, in retrospect, very simple solutions. |
|
September 11, 2015, 08:41 |
|
#2 |
New Member
Kalyan Peri
Join Date: Aug 2014
Posts: 19
Rep Power: 12 |
HI luka,
I am trying to implement my custom solver in Rescale.com . I uploaded my solver and in Allrun file i wrote wmake. In log file i get wmake command not availabe.. I tried to compile also with wmake libso.. got same error. Could you give me your input how to implement my solver in rescale.com |
|
September 11, 2015, 08:53 |
|
#3 |
New Member
Luka Denies
Join Date: Oct 2014
Posts: 28
Rep Power: 12 |
You don't have to compile it on the server; just upload your own compiled version. That one is usually stored on your computer under your personal directory/platforms/linux64GccDPOpt/bin (or lib for libraries).
|
|
September 11, 2015, 08:58 |
|
#4 |
New Member
Kalyan Peri
Join Date: Aug 2014
Posts: 19
Rep Power: 12 |
when i upload should i zip in, the case i want to simulate along with it? or can i submit my case as another job? Thank you luka
|
|
September 11, 2015, 09:27 |
|
#5 |
New Member
Luka Denies
Join Date: Oct 2014
Posts: 28
Rep Power: 12 |
You should include the executable (the file in /bin) in the zip file of the case you want to simulate.
Then if you call Code:
myCustomSolver |
|
September 11, 2015, 10:38 |
|
#6 |
New Member
Kalyan Peri
Join Date: Aug 2014
Posts: 19
Rep Power: 12 |
Thank you.. Its working
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |
[Salome] SALOME to OpenFOAM mesh for SRF/MRF computing | davidmd | OpenFOAM Meshing & Mesh Conversion | 6 | February 20, 2014 04:03 |
Running OpenFoam on a Computer Cluster in the Cloud - cloudnumbers.com | Markus Schmidberger | OpenFOAM Announcements from Other Sources | 0 | July 26, 2011 09:18 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |
Testing OpenFOAM parallel computing | jason.ryon | OpenFOAM | 0 | October 5, 2009 12:46 |