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

hydrostatic pressure initializing

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By kmefun

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2016, 14:52
Unhappy hydrostatic pressure initializing
  #1
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
Hi foamers!
i got confused to set hydrostatic pressure condition in a tank, i have a tank full of water with a little nozzle in bottom of it. so hydrostatic presuure condition should be set in the internal field of the tank . how can i make it ? is that should be defined in BC or in internal field? i guess the second one has more physical sense, but internalField just accepts one value or nonuniform value as list.
so i cant set this condition by nonuniformlist(obviously!!!)
so ???
thank u very much
sinatahmooresi is offline   Reply With Quote

Old   May 19, 2016, 17:47
Default
  #2
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 12
kmefun is on a distinguished road
You can use funkySetFields in swak4Foam to initialise a pressure field gradient due to gravity as following link
https://openfoamwiki.net/index.php/C...ression_syntax
sinatahmooresi likes this.
kmefun is offline   Reply With Quote

Old   May 20, 2016, 02:27
Default
  #3
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
Hi Kaufman!
thank u very much, i visited the page and i found that my bison v is 3.0.2 ( enough for using funkysetFields) but how can i make it to use after i checked the version of bison ?
thank u very much
sinatahmooresi is offline   Reply With Quote

Old   May 20, 2016, 03:47
Default
  #4
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
Hi Kaufman again!
i compile the swak4Foam and funkysetFields . it is done ( for now )!
now I"m trying to set my case with this i hope to get it worked
again, thank u !
sinatahmooresi is offline   Reply With Quote

Old   May 20, 2016, 10:31
Default
  #5
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 12
kmefun is on a distinguished road
Good to hear that. You can get enough informations to make it work form the openfoamwiki or search key word "funkysetFields" in this forum.
kmefun is offline   Reply With Quote

Old   May 21, 2016, 04:07
Default
  #6
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
Hi Kaufamn!
i did initializing very good! but when i run the case it seems to solver ignores my first initial condition ( that i set up with funkySetFields) and it starts to demonstrate wrong value of p ( but still gradient is correct) so do u know what is going on ?
thank u
sinatahmooresi is offline   Reply With Quote

Old   May 23, 2016, 11:36
Default
  #7
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 12
kmefun is on a distinguished road
I guess the reason made this happen might be your boundary conditions. The interior field will be updated according to your boundary conditions setup. It will be easier to find problems if you post your test case.
kmefun is offline   Reply With Quote

Old   May 23, 2016, 16:02
Default
  #8
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
Hi!
which part of dictionaries could be helpful?
i guess p and p_rgh could be.
i have tank full of water and it has a nozzle as a nozzle and the two symmetry wall and the rests are walls and i should say the front part of tank can be wall or outlet ( no difference) and i put the top BC symmetry and it could be atmosphere or wall also.
Regards
p:
dimensions [1 -1 -2 0 0 0 0];

internalField uniform 0;


boundaryField
{
bed
{
type calculated;
value $internalField;


}
atm
{
type calculated;
value $internalField;
}
symmetryis
{
type symmetry;
}
back
{
type calculated;
value $internalField;



}
outlet
{


type calculated;
value $internalField;
}
inlet
{
type calculated;
value $internalField;

}
}

p_rgh:
dimensions [1 -1 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
bed
{
type fixedFluxPressure;
value $internalField;
}
atm
{
type fixedFluxPressure;
value $internalField;
}
symmetryis
{
type symmetry;
}
back
{
type fixedFluxPressure;
value $internalField;
}
outlet
{


type prghPressure;
p $internalField;
value $internalField;
}
inlet
{
type fixedFluxPressure;

}
}
sinatahmooresi is offline   Reply With Quote

Old   May 24, 2016, 09:49
Default
  #9
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 12
kmefun is on a distinguished road
Hi,
The problem "might" be that you clamped $internalField for boundary conditions as its initial values. The funkySetFields does initiate internal field but not boundary conditions. Instead of using internalField as initial values for boundary conditions, you can try assign a piratical values as initial value for some boundary condition. This is what I guess/suggest based on the information you provided.
Good luck,

Last edited by kmefun; May 24, 2016 at 18:17.
kmefun is offline   Reply With Quote

Reply


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
Pressure Outlet Guage pressure Mohsin FLUENT 36 April 29, 2016 17:16
Initializing a Pressure Vessel jws FLUENT 2 August 26, 2015 03:33
Hydrostatic pressure - Buoyant Flow MissCFD CFX 6 June 21, 2015 06:26
hydrostatic pressure influence pdz711 FLUENT 0 June 17, 2008 22:33
hydrostatic pressure in bouyant flow Atit CFX 3 May 31, 2006 07:38


All times are GMT -4. The time now is 20:33.