CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

OpenFOAM cloud computing on Rescale with custom libraries

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2015, 07:48
Default OpenFOAM cloud computing on Rescale with custom libraries
  #1
New Member
 
Luka Denies
Join Date: Oct 2014
Posts: 28
Rep Power: 12
LukaD is on a distinguished road
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
This line adds the directory you just created as the first path the server checks when looking for a library. In this way, you not only can access these libraries, but they also take precedence over standard OpenFOAM libraries, e.g. when you created your own thermophysicalFluid library like me.

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.
LukaD is offline   Reply With Quote

Old   September 11, 2015, 08:41
Default
  #2
New Member
 
Kalyan Peri
Join Date: Aug 2014
Posts: 19
Rep Power: 12
kalyan is on a distinguished road
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
kalyan is offline   Reply With Quote

Old   September 11, 2015, 08:53
Default
  #3
New Member
 
Luka Denies
Join Date: Oct 2014
Posts: 28
Rep Power: 12
LukaD is on a distinguished road
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).
LukaD is offline   Reply With Quote

Old   September 11, 2015, 08:58
Default
  #4
New Member
 
Kalyan Peri
Join Date: Aug 2014
Posts: 19
Rep Power: 12
kalyan is on a distinguished road
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
kalyan is offline   Reply With Quote

Old   September 11, 2015, 09:27
Default
  #5
New Member
 
Luka Denies
Join Date: Oct 2014
Posts: 28
Rep Power: 12
LukaD is on a distinguished road
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
the server will go looking for the myCustomSolver file and execute it.
LukaD is offline   Reply With Quote

Old   September 11, 2015, 10:38
Default
  #6
New Member
 
Kalyan Peri
Join Date: Aug 2014
Posts: 19
Rep Power: 12
kalyan is on a distinguished road
Thank you.. Its working
kalyan is offline   Reply With Quote

Reply


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
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


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