CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Run error of AAchenbomb in Openfoam 1.6-ext (http://www.cfd-online.com/Forums/openfoam-solving/105514-run-error-aachenbomb-openfoam-1-6-ext.html)

sanpishou August 1, 2012 13:48

Run error of AAchenbomb in Openfoam 1.6-ext
 
Hallo everyone,

I try to run AAchenbomb under OpenFOAM 1.6-ext and following error came out: "keyword sprayIteration is undefined in dictionary ".../AAchenbomb/constant/sprayProperties"".
Does anyone known how to fix it? Thanks.

Sincerely,

Tao

wyldckat August 2, 2012 15:35

Greetings sanpishou and welcome to the forum!

Try using the information from the same tutorial for OpenFOAM 1.7.x: https://github.com/OpenCFD/OpenFOAM-...oam/aachenBomb

Best regards,
Bruno

sanpishou August 5, 2012 18:02

Hallo Bruno,

thanks for your reply. I tried the tutorial for OpenFOAM 1.7.1. but the same error happened again. Do I need to update my Openfoam version? I heard that the 1.6 -ext is relatively more stable.

Best Regards
Tao

wyldckat August 6, 2012 00:17

Hi Tao,

Something very strange is going on there with your cases... which exact tutorial are you trying to run and which commands are you running?

And are you 100% certain you're running the right binaries? Maybe you think you're running 1.6-ext, but in fact you're running OpenFOAM 2.1.1!?

Best regards,
Bruno

sanpishou August 6, 2012 04:21

Hi Bruno,

thanks for the quick reply. I'm running the tutorial for OpenFOAM 1.7.x in 1.6-ext version. I copied the display in the terminal below, hope you can find the problem.

Constructing Spray
--> FOAM Warning :
From function Cloud<ParticleType>::initCloud(const bool checkClass)
in file /build/buildd/openfoam-1.6-ext-1.6.0/OpenFOAM-1.6-ext/src/lagrangian/basic/lnInclude/CloudIO.C at line 125
Cannot read particle positions file
"/home/tao/Desktop/AAchenbomb/0/lagrangian/defaultCloud"
assuming the initial cloud contains 0 particles.
Selecting injectorType unitInjector
Selecting atomizationModel off
Selecting dragModel standardDragModel
Selecting evaporationModel standardEvaporationModel
Selecting heatTransferModel RanzMarshall
Selecting wallModel reflect
Selecting breakupModel ReitzKHRT
Selecting collisionModel off
Selecting dispersionModel off
Selecting injectorModel hollowConeInjector
Selecting pdfType RosinRammler


--> FOAM FATAL IO ERROR:
keyword sprayIteration is undefined in dictionary "/home/tao/Desktop/AAchenbomb/constant/sprayProperties"

file: /home/tao/Desktop/AAchenbomb/constant/sprayProperties from line 20 to line 148.

From function dictionary::subDict(const word& keyword)
in file db/dictionary/dictionary.C at line 475.

FOAM exiting



Regards
Tao

wyldckat August 7, 2012 08:02

Hi Tao,

This is very strange... which commit of 1.6-ext are you using? To know this, run in 1.6-ext's folder:
Code:

git log -n1
Best regards,
Bruno

sanpishou August 7, 2012 10:21

Hi Bruno,

I found a definition of sprayIteration (below) and added into the sprayProperties. It runs.
sprayIteration
{
sprayIterate 1;
sprayRelaxFactor 1;
minimumParcelMass 1e-14;
}

after a while this problem occurred:

From function specieThermo<thermo>::T(scalar f, scalar T0, scalar (specieThermo<thermo>::*F)(const scalar) const, scalar (specieThermo<thermo>::*dFdT)(const scalar) const) const
in file /build/buildd/openfoam-1.6-ext-1.6.0/OpenFOAM-1.6-ext/src/thermophysicalModels/specie/lnInclude/specieThermoI.H at line 73
Maximum number of iterations exceeded. Rescue by HJ


do you have a clue, how to fix it?

Regards
Tao

wyldckat August 7, 2012 10:27

Hi Tao,

I would have a better clue if you had answered my previous question :(
Quote:

Originally Posted by wyldckat (Post 375811)
This is very strange... which commit of 1.6-ext are you using? To know this, run in 1.6-ext's folder:
Code:

git log -n1

Best regards,
Bruno

sanpishou August 7, 2012 10:33

Hi Bruno,

this is what happened when I typed the code:
tao@tao-laptop:~$ git log -n1
fatal: Not a git repository (or any of the parent directories): .git

does this mean I have a big problem?

Regards
Tao

wyldckat August 7, 2012 10:47

The idea is to execute the command when working in OpenFOAM's folder:
Code:

cd /build/buildd/openfoam-1.6-ext-1.6.0/OpenFOAM-1.6-ext/
#or do
cd $WM_PROJECT_DIR
git log -1


sanpishou September 10, 2012 15:35

Nothing better
 
Hi Bruno,

still the same problem after vacation :(. I posted the command below. Can you help me find out a solution?

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


Reading thermophysicalProperties
Selecting psiChemistryModel ODEChemistryModel<gasThermoPhysics>
Selecting thermodynamics package hsPsiMixtureThermo<reactingMixture<gasThermoPhysic s>>
Selecting chemistryReader chemkinReader
Selecting chemistrySolver ode
ODEChemistryModel: Number of species = 5 and reactions = 1
Reading field U

Reading/calculating face flux field phi

Creating turbulence model.

Selecting turbulence model type RASModel
Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
C3 -0.33;
sigmak 1;
sigmaEps 1.3;
Prt 1;
}

Creating field DpDt


Reading g
Reading combustion properties

Constructing Spray
--> FOAM Warning :
From function Cloud<ParticleType>::initCloud(const bool checkClass)
in file /build/buildd/openfoam-1.6-ext-1.6.0/OpenFOAM-1.6-ext/src/lagrangian/basic/lnInclude/CloudIO.C at line 125
Cannot read particle positions file
"/home/tao/Aachenbomb/0/lagrangian/defaultCloud"
assuming the initial cloud contains 0 particles.
Selecting injectorType unitInjector
Selecting atomizationModel off
Selecting dragModel standardDragModel
Selecting evaporationModel standardEvaporationModel
Selecting heatTransferModel RanzMarshall
Selecting wallModel reflect
Selecting breakupModel ReitzKHRT
Selecting collisionModel off
Selecting dispersionModel off
Selecting injectorModel hollowConeInjector
Selecting pdfType RosinRammler


--> FOAM FATAL IO ERROR:
keyword sprayIteration is undefined in dictionary "/home/tao/Aachenbomb/constant/sprayProperties"

file: /home/tao/Aachenbomb/constant/sprayProperties from line 20 to line 148.

From function dictionary::subDict(const word& keyword)
in file db/dictionary/dictionary.C at line 475.

FOAM exiting

wyldckat September 10, 2012 17:20

Hi Tao,

You haven't answered which commit version you're using of 1.6-ext, as I asked in the previous post.

Best regards,
Bruno

sanpishou September 10, 2012 17:58

Hi Bruno,

i installed the 1.6-ext version under the guide of http://openfoamwiki.net/index.php/In...ucid_10.04_LTS .
Hope this helps. With the command "git log -1" still not work.

Regards
Tao

wyldckat September 11, 2012 16:57

Hi Tao,

:eek: That's a really old build of 1.6-ext!

You better follow the following instructions for getting a more recent version of 1.6-ext: http://openfoam-extend.git.sourcefor...Ubuntu;hb=HEAD

Best regards,
Bruno

sanpishou September 11, 2012 18:29

Hi Bruno,

really so old?:D Anyway, thanks for the new link.

I reinstalled ubuntu 10.04 and tried to install the new version. However it didn't work well. This was what happened after I tried to install git:

tao@tao-laptop:~$ sudo apt-get install git-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
git-core: Depends: liberror-perl but it is not installable
Depends: libdigest-sha1-perl but it is not installable
Recommends: patch but it is not installable
E: Broken packages


do you happen to know why? Thanks in advance!

Regards
Tao

wyldckat September 12, 2012 15:10

Hi Tao,

Does your Ubuntu machine have a working Internet connection?

Best regards,
Bruno

sanpishou September 13, 2012 17:44

Hi Bruno,

problem solved. Thanks for all your help.

Regards
Tao


All times are GMT -4. The time now is 11:01.