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

TimeVaryingUniformFixedValue does not work as a pressureInlet with sonicLiquidFoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 13, 2008, 10:12
Default I also have the exactly simila
  #1
Senior Member
 
Nishant
Join Date: Mar 2009
Location: Glasgow, UK
Posts: 166
Rep Power: 17
nishant_hull is on a distinguished road
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
__________________
Thanks and regards,

Nishant
nishant_hull is offline   Reply With Quote

Old   May 13, 2008, 11:40
Default Hello there, A good day to
  #2
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
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
philippose is offline   Reply With Quote

Old   May 13, 2008, 12:20
Default well.. Thanks for the reply Ph
  #3
Senior Member
 
Nishant
Join Date: Mar 2009
Location: Glasgow, UK
Posts: 166
Rep Power: 17
nishant_hull is on a distinguished road
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
__________________
Thanks and regards,

Nishant
nishant_hull is offline   Reply With Quote

Old   May 13, 2008, 21:29
Default Hi. Thanks for your reply, Phi
  #4
New Member
 
Martin/Run DU
Join Date: Mar 2009
Location: Hong Kong
Posts: 25
Rep Power: 17
chnrdu is on a distinguished road
Send a message via Skype™ to chnrdu
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
__________________
rdu
------------------
Martin/Run Du
chnrdu is offline   Reply With Quote

Old   May 14, 2008, 09:05
Default Martin, It works well with
  #5
Senior Member
 
Nishant
Join Date: Mar 2009
Location: Glasgow, UK
Posts: 166
Rep Power: 17
nishant_hull is on a distinguished road
Martin,

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

regards,

Nishant
__________________
Thanks and regards,

Nishant
nishant_hull is offline   Reply With Quote

Old   May 21, 2008, 08:54
Default Hi, Nishant, I find the cause.
  #6
New Member
 
Martin/Run DU
Join Date: Mar 2009
Location: Hong Kong
Posts: 25
Rep Power: 17
chnrdu is on a distinguished road
Send a message via Skype™ to chnrdu
Hi, Nishant, I find the cause.

Please see www.durun.cn/?p=364
__________________
rdu
------------------
Martin/Run Du
chnrdu is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeVaryingUniformFixedValue holger_marschall OpenFOAM Running, Solving & CFD 4 August 10, 2013 14:47
TimeVaryingUniformFixedValue BC in foam 15 nzy102 OpenFOAM Running, Solving & CFD 5 August 19, 2008 08:08
TimeVaryingUniformFixedValue with sonicLiquidFoam Bugs amp Fixes chnrdu OpenFOAM Bugs 1 May 21, 2008 09:52
Changing area with a random value of pressureinlet M-Ray FLUENT 0 May 16, 2008 02:48
PressureInlet christian OpenFOAM Running, Solving & CFD 1 February 13, 2008 15:03


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