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

Error Writing Foam data

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 29, 2005, 19:48
Default Hello, I compiled lesI
  #1
Member
 
Join Date: Mar 2009
Posts: 43
Rep Power: 8
vatant is on a distinguished road
Hello,


I compiled lesInterfoam and started my case. I go t the following error:

--> FOAM FATAL IO ERROR : cannot open file

file: ../tutorials/lesInterFoam/jetbreak/2.18818e-09/pd at line 0.

Function: regIOobject::readStream(const word&)
in file: db/regIOobject/regIOobjectRead.C at line: 68.

FOAM exiting


What is going wrong here ? I copied the available case file nozzleflow2d into another case file and ran the simulation.

Also, I want to know if the currently existing LES simulation can be used for compressible liquids ?


Thanks

Vatant
vatant is offline   Reply With Quote

Old   March 30, 2005, 03:35
Default Is 2.18818e-09 your start time
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 13
henry is on a distinguished road
Is 2.18818e-09 your start time or did this error occur after a while?

Try switching off runTimeModifiable in controlDict.

lesInterfoam is written based on interFoam which is an incompressible VOF code.
henry is offline   Reply With Quote

Old   March 30, 2005, 10:02
Default My start Time is zero and afte
  #3
Member
 
Join Date: Mar 2009
Posts: 43
Rep Power: 8
vatant is on a distinguished road
My start Time is zero and after the first iteration I got this error.(i started with default initial time step of 1e-08).

Also, given a volScalarField, is it possible to convert it to a dimensionedScalar at the given cell?


Thanks

Vatant
vatant is offline   Reply With Quote

Old   March 30, 2005, 10:07
Default Did switching off runTimeModif
  #4
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 13
henry is on a distinguished road
Did switching off runTimeModifiable work?

The cell value returned by [] is a scalar but you can convert it into a dimensionedScalar:

dimensionedScalar(field.name(), field.dimensions(), field[celli])
henry is offline   Reply With Quote

Old   March 30, 2005, 11:57
Default No, i tried to switch off my r
  #5
Member
 
Join Date: Mar 2009
Posts: 43
Rep Power: 8
vatant is on a distinguished road
No, i tried to switch off my runtimeModifiable in controlDict.

Also, i reduced my time step size and got the same problem.

--> FOAM FATAL IO ERROR : cannot open file

file: ../run/tutorials/lesInterFoam/jetbreak/2.18818e-09/pd at line 0.

Function: regIOobject::readStream(const word&)
in file: db/regIOobject/regIOobjectRead.C at line: 68.

FOAM exiting



Is there a way to test whats wrong with writing file options ?


Thanks



Vatant
vatant is offline   Reply With Quote

Old   March 30, 2005, 13:52
Default How often are you writing resu
  #6
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 13
henry is on a distinguished road
How often are you writing results? Every time step?

Are you writing to the disk on the machine you are running on?
henry is offline   Reply With Quote

Old   March 30, 2005, 15:58
Default I am writing every 1e-06 time
  #7
Member
 
Join Date: Mar 2009
Posts: 43
Rep Power: 8
vatant is on a distinguished road
I am writing every 1e-06 time step as default indicated in Foam. I tried to decrease time steps, clear data storage etc..still had the same problem.

I might want to add some modication that I inserted and compiled in the multiphase/lesInterFoam.

In the pressure equation. pEqn.H i added an extra term computing ddt(pd)

fvm::laplacian(rUAf, pd) == fvc::div(phi)+comp*fvm::ddt(pd)

where comp = a volScalarField type

Do you think this formulation is creating any problem ?


Thanks

Vatant
vatant is offline   Reply With Quote

Old   March 30, 2005, 16:05
Default I doubt it but I guess you hav
  #8
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 13
henry is on a distinguished road
I doubt it but I guess you have tried with out it to check.
henry is offline   Reply With Quote

Old   March 30, 2005, 17:47
Default Hi Vatant, about your writi
  #9
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Hi Vatant,

about your writing problems: have you tried increasing the writePrecision? (6 by default)

You say you are writing every 1E-6 but your error lists 2.18818e-09 so I guess your time step gets adapted and becomes very small. There might also be problems when you hit timesteps on the order of 1E-15.
mattijs is offline   Reply With Quote

Old   March 30, 2005, 21:24
Default I set the write precision to 8
  #10
Member
 
Join Date: Mar 2009
Posts: 43
Rep Power: 8
vatant is on a distinguished road
I set the write precision to 8. My minimal dt = 1e-09 and i enforce the courant condition ~ 0.5 actually decreased to 0.2 to check the difference.

Do you think, it has anything to do with files mismanagement ..im sure I have no problem but if you think I should look into the files system again.

I was thinking that this error was due to error in reading dictionary or objects like in correctPhi.H ,,where pd.objects() comes into calculations.

Any thoughts about this Dr.Weller ?
vatant is offline   Reply With Quote

Old   March 31, 2005, 03:34
Default Do you get the same problem wh
  #11
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 13
henry is on a distinguished road
Do you get the same problem when running standard lesInterFoam on the same case?
henry is offline   Reply With Quote

Old   March 31, 2005, 20:44
Default I dint make a backup copy ..i
  #12
Member
 
Join Date: Mar 2009
Posts: 43
Rep Power: 8
vatant is on a distinguished road
I dint make a backup copy ..i however tried to recompile lesInterFoam to see what is the cause of the problem.

I got it compiled but had the following warnings:

createFields.H: In function `int main(int, char**)':
createFields.H:2: warning: unused variable 'nGammaCorr'
createFields.H:7: warning: unused variable 'nGammaSubCycles'
createFields.H:2: warning: unused variable 'nGammaCorr'
createFields.H:7: warning: unused variable 'nGammaSubCycles'
../OpenFOAM/OpenFOAM-1.0/src/cfdTools/lnInclude/readPISOControls.H:3: warning: unused variable 'nCorr'


Could you help me fixing these warnings ? or is it ok to have these warnings during compilation.



Regards,



Vatant
vatant is offline   Reply With Quote

Old   April 1, 2005, 13:32
Default I made some changes and remove
  #13
Member
 
Join Date: Mar 2009
Posts: 43
Rep Power: 8
vatant is on a distinguished road
I made some changes and removed some errors except one with the 'ncorr'. In the createFields.H, i inserted a volScalarField...

volScalarField scalar
(
IOobject
(
"scalar"
runTime.timeName(),
runTime,
IOobject::NO_READ
IOobject::NO_WRITE
)
(..)
)
I compiled the code and used this volScalarfield in calculation.

The code ran but gave the following error:

--->FOAM Warning : ObjectRegistry::checkIn(regIOobject&):
Registering object '..' with objectRegistry 'time'
This is only appropriate for registering the regions of a multi-region computation or in other special circumstances.
otherwise please register this object with it's region (mesh)


If we create a volScalarField how should it be registered to Mesh type ?


Vatant
vatant is offline   Reply With Quote

Old   April 1, 2005, 14:36
Default This issue is covered in the r
  #14
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 13
henry is on a distinguished road
This issue is covered in the release notes:

OpenFOAM-1.1/ReleaseNotes-1.1
henry is offline   Reply With Quote

Old   April 5, 2005, 11:41
Default Thanks Dr.Weller, I was able t
  #15
Member
 
Join Date: Mar 2009
Posts: 43
Rep Power: 8
vatant is on a distinguished road
Thanks Dr.Weller, I was able to Fix the changes. I have another question on fixing patches.

I converted a fluentMesh to foam and wanted a liquid inlet for simulating a jet using lesInterFoam. In gamma BC, I set inlet value = 1
and then started the code.

In the beginning, i got a message

No Target Patch Present.

My code ran for some time and diverged. Same code that I ran for the test case converged.

In my case, I have flow travelling a small distance inside nozzle and then ejecting into air, while in the les test case, you have a patch field set up.

Do I have to set any patch field ,for a case like simulating a flow coming out of a nozzle ?

I modified all the variables : the inlet was a pressure inlet not an velocity inlet.

Also, Dr.weller, How do you initialize K with given U value in the inlets ? (relation between K and U ?? ) If it is a pressure inlet , how to initialize K ?

In my case, I modified K to a very low value , since the pressure chamber has total pressure associated with it.


Thanks


Vatant
vatant 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
Writing data from Posdat SJ CD-adapco 1 December 8, 2008 06:49
Writing data after every timestep Sri FLUENT 3 March 8, 2007 13:33
Writing out specific data from FLUENT kui FLUENT 1 November 7, 2006 21:33
Writing DATA in Fieldview CFDtoy FieldView 0 February 8, 2006 13:08
writing data to file using UDF sawa FLUENT 0 November 8, 2005 06:51


All times are GMT -4. The time now is 21:58.