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

Running dieselFoam error

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree4Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   March 14, 2005, 06:20
Default Hi all, When trying to run
  #1
Member
 
Ervin Adorean
Join Date: Mar 2009
Posts: 68
Rep Power: 8
adorean is on a distinguished road
Hi all,

When trying to run dieselFoam, get this:

Exec : dieselFoam /home/ervin/OpenFOAM/ervin-1.0.2/run/tutorials/dieselFoam spray1
Date : Mar 14 2005
Time : 10:55:18
Host : isi014.mot.upv.es
PID : 3792
Root : /home/ervin/OpenFOAM/ervin-1.0.2/run/tutorials/dieselFoam
Case : spray1
Nprocs : 1
Create database

Create mesh for time = 0


Reading thermophysicalProperties
Selecting thermodynamics package hMixtureThermo<reactingmixture>
Selecting chemistryReader chemkinReader
Reading field U

Reading/calculating face flux field phi

Creating turbulence model.

Selecting turbulence model RNGkEpsilon
Creating field DpDt

Constructing chemical mechanism
Selecting ODE solver SIBS
chemistryModel::chemistryModel: Number of species = 5 and reactions = 1

Reading environmentalProperties
Reading combustion properties

Constructing Spray
Selecting injectorType unitInjector
Selecting atomizationModel blobsSheetAtomization
Selecting dragModel standardDragModel
Selecting evaporationModel off
Selecting heatTransferModel RanzMarshall
Selecting wallModel reflect
Selecting breakupModel ReitzKHRT
Selecting collisionModel trajectory
Selecting dispersionModel off
Selecting injectorModel constInjector
Average Velocity for injector 0: 357.207 m/s, injection pressure = 591.789 bar
Constructing two dimensional spray injection.Calculated angle of wedge is 4.99791 deg.

Max Courant Number = 0

Starting time loop


Max Courant Number = 0
deltaT = 5e-06

Time = 5e-06
Evolving Spray


... and ... nothing; it doesn't run.


My controlDict is:

// Foam Application Class
applicationClass dieselFoam;

// Start point of run
startFrom startTime;

// Calculation start time
startTime 0;

// End point of run
stopAt endTime;

// Calculation end time
endTime 0.002;

// Calculation time step
deltaT 2.5e-06;

// Type of write output control
writeControl timeStep;

// Interval with which the results are output
writeInterval 40;

// Limits number of time directories before overwriting
cycleWrite 0;

// Write Format
writeFormat ascii;

// Significant figures of written ASCII data
writePrecision 6;

// Write Compression
writeCompression uncompressed;

// Time directories name format
timeFormat general;

// Decimal precision of time directory names
timePrecision 6;

// Can parameters be modified during run time?
runTimeModifiable yes;

adjustTimeStep yes;

maxCo 1.0;

Can you please help me out?

Thanks

Ervin
adorean is offline   Reply With Quote

Old   March 14, 2005, 06:48
Default I have just run the dieselFoam
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 13
henry is on a distinguished road
I have just run the dieselFoam tutorial case with OpenFOAM-1.1 and it ran fine.
henry is offline   Reply With Quote

Old   March 14, 2005, 07:36
Default Hi, Now I have installed Op
  #3
Member
 
Ervin Adorean
Join Date: Mar 2009
Posts: 68
Rep Power: 8
adorean is on a distinguished road
Hi,

Now I have installed OpenFOAM-1.1 and I still got the same problems of missing entries in the dieselFOAM - aachenBomb case as in 1.0.2.

I have installed OpenFOAM-1.1 as it sais on the web page and readme.

When opening FoamX get these errors:

Non-optional dictionary entry 'runTimeModifiable' not found in dictionary
/home/ervin/OpenFOAM/ervin-1.0.2/run/tutorials/dieselFoam/aachenBomb/system/cont rolDict
in file /home/ervin/OpenFOAM/ervin-1.0.2/run/tutorials/dieselFoam/aachenBomb/system/cont rolDict
start at line 25 ending at line 55

