|
[Sponsors] |
[foam-extend.org] Module file foam-extend 3.2 CentOS cluster |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 20, 2017, 20:49 |
Module file foam-extend 3.2 CentOS cluster
|
#1 |
New Member
Karthick
Join Date: Oct 2016
Location: Munich
Posts: 18
Rep Power: 10 |
Dear Foamers,
I am using foam-extend 3.2 for some time now. But I have never used cluster for running the cases. I am facing some problems which I would like to share and could probably solve through your comments! Well!! I want run (a serial job) my simulation as a normal user in Rocks cluster - cent OS 6.8 version, installed version: Foam-extend-3.2. So, let me explain what I did before posting the troubles I am facing 1. I copied the cavity tutorial case to my working directory 2. Inside the case folder, I created a script file cavityscript.sh with PBS commands as below Code:
#PBS -N testInstall #PBS -l nodes=1:ppn=1 #PBS -l walltime=01:00:00 ##move into cavity directory cd /home/y0080051/foam/y0080051-3.2/cavity ##source environmental variables source /state/partition1/apps/OpenFOAM/foam/foam-extend-3.2/etc/bashrc module load openmpi-1.10-x86_64 blockMesh icoFoam After all, I see that loading modules is basically loading all environmental variables, which I think the following line from the script file should do it. Could anyone explain me why should load module if I include this?! Code:
##source environmental variables source /state/partition1/apps/OpenFOAM/foam/foam-extend-3.2/etc/bashrc 2. Other than loading foam-extend-3.2 module, do I need to load any other modules? I see openmpi module is required only for parallel job, so I may not require that! Can anyone tell me what all should I need to load to run a serial job? 3. I submit the file using the following command Code:
qsub -cwd cavityscript.sh But if I type "icoFoam -help" and "blockMesh -help" in the terminal with loaded alias command for foam-extend-3.2, I can see the usage commands of those. Then, why does it not work if I give those via a script file. Could anyone help me out from this! Any help would greatly be appreciated! Many thanks, Karthick Rajkumar |
|
March 25, 2017, 16:42 |
|
#2 | |||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Karthick,
I don't know if you've managed to solve this problem or not, but here are a few answers that should at least answer part of your questions. And many thanks for providing all of the necessary details to diagnose this! Quote:
Code:
module unload openmpi-1.08-x86_64 The source command is loading the foam-extend 3.2 environment, in a way that is not as clean as the module system, but does its job correctly when it comes to loading its environment. Now, what I can see wrong with the order you've used is that it should be switched around, namely it should be in this order: Code:
##source environmental variables module load openmpi-1.10-x86_64 source /state/partition1/apps/OpenFOAM/foam/foam-extend-3.2/etc/bashrc For more details on the topic of shell environment for OpenFOAM/foam-extend, read this page: http://openfoamwiki.net/index.php/In...with_the_Shell Quote:
Code:
module avail Quote:
You can try the following script to try and diagnose how the shell environment looks like from within the cluster: Code:
#PBS -N testInstall #PBS -l nodes=1:ppn=1 #PBS -l walltime=01:00:00 ##move into cavity directory cd /home/y0080051/foam/y0080051-3.2/cavity ##source environmental variables module load openmpi-1.10-x86_64 source /state/partition1/apps/OpenFOAM/foam/foam-extend-3.2/etc/bashrc export > shell_environment.txt 2>&1 find /state/partition1/apps/OpenFOAM/foam/foam-extend-3.2/ -type f > installed_files.txt 2>&1
Best regards, Bruno
__________________
|
||||
March 26, 2017, 14:52 |
|
#3 |
New Member
Karthick
Join Date: Oct 2016
Location: Munich
Posts: 18
Rep Power: 10 |
Dear Bruno,
Thanks for the well written reply. I talked to the system administrator and I was able to run the simulations in the cluster. Now I am in the final stage, documenting the work! In general, your messages in the forum were of great help to my work and many thanks again!! Regards, Karthick |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 09:06 |
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' | muth | OpenFOAM Running, Solving & CFD | 3 | August 27, 2018 05:18 |
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 | tlcoons | OpenFOAM Installation | 13 | April 20, 2016 18:34 |
[foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 22:53 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |