|
[Sponsors] |
[swak4Foam] groovyBC conditionnal BC if inflow our outflow velocity |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 18, 2015, 15:12 |
groovyBC conditionnal BC if inflow our outflow velocity
|
#1 |
New Member
Loïc Dagnas
Join Date: Jan 2015
Location: France
Posts: 9
Rep Power: 11 |
Hi everyone,
I am trying to define a different boundary condition for the salinity S if the velocity on my boundary is inflow our outflow:
Code:
Sea { type groovyBC; valueExpression "1"; gradientExpression "0"; fractionExpression "(U&normal()>0)?0:1"; value uniform 0; } Loïc |
|
March 28, 2015, 17:56 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
For future reference, this was answered here: http://www.openfoam.org/mantisbt/view.php?id=1582
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Inflow Boundary Condition - adding a velocity profile | cedame | CONVERGE | 11 | December 12, 2017 18:47 |
mass inflow B.C. disappears, whereas Velocity inlet B.C. no | Ema40 | Fluent Multiphase | 0 | September 16, 2015 11:28 |
[swak4Foam] groovyBC setting different directions for waves and velocity profile | kilroy | OpenFOAM Community Contributions | 1 | August 2, 2013 07:00 |
[swak4Foam] Creating log. velocity profile with groovyBC | krsp | OpenFOAM Community Contributions | 2 | March 15, 2012 07:37 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 10:11 |