CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Ability to run an openFOAM case at specific time (https://www.cfd-online.com/Forums/openfoam-solving/227075-ability-run-openfoam-case-specific-time.html)

Dikkeunit May 16, 2020 11:23

Ability to run an openFOAM case at specific time
 
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

Returns the log:
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

I was wondering if any of you have a different method to do this, or know how to solve this issue?
Thank you,
Max


All times are GMT -4. The time now is 02:51.