Non-optional dictionary entry 'div((phi|interpolate(rho)),p)' not found in dictionary
/home/ervin/OpenFOAM/ervin-1.0.2/run/tutorials/dieselFoam/aachenBomb/system/fvSc hemes::divSchemes
in file /home/ervin/OpenFOAM/ervin-1.0.2/run/tutorials/dieselFoam/aachenBomb/system/fvSc hemes::divSchemes
start at line 38 ending at line 51

... etc.

How is it possible? What am I doing wrong?

Thank for your help

Ervin
adorean is offline   Reply With Quote

Old   March 14, 2005, 07:38
Default The foamInstallationTest is th
  #4
Member
 
Ervin Adorean
Join Date: Mar 2009
Posts: 68
Rep Power: 8
adorean is on a distinguished road
The foamInstallationTest is this:

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: isi014.mot.upv.es
OS: Linux version 2.6.3-7mdk
User: ervin
User_config: /home/ervin/.bashrc
Foam_config: /home/ervin/.OpenFOAM-1.1/bashrc sourced correctly.
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/ervin/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/ervin/OpenFOAM/ervin-1.1 yes no
$FOAM_JOB_DIR /home/ervin/OpenFOAM/jobControl no yes
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/ervin/OpenFOAM/OpenFOAM-1.1 yes yes yes

$FOAM_USER_APPBIN .../ervin-1.1/applications/bin/linuxOpt yes yes no
$FOAM_APPBIN ...enFOAM-1.1/applications/bin/linuxOpt yes yes yes
$WM_DIR /home/ervin/OpenFOAM/OpenFOAM-1.1/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes
$CEI_HOME /usr/local/ensight/CEI no no

$JAVA_PATH /home/ervin/OpenFOAM/linux/j2sdk1.4.2_05 yes yes no
$MICO_ARCH_PATH ...1/src/mico-2.3.11/platforms/linuxOpt yes yes yes
$LAM_ARCH_PATH ...1.1/src/lam-7.1.1/platforms/linuxOpt yes yes yes
$MPICH_ARCH_PATH --------- env variable not set --------- no
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...n/OpenFOAM/OpenFOAM-1.1/lib/linuxOpt yes yes yes
$FOAM_USER_LIBBIN ...rvin/OpenFOAM/ervin-1.1/lib/linuxOpt yes yes no
$LAM_ARCH_PATH ...1.1/src/lam-7.1.1/platforms/linuxOpt yes yes yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 3.4.3 /home/ervin/OpenFOAM/linux/gcc-3.4.3/bin/gcc
java 1.4.2_05 /home/ervin/OpenFOAM/linux/j2sdk1.4.2_05/bin/java
gzip 1.2.4 (18 Aug 93)
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H
gzip /usr/bin/gzip
tar /bin/tar
icoFoam ...penFOAM/OpenFOAM-1.1/applications/bin/linuxOpt/icoFoam
-------------------------------------------------------------------------------


Checking file/directory permissions...
-------------------------------------------------------------------------------
File/directory Set Reqd Crit
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_isi014.mot.upv.es Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the Foam enviroment.

-------------------------------------------------------------------------------

Base configuration ok.

Critical systems ok.


Ervin
adorean is offline   Reply With Quote

Old   March 14, 2005, 07:43
Default The aachenBomb tutorial has no
  #5
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 13
henry is on a distinguished road
The aachenBomb tutorial has not been corrected for FoamX although it does run fine, try the Allrun script to check it on your machine.

The problems with this tutorial and FoamX have been reported before and I was told I would receive a set of correction for it but they have not been posted to my knowledge and hence not included in the 1.1 release. As soon as I receive the corrected files I will include them for the next release.
henry is offline   Reply With Quote

Old   March 14, 2005, 08:03
Default Hello Henry, It's running.
  #6
Member
 
Ervin Adorean
Join Date: Mar 2009
Posts: 68
Rep Power: 8
adorean is on a distinguished road
Hello Henry,

It's running.
Thanks for this tip. Now I understand.
The one who said that will correct this case for FoamX was me, but I couldn't finish it yet.

