CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

[groovyBC] How to implement Inlet velocity which varies with the pressure?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2019, 14:21
Default [groovyBC] How to implement Inlet velocity which varies with the pressure?
  #1
New Member
 
Felipe Chagas
Join Date: Feb 2019
Posts: 11
Rep Power: 7
fchagas is on a distinguished road
Hello guys,

I am trying to implement in openfoam a boundary condition with the groovyBC tool.

I'm using interFoam to study a two-phase gas-liquid flow, where initially there was only liquid and the gas comes in after a certain period.

In my problem, inlet velocity depends on the hydrostatic pressure in the inlet, which in turn varies according to the amount of gas that enters the domain.

That is, the inlet velocity which the gas enters depends on the pressure, which in turn depends on the amount of gas that has already entered the domain.

The equation is the following:

Q=2*pi*k*H*(Pform-Pbot)/(mi*log(d1/d2))

Where pi,k,H,Pform,d1 and d2 are CONSTANT values, and Pbot is suppose to be the hydrostatic pressure in front of the inlet boundary face.


My question is:

How do I use the pressure field calculated by interfoam at each moment, to use in the referred equation and find the value of variable Q?

Thanks in advance!!
fchagas is offline   Reply With Quote

Old   September 3, 2019, 21:30
Default
  #2
New Member
 
Felipe Chagas
Join Date: Feb 2019
Posts: 11
Rep Power: 7
fchagas is on a distinguished road
Thank you all. I've got it.
fchagas is offline   Reply With Quote

Old   October 11, 2020, 22:18
Default
  #3
New Member
 
zhuoyao lv
Join Date: May 2020
Posts: 1
Rep Power: 0
lvzy is on a distinguished road
I encountered the same problem as you. When setting the boundary condition of scalar C, the value of scalar B is needed, and B is updated over time. How do I get the value of B when setting the boundary condition of C?
lvzy 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 Inlet VS velocity Inlet difference Mohsin FLUENT 9 January 4, 2021 10:34
outlet pressure Boundary settings -velocity streamline under ambient temp.conditions Vishnu_bharathi CFX 12 November 21, 2017 06:56
UDF to set velocity and pressure in inlet GerardX89 Fluent UDF and Scheme Programming 0 July 16, 2012 10:15
Set inlet velocity and pressure in cavitational model GerardX89 FLUENT 1 July 5, 2012 16:17
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 02:15


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