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

[swak4Foam] mixed BC: fixedMean-zeroGradient

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By IgnacioSarmientoINH

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2018, 23:55
Default mixed BC: fixedMean-zeroGradient
  #1
Member
 
Fynn
Join Date: Feb 2016
Posts: 48
Rep Power: 10
PanPeter is on a distinguished road
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
PanPeter is offline   Reply With Quote

Old   July 30, 2018, 10:32
Default
  #2
New Member
 
Ignacio Sarmiento
Join Date: Jul 2018
Posts: 8
Rep Power: 7
IgnacioSarmientoINH is on a distinguished road
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
PanPeter likes this.
IgnacioSarmientoINH 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
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


All times are GMT -4. The time now is 17:29.