So, one more question:
If the case is running correctly from the command line it means that the entries in these tutorial files are correct and the FoamX configuration file needs to be modified? Which one is it?

Thank you

Ervin
adorean is offline   Reply With Quote

Old   March 14, 2005, 08:12
Default FoamX show there are missing e
  #7
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 13
henry is on a distinguished road
FoamX show there are missing entries in the tutorial files as indicated by the error messages but the code can still run because these entries are optional and default values are assumed if they are not present. FoamX does not currently have a concept of optional entries in dictionaries and so they must be complete. Unfortunately this tutorial was created by someone who does not use FoamX (you can own-up if your want to, we know who you are...) and all the dictionaries were written by hand starting from an existing case and so no checking was done to make sure it was compatible with FoamX.

Now that we have a large number of users I hope these error will be found and corrected quickly for the benefit of all future users.
henry is offline   Reply With Quote

Old   March 14, 2005, 08:15
Default Or, if the case has to be corr
  #8
Member
 
Ervin Adorean
Join Date: Mar 2009
Posts: 68
Rep Power: 8
adorean is on a distinguished road
Or, if the case has to be corrected, than I was adding the missing entries in the dictionary files of the case, but I don't know the values for some. For example: ft, fu, A.

Thanks
adorean is offline   Reply With Quote

Old   March 14, 2005, 08:17
Default OK. Thanks Ervin
  #9
Member
 
Ervin Adorean
Join Date: Mar 2009
Posts: 68
Rep Power: 8
adorean is on a distinguished road
OK.

Thanks

Ervin
adorean is offline   Reply With Quote

Old   March 14, 2005, 08:24
Default OK, I will take a look at it l
  #10
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 13
henry is on a distinguished road
OK, I will take a look at it later and post the necessary changes.
henry is offline   Reply With Quote

Old   March 14, 2005, 16:52
Default The current FoamX configuratio
  #11
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 13
henry is on a distinguished road
The current FoamX configuration files for dieselFoam correspond to a very old version which used a very simple combustion model. The new dieselFoam supplied by Niklas Nordin user his multicomponent mixture spray model and a combustion model including complex chemistry. Unfortunately no one has had the time to update the FoamX configuration files for these developments and it looks like a substantial effort because not even the current spray modelling has up-to-date FoamX support. So unless you are someone else has the time to spend on the task of updating the FoamX configuration files users of dieselFoam will have to edit the contol dictionaries by hand at least for now.
henry is offline   Reply With Quote

Old   October 20, 2005, 12:18
Default Hi Guys I need a help. I'm
  #12
Member
 
Wladimyr Mattos da Costa Dourado
Join Date: Mar 2009
Location: Sao Jose dos Campos, SP, Brazil
Posts: 36
Rep Power: 8
mattos is on a distinguished road
Hi Guys

I need a help. I'm testing the dieselFoam solver with the aachenBomb tutorial case and I have problems trying to restart it. If I put to run with the controldict such that:

startFrom firstTime;

I have not problem and the case runs. But when I put the case to restart using, for example:

startFrom startTime;

startTime 5e-05;

The solver crashes and the following message apears in the output.

==========================================
.
.
.

Evolving Spray

--> FOAM FATAL ERROR : attempt to use janafThermo<equationofstate> out of temperature range 200 -> 5000; T = 1.46567e+161

From function janafThermo<equationofstate>::checkT(const scalar T) const
in file /home/dm2/henry/OpenFOAM/OpenFOAM-1.2/src/thermophysicalModels/specie/lnInclude/ janafThermoI.H at line 73.

FOAM aborting
======================================

I tested using either binary as ascii writeformat and both does not work. Could somebody help me?

Many tanks in advance

Wladimyr
mattos is offline   Reply With Quote

Old   October 22, 2005, 06:14
Default hi! I am running the aachen b
  #13
New Member
 
saeid kheradmand
Join Date: Mar 2009
Posts: 13
Rep Power: 8
skherad is on a distinguished road
hi!
I am running the aachen bomb tutorial. the Time is now 0.015 and the CO2 file in time directories(eg 0.0149) shows nothing. I think there is no reaction in this case(is it right?). only a reduction in temperature(caused by evaporation)
thank you for your time
skherad is offline   Reply With Quote

Old   October 22, 2005, 06:27
Default hi! I am running the aachen b
  #14
New Member
 
saeid kheradmand
Join Date: Mar 2009
Posts: 13
Rep Power: 8
skherad is on a distinguished road
hi!
I am running the aachen bomb tutorial. the Time is now 0.015 and the CO2 file in time directories(eg 0.0149) shows nothing. I think there is no reaction in this case(is it right?). only a reduction in temperature(caused by evaporation)
thank you for your time
skherad is offline   Reply With Quote

Old   October 22, 2005, 06:38
Default sorry it works the chemistry
  #15
New Member
 
saeid kheradmand
Join Date: Mar 2009
Posts: 13
Rep Power: 8
skherad is on a distinguished road
sorry
it works
the chemistry was off
sorry
skherad is offline   Reply With Quote

Old   October 24, 2005, 07:01
Default Did anyone manage to post-proc
  #16
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Did anyone manage to post-process the spray-particles when working with the 1.2 version? When running dieselFoam v1.2 on the aachenBomb tutorial the only file that is written to the lagrangian-subDirectories of the time directories is positions. When running v1.1 on the same case (fvSchemes had to be replaced) a lot more files get written (T, U etc).

If there is only a positions-file foamToVTK doesn'T create any data for the particles (which is OK, because the positions alone are not very interesting). Without that data they can't be visualized (of course)

Is this non-creation of files a problem of

* the lagrangian code in the library
* dieselFoam itself
* wrong configuration in the tutorial
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 24, 2005, 14:08
Default There should be no difference
  #17
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
There should be no difference between 1.1 lagrangian data and 1.2. So it still should write mulitple files to the lagrangian/ directory.

Sounds like the tutorial configuration is different.

Can you figure out what is going wrong and send an update?
mattijs is offline   Reply With Quote

Old   October 24, 2005, 18:26
Default I didn't stress that enough in
  #18
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
I didn't stress that enough in my first posting: I ran the v1.1-dieselFoam on the v1.2-case (I just replaced the fvSchemes-file with the one from the v1.1-tutorial) and it worked.

I compared the two tutorials anyway and the only significant change seems to be in thermophysicalProperties: burntProducts1 and stoechiometricAirFuelMassRatio1 were removed
(but as the v1.1-solver has no problem with that I think it wasn't important in v1.1)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 25, 2005, 10:22
Default I compared the diesel(Engine)F
  #19
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
I compared the diesel(Engine)Foam-solver code too. I didn't find any changes there that I would blame for that problem.

I then compared the src/lagrangian-files from the 1.1 and the 1.2 distribution and stumbled upon the following thing in parcelIO.C (apart from that I didn't find any changes of interest for that particular problem):

The Cloud<parcel>::readFields() and Cloud<parcel>::writeFields() (which seem to be in charge of outputing the missing fields) are marked as template specialisations (with template<>) in the new release.

Could this be the problem?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 26, 2005, 05:26
Default Should not be a problem. Is ju
  #20
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Should not be a problem. Is just for some compilers' sake.

Have you tried putting some Info statements in there to see if they get called? Or compile with debug and run through ddd/gdb and sprinkle some breakpoints around.
mattijs is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DieselFoam Spray Evaporation Continuity Error spv24 OpenFOAM Running, Solving & CFD 14 December 30, 2010 11:50
ERROR IN RUNNING THE FIRST EXAMPLE marhamat OpenFOAM Installation 8 August 27, 2006 04:13
FIDAP RUNNING ERROR "ERROR-DIR-NOT-EMPTY=145" BAOYU FLUENT 0 January 26, 2006 19:32
DieselFoam error turbulent dispersion adorean OpenFOAM Running, Solving & CFD 6 April 22, 2005 06:55
error while running UDF murthy FLUENT 1 October 22, 2001 05:02


All times are GMT -4. The time now is 22:52.