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/)
-   -   TimeVaryingUniformFixedValue does not work as a pressureInlet with sonicLiquidFoam (http://www.cfd-online.com/Forums/openfoam-solving/58870-timevaryinguniformfixedvalue-does-not-work-pressureinlet-sonicliquidfoam.html)

nishant_hull May 13, 2008 10:12

I also have the exactly simila
 
I also have the exactly similar problem with rhoSonicFoam...!!!
Though the inlet.dat file is there at the same location. can anybody please find out where we should look to make it correct. because we could not be able to use a complete solver for our specific work.

regards,
Nishant

philippose May 13, 2008 11:40

Hello there, A good day to
 
Hello there,

A good day to you :-)!

As far as I remember right, when specifying the file for the timeVaryingUniformFixedValue boundary condition, OpenFOAM assumes that the folder to find the file, is the folder from where you ran the simulation command.... for example...

if my simulation is being run from the folder:

/home/user/OpenFOAM/user-1.4.1/run/

and the simulation case is called:

test_v01

and if you go to the above run folder, and use the following standard line to start your simulation:

sonicLiquidFoam . test_v01

then, the file "inlet.dat" should be in the "run" folder, and not somewhere within the simulation case folders.

If you place the file "inlet.dat" in the root folder of your simulation case by changing the condition to:

F1
{
type timeVaryingUniformFixedValue;
timeDataFileName "./test_v01/inlet.dat";
value uniform 1e+5;
}

and then try running the simulation as I mentioned earlier, things would work.

Moral of the story... As far as I have understood, the safest is to specify the file in the boundary specifiation, is to give the complete absolute path... then you can start the simulation from any folder.

Hope this provides some help... if not, let me know...

Have a nice day!

Philippose

nishant_hull May 13, 2008 12:20

well.. Thanks for the reply Ph
 
well.. Thanks for the reply Philippose.
I am already doing as you suggested. Its working fine with rhopsonicfoam solver. But the rhoSonicFoam solver particularly is not recognizing the file's format, i think.
the format of the file i am using is:
(
t0 p0
..
..
tn pn
)
This format work fine with rhopSonicFoam solver.

however, if i remove the file inlet.dat from the directory then it complains that there is no inlet.dat file but currently its not giving the name.. just a "".

nishant

chnrdu May 13, 2008 21:29

Hi. Thanks for your reply, Phi
 
Hi. Thanks for your reply, Philippose.

It doesn't work with sonicLiquidFoam. I tried your filename format, it prompted the same:

--> FOAM FATAL IO ERROR : file "" does not exist

file: at line 1.

From function IFstream::operator()
in file db/IOstreams/Fstreams/IFstream.C at line 171.

FOAM exiting

I did place the data file in all the subdirectories of the case, and also copied it to the same father-directory of the case.

Martin/Run DU

nishant_hull May 14, 2008 09:05

Martin, It works well with
 
Martin,

It works well with rhopSonicFoam, if that solver of any help for your problem. It doesnot work with rhoSonicFoam or rhoLiquidFoam.

regards,

Nishant

chnrdu May 21, 2008 08:54

Hi, Nishant, I find the cause.
 
Hi, Nishant, I find the cause.

Please see www.durun.cn/?p=364


All times are GMT -4. The time now is 02:27.