|
[Sponsors] |
March 29, 2005, 19:48 |
Hello,
I compiled lesI
|
#1 |
Member
Join Date: Mar 2009
Posts: 43
Rep Power: 17 |
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 |
|
March 30, 2005, 03:35 |
Is 2.18818e-09 your start time
|
#2 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
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. |
|
March 30, 2005, 10:02 |
My start Time is zero and afte
|
#3 |
Member
Join Date: Mar 2009
Posts: 43
Rep Power: 17 |
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 |
|
March 30, 2005, 10:07 |
Did switching off runTimeModif
|
#4 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
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]) |
|
March 30, 2005, 11:57 |
No, i tried to switch off my r
|
#5 |
Member
Join Date: Mar 2009
Posts: 43
Rep Power: 17 |
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 |
|
March 30, 2005, 13:52 |
How often are you writing resu
|
#6 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
How often are you writing results? Every time step?
Are you writing to the disk on the machine you are running on? |
|
March 30, 2005, 15:58 |
I am writing every 1e-06 time
|
#7 |
Member
Join Date: Mar 2009
Posts: 43
Rep Power: 17 |
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 |
|
March 30, 2005, 16:05 |
I doubt it but I guess you hav
|
#8 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
I doubt it but I guess you have tried with out it to check.
|
|
March 30, 2005, 17:47 |
Hi Vatant,
about your writi
|
#9 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
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. |
|
March 30, 2005, 21:24 |
I set the write precision to 8
|
#10 |
Member
Join Date: Mar 2009
Posts: 43
Rep Power: 17 |
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 ? |
|
March 31, 2005, 03:34 |
Do you get the same problem wh
|
#11 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
Do you get the same problem when running standard lesInterFoam on the same case?
|
|
March 31, 2005, 20:44 |
I dint make a backup copy ..i
|
#12 |
Member
Join Date: Mar 2009
Posts: 43
Rep Power: 17 |
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 |
|
April 1, 2005, 13:32 |
I made some changes and remove
|
#13 |
Member
Join Date: Mar 2009
Posts: 43
Rep Power: 17 |
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 |
|
April 1, 2005, 14:36 |
This issue is covered in the r
|
#14 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
This issue is covered in the release notes:
OpenFOAM-1.1/ReleaseNotes-1.1 |
|
April 5, 2005, 11:41 |
Thanks Dr.Weller, I was able t
|
#15 |
Member
Join Date: Mar 2009
Posts: 43
Rep Power: 17 |
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Writing data from Posdat | SJ | Siemens | 1 | December 8, 2008 05:49 |
Writing data after every timestep | Sri | FLUENT | 3 | March 8, 2007 12:33 |
Writing out specific data from FLUENT | kui | FLUENT | 1 | November 7, 2006 20:33 |
Writing DATA in Fieldview | CFDtoy | FieldView | 0 | February 8, 2006 12:08 |
writing data to file using UDF | sawa | FLUENT | 0 | November 8, 2005 05:51 |