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

Constant mass flow rate boundary condition

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 2018, 23:45
Default Constant mass flow rate boundary condition
  #1
Senior Member
 
sahm's Avatar
 
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 16
sahm is on a distinguished road
Hi everyone,

I am trying to make a boundary condition for my solver that keeps the mass flow rate constant (I need to mention that it's solving diffusion of gas in porous medium). I cannot assume k and gradient of P as constant or uniform as they change over the boundary condition.
The method I'm trying to do for this boundary condition is to assume a small volume before the boundary condition, and set a pressure that changes over time (similar to what happens in the experiment). The pressure variation is calculated as:

dP/dt * (V/RT) = m ̇_(bc )−m ̇_r

V is the volume of the boundary condition space (it's tubing in my experiment), R is gas constant, T is temperature of the gas, is the desired flow rate defined in the boundary condition, is the flow rate at the boundary that is calculated as:

m ̇= ∫ −k/μ ∇P.(P/RT) dA

Now the problem is that gets bigger than and that will reduce the boundary condition pressure. This causes the simulation to blow up if P becomes negative. I have to make dt very small for this to work, or I have to define this boundary condition as implicit. Can you guys tell me how to make it implicit? Something like:

(P^(n+1)−P^n) / Δt = RT/V (m ̇_(bc) − m ̇_r^ (n+1) )

If you have any suggestion for any other method to define this boundary condition, I would like to hear it.
__________________
SAHM

Last edited by sahm; June 20, 2018 at 23:50. Reason: didn't show the equations.
sahm 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
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 02:44
Boundary Condition Mass Flow Rate does not match the CFX Solver result vijeshravi CFX 7 December 13, 2017 09:49
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 11:00
Pressure Outlet Targeted Mass Flow Rate LuckyTran FLUENT 1 November 23, 2016 11:40
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28


All times are GMT -4. The time now is 12:35.