Jump to content

Recommended Posts

Hi Carsten I have made that change now, still not much progress, error log:

 

[Captured output from application /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner//Allrun]

/home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner//Allrun: 8: /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner//Allrun: source: not found
Running blockMesh on /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner
Running surfaceFeatureExtract on /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner
Running snappyHexMesh on /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner
Running renumberMesh on /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner
Running topoSet on /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner
Running createPatch on /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner
/home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner//Allrun: 18: /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner//Allrun: runApplication: not found
/home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner//Allrun: 1: /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner//Allrun: getApplication: not found
/home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner//Allrun: 20: /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner//Allrun: runParallel: not found
/home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner//Allrun: 22: /home/alasdair

 

Allrun file:

 

 

#!/bin/sh

 

cd ${0%/*} || exit 1 # run from this directory

 

#wmUNSET

. /home/alasdair/OpenFOAM/OpenFOAM-2.3.1/etc/bashrc

 

# Source tutorial run functions

source $WM_PROJECT_DIR/bin/tools/RunFunctions

 

chmod +x Allrun.pre

 

 

 

touch case.foam

 

./Allrun.pre

 

runApplication decomposePar

 

runParallel `getApplication` 4

 

runApplication reconstructPar

 

 

Sorry that this is taking so long!

 

Alasdair.

Share this post


Link to post
Share on other sites

Hi Carsten, I think we have success!

 

copy of the error log below:

 

[Captured output from application /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner//Allrun]

Running blockMesh on /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner
Running surfaceFeatureExtract on /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner
Running snappyHexMesh on /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner
Running renumberMesh on /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner
Running topoSet on /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner
Running createPatch on /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner
Running decomposePar on /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner
Running pimpleDyMFoam in parallel on /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner using 4 processes
Running reconstructPar on /home/alasdair/OpenFOAM/AH81_OpenFOAM_Propeller/manual_results/baseline/Runner

 

Thanks,

 

Alasdair.

Share this post


Link to post
Share on other sites

Hello

 

Im still strugling with this one:

 

Here is stdouterroroutput.redirect file from project folder:

 

Moving /home/jussi/jjo/ahmedbody/manual_results/baseline/computation/input/0.org to /home/jussi/jjo/ahmedbody/manual_results/baseline/computation//0.org
Moving /home/jussi/jjo/ahmedbody/manual_results/baseline/computation/input/Allrun to /home/jussi/jjo/ahmedbody/manual_results/baseline/computation//Allrun
Moving /home/jussi/jjo/ahmedbody/manual_results/baseline/computation/input/constant to /home/jussi/jjo/ahmedbody/manual_results/baseline/computation//constant
Moving /home/jussi/jjo/ahmedbody/manual_results/baseline/computation/input/system to /home/jussi/jjo/ahmedbody/manual_results/baseline/computation//system

[Captured output from application /home/jussi/jjo/ahmedbody/manual_results/baseline/computation//Allrun]

No OpenFOAM environment detected. Attempt to load specified foamDotFile: /opt/openfoam221/etc/bashrc
Success
Running blockMesh on /home/jussi/jjo/ahmedbody/manual_results/baseline/computation
Running decomposePar on /home/jussi/jjo/ahmedbody/manual_results/baseline/computation
Running surfaceFeatureExtract on /home/jussi/jjo/ahmedbody/manual_results/baseline/computation
Running snappyHexMesh on /home/jussi/jjo/ahmedbody/manual_results/baseline/computation
Running potentialFoam on /home/jussi/jjo/ahmedbody/manual_results/baseline/computation
Running simpleFoam on /home/jussi/jjo/ahmedbody/manual_results/baseline/computation
Using:
  log      : log.simpleFoam
  database : /opt/openfoam221/bin/tools/foamLog.db
  awk file : ./logs/foamLog.awk
  files to : ./logs

Executing: awk -f ./logs/foamLog.awk log.simpleFoam

Generated XY files for:
End


Exiting Allrun

 

 

This is from CAESES console:

 

 

*** INFO computation : Preparing process ... [design: baseline]

*** INFO computation : Writing command files ... [design: baseline]

*** INFO computation : Finished preparation - running external process ... [design: baseline]

*** INFO Multi Body STL Export : processing [exporting 1 object(s)]

*** INFO computation : running external process [Allrun in design baseline]

*** INFO LocalResourceManager : Updated permissions on external process file /home/jussi/jjo/ahmedbody/manual_results/baseline/computation//Allrun.

*** INFO computation : finished results [design: baseline]

*** INFO computation : finished results [design: baseline]

*** INFO FGenIntReader : Could not open file /home/jussi/jjo/ahmedbody/manual_results/baseline/computation//postProcessing/forces/0/forceCoeffs.dat for reading [parsing process aborted]

*** INFO FResultsGenInt : File read error [Failed to open file /home/jussi/jjo/ahmedbody/manual_results/baseline/computation/logs/Ux_0]

*** INFO FResultsGenInt : File read error [Failed to open file /home/jussi/jjo/ahmedbody/manual_results/baseline/computation/logs/Uy_0]

*** INFO FResultsGenInt : File read error [Failed to open file /home/jussi/jjo/ahmedbody/manual_results/baseline/computation/logs/Uz_0]

*** INFO FResultsGenInt : File read error [Failed to open file /home/jussi/jjo/ahmedbody/manual_results/baseline/computation/logs/contGlobal_0]

*** INFO FResultsGenInt : File read error [Failed to open file /home/jussi/jjo/ahmedbody/manual_results/baseline/computation/logs/contLocal_0]

*** INFO FResultsGenInt : File read error [Failed to open file /home/jussi/jjo/ahmedbody/manual_results/baseline/computation/logs/k_0]

*** INFO FResultsGenInt : File read error [Failed to open file /home/jussi/jjo/ahmedbody/manual_results/baseline/computation/logs/omega_0]

*** INFO FResultsGenInt : File read error [Failed to open file /home/jussi/jjo/ahmedbody/manual_results/baseline/computation/logs/p_0]

Share this post


Link to post
Share on other sites

And this is allrun file that I use:

 

 

#!/bin/bash

 

 

# ----- OpenFOAM Environment

# Check/source OpenFOAM Environment

 

if [ -z $WM_PROJECT_DIR ] ; then

FOAMDOTFILE=<entry>FOAMDOTFILE</entry>

echo "No OpenFOAM environment detected. Attempt to load specified foamDotFile: $FOAMDOTFILE"

 

if [ -f $FOAMDOTFILE ] ; then

. $FOAMDOTFILE

echo -e "Success"

else

echo -e "\n*** ERROR: OpenFOAM source file not found [Failed to open $FOAMDOTFILE]"

echo -e "\nTry to modify your setup according to your local OpenFOAM installation."

exit 1

fi

else

echo "OpenFOAM environment detected."

fi

 

# Source tutorial run functions

. $WM_PROJECT_DIR/bin/tools/RunFunctions

 

chmod +x Allrun

 

# ----- case preparation

 

touch case.foam

 

# Get number of processors to run on from decomposeParDict ( could be inserted here by CAESES, too )

nProcs=$(getNumberOfProcessors)

 

 

# ----- Mesh generation

 

runApplication blockMesh

runApplication decomposePar

runApplication surfaceFeatureExtract

 

 

if [[ $nProcs > 2 ]] ; then

#- parallel running

 

runParallel snappyHexMesh $nProcs -overwrite

ls -d processor* | xargs -i rm -rf ./{}/0 $1

ls -d processor* | xargs -i cp -r 0.org ./{}/0 $1

 

else

#- non-parallel running

 

runApplication snappyHexMesh -overwrite

cp -r 0.org 0 > /dev/null 2>&1

fi

 

 

 

 

# ----- Solving

 

if [[ $nProcs > 2 ]] ; then

#- parallel running

 

runParallel potentialFoam $nProcs -noFunctionObjects -writep

runParallel $(getApplication) $nProcs

 

else

#- non-parallel running

 

runApplication potentialFoam -noFunctionObjects -writep

runApplication $(getApplication)

fi

 

 

 

 

# ----- Postprocessing

 

if [[ $nProcs > 2 ]] ; then

runApplication reconstructParMesh -constant

runApplication reconstructPar -latestTime

fi

 

foamLog log.$(getApplication)

 

echo -e "\n\nExiting Allrun"

# ----------------------------------------------------------------- end-of-file

Share this post


Link to post
Share on other sites

could it be that you use Ubuntu 14.04lts? and that you therefore had to compile OpenFoam for your own? Then you have to write

of230

to load the bashrc.

So try to insert "of230" at the second position of the Allrun script. Mabe you have to adjust the version number.

 

Maybe you can have a look on your profile ~/.bashrc file

Share this post


Link to post
Share on other sites

Hello

 

It did not work, but I reinstalled ubundu and OF230.

Then it did work right away, i think my ubuntu was too mixup, as i have been trying different things.

 

Now I need just more practice...

Thanks, I will post some stuff as I get my project on that state.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...