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

[swak4Foam] groovyBC conditionnal BC if inflow our outflow velocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 18, 2015, 14:12
Default 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
loic_d is on a distinguished road
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:
  • fixedValue 1 if inflow
  • zeroGradient if outflow
I use the following code unsuccessfully (nothing happened):

Code:
Sea
    {
        type            groovyBC;
        valueExpression "1";
        gradientExpression "0";
        fractionExpression "(U&normal()>0)?0:1";
        value uniform   0;

    }
Thanks you
Loïc
loic_d is offline   Reply With Quote

Old   March 28, 2015, 16:56
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
For future reference, this was answered here: http://www.openfoam.org/mantisbt/view.php?id=1582
Quote:
Greetings to all!

@loic_d: From your description... have you tried using the boundary type "inletOutlet"? See the last table on this page: http://www.openfoam.org/docs/user/boundaries.php [^] - the reference to "p" is actually in reference to the field where the boundary type is defined.

Best regards,
Bruno
wyldckat 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
Inflow Boundary Condition - adding a velocity profile cedame CONVERGE 11 December 12, 2017 17:47
mass inflow B.C. disappears, whereas Velocity inlet B.C. no Ema40 Fluent Multiphase 0 September 16, 2015 10:28
[swak4Foam] groovyBC setting different directions for waves and velocity profile kilroy OpenFOAM Community Contributions 1 August 2, 2013 06:00
[swak4Foam] Creating log. velocity profile with groovyBC krsp OpenFOAM Community Contributions 2 March 15, 2012 06:37
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 11:22.