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

Ability to run an openFOAM case at specific time

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By oswald

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 16, 2020, 11:23
Question Ability to run an openFOAM case at specific time
  #1
New Member
 
Max
Join Date: Sep 2019
Posts: 8
Rep Power: 7
Dikkeunit is on a distinguished road
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
Dikkeunit is offline   Reply With Quote

Old   October 10, 2024, 05:13
Default
  #2
Member
 
Join Date: Sep 2010
Location: Leipzig, Germany
Posts: 96
Rep Power: 16
oswald is on a distinguished road
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".
oswald is offline   Reply With Quote

Reply

Tags
cfd, linux, openfoam 1812


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


All times are GMT -4. The time now is 09:06.