|
[Sponsors] |
Ability to run an openFOAM case at specific time |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 16, 2020, 11:23 |
Ability to run an openFOAM case at specific time
|
#1 |
New Member
Max
Join Date: Sep 2019
Posts: 8
Rep Power: 7 |
Hey all,
I was wondering if someone knows a way to run a CFD case at a later time in the future. So, for example, you can say: run the command ./Allrun at this time. I have tried this with the at command that is available in Linux and this worked for everything except the allrun command. ./Allclean, for example, works as intended. When you give the command: at now + 1 minutes at> ./Allclean at><EOT> It will clean the case one minute later. However when I try this with the following Allrun command it will run at the specific time, but the individual processes will not run and all return errors that the libaries can not be found. Code:
[URE14@urepower8 512_F40_R30]$ at now + 1 minutes at> ./Allrun > log at> <EOT> job 80 at Sat May 16 16:11:00 2020 Running surfaceFeatureExtract on ../512_F40_R30 While the log.surfaceFeatureExtract returns: surfaceFeatureExtract: error while loading shared libraries: libsurfaceFeatureExtract.so: cannot open shared object file: No such file or directory It seems the command can not find the libraries, but I assumed that the command should run in same shell as specified in the script right? This is the allrun script: Code:
#!/bin/sh cd ${0%/*} || exit 1 # Run from this directory . $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions runApplication surfaceFeatureExtract Thank you, Max |
|
October 10, 2024, 05:13 |
|
#2 |
Member
Join Date: Sep 2010
Location: Leipzig, Germany
Posts: 96
Rep Power: 16 |
In case anyone is still looking for an answer: You need to source the/an appropriate bashrc file before sourcing RunFunctions, e.g. ". /opt/openfoam-dev/etc/bashrc".
|
|
Tags |
cfd, linux, openfoam 1812 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field | lakeat | OpenFOAM Community Contributions | 58 | December 23, 2021 03:36 |
AMI speed performance | danny123 | OpenFOAM | 21 | October 24, 2020 05:13 |
pressure in incompressible solvers e.g. simpleFoam | chrizzl | OpenFOAM Running, Solving & CFD | 13 | March 28, 2017 06:49 |
Same SimpleFOAM Case converges with openFOAM 2.1 but diverges with openFOAM 2.0.1 | alsdia | OpenFOAM Running, Solving & CFD | 3 | October 22, 2012 12:25 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |