|
[Sponsors] |
Pressure gradient in channel flow - mapped BC |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 7, 2012, 14:34 |
Pressure gradient in channel flow - mapped BC
|
#1 |
Member
Join Date: Jul 2010
Posts: 52
Rep Power: 16 |
Hi!!
I want to simulate a simple channel flow with periodic boundary contidions in the inlet/outlet. If I understand correctly I have two ways of doing it: Option 1: Use channelFoam and the solver will verify the mass flow rate. Option 2: Use pisoFoam solver instead with the mapped (directMapped in previous OF versions) boundary conditions with "setAverage true" for the velocity. The code is also verify and correct the mass flow rate. Is that correct? Are there any diferences between the two options? Does it mean that by using a "mapped boundary" conditions I am imposing a pressure gradient in that direction? Thanks in advance... |
|
February 15, 2013, 14:35 |
|
#2 | |
Member
Jack
Join Date: Dec 2011
Posts: 94
Rep Power: 15 |
Quote:
|
||
February 19, 2013, 17:41 |
|
#3 |
Member
Join Date: Jul 2010
Posts: 52
Rep Power: 16 |
I tried two cases:
1) mapped boundary conditions (or directMapped in older versions) in the inlet/outlet with a "setAverage true" and using the regular OF pisoFoam (no pressure gradient). 2) having a pressure gradient added to the pisoFoam UEqn and cyclic inlet/outlet boundary conditions. and I obtained the same results in both cases. Now, to add a pressure gradient to drive the flow, you have to modified the UEqn in pisoFoam. Code:
fvVectorMatrix UEqn ( fvm::ddt(U) + fvm::div(phi, U) + turbulence->divDevReff(U) + gradP ); Code:
dimensionedVector gradP ( "gradP", dimensionSet(0, 1, -2, 0, 0), vector::zero ); |
|
February 26, 2013, 16:30 |
|
#4 | |
Member
Jack
Join Date: Dec 2011
Posts: 94
Rep Power: 15 |
Hi MaryBau.
Thanks very much! In code: Code:
dimensionedVector gradP ( "gradP", dimensionSet(0, 1, -2, 0, 0), vector::zero ); I am a new user of openFoam..... Quote:
|
||
Tags |
channelfoam, mappedfixedvalue, pisofoam, pressure gradient |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Maintaining Static Pressure at Fluid Flow Inlet | cdevalve | FLUENT | 3 | January 14, 2012 01:11 |
How apply pressure gradient to get fully developed flow? | nihossain | FLUENT | 0 | November 5, 2011 16:20 |
Channel flow: Inlet pressure AND uniform velocity? | frmap1 | Main CFD Forum | 0 | April 15, 2010 11:32 |
pressure outlet (open channel flow) | Willem Brantegem | Main CFD Forum | 0 | April 3, 2007 10:39 |
flow simulation across a small fan | jane luo | Main CFD Forum | 15 | April 12, 2004 18:49 |