|
[Sponsors] |
April 22, 2018, 23:55 |
mixed BC: fixedMean-zeroGradient
|
#1 |
Member
Fynn
Join Date: Feb 2016
Posts: 48
Rep Power: 10 |
Hi
I need a velocity BC that acts as an inlet and outlet. - for inflow: a specified mean flow rate with dynamically adjusting profile (like fixedMean) - for outflow: zeroGradient So it would be pretty similar to the pressureInletOutletVelocity BC, for which the mean inlet flow rate could be set. I want to use swak since the mean flow rate is determined from a different patch. Has anybody an idea how this could be set up in swak? cheers Fynn |
|
July 30, 2018, 10:32 |
|
#2 |
New Member
Ignacio Sarmiento
Join Date: Jul 2018
Posts: 8
Rep Power: 7 |
if you define:
valueExpression "0"; gradientExpression "0"; fractionExpression "(phi>0)?0:1"; it work as an inletOutlet, v*normal=phi, just change the value expression |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wrong Boundary Conditions (maximum number of iterations) in compressibleInterDyMFoam | silencebreak | OpenFOAM Running, Solving & CFD | 0 | September 11, 2017 07:05 |
Boundary Conditions | MtnRunBeachBum | OpenFOAM Pre-Processing | 1 | April 30, 2015 16:33 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 09:28 |
[swak4Foam] Air Conditioned room groovyBC | Sebaj | OpenFOAM Community Contributions | 7 | October 31, 2012 14:16 |
Pressure instability with rhoSimpleFoam | daniel_mills | OpenFOAM Running, Solving & CFD | 44 | February 17, 2011 17:08 |