CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Setting a pressure threshold as boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 2, 2014, 05:10
Default Setting a pressure threshold as boundary condition
  #1
New Member
 
James B
Join Date: Oct 2013
Posts: 4
Rep Power: 12
james91 is on a distinguished road
Dear Foamers

For an inlet condition I need a pressure dependent boundary condition:
if the pressure is higher than the p_threshold then there should be injection of fresh mixture
if the pressure is lower than the p_threshold then there should be blockage of the inlet (simplified: a wall condition).

I am working with the inletOutlet boundary condition (not really working yet) so if anyone of you would have suggestions, or better/simpler idea please let me know!


Thanks!
james91 is offline   Reply With Quote

Old   July 9, 2014, 08:30
Default
  #2
New Member
 
Quentin Coispeau
Join Date: Nov 2013
Posts: 17
Rep Power: 12
Quentin is on a distinguished road
Hi Janes,

I'm also working on a pressure threshold BC ; i'm also working with he existant inleoutlet BC but can't get the trick working. Did you manage to find a solution ?

Right now my updatecoeff fuction looks like :

Code:
if (this->updated())
    {
        return;
    }
    const Field<scalar>& phip =
        this->patch().template lookupPatchField<volScalarField, scalar>
        (
            "p"
        );
    
    this->valueFraction() = pos(phip - pthreshold_);

    mixedFvPatchField<Type>::updateCoeffs();
The calculation works fine (without crasing) but my BC doesn't seem to do anything more than a zeroGradient one.

thanks
Quentin is offline   Reply With Quote

Old   December 2, 2017, 20:09
Default
  #3
dli
New Member
 
dengli
Join Date: Mar 2015
Posts: 22
Rep Power: 11
dli is on a distinguished road
hi,james
Did you find was to solve it? For this dependent pressure boundary, is the codedfixedvalue is convinient? could you please give me some advices on this? thanks.
dli 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
Doubt with Downstream Pressure Boundary Condition Marcus.filho FLOW-3D 0 November 20, 2013 14:45
replacing of shock tube high pressure part with a boundary condition for low pressure immortality Main CFD Forum 0 May 2, 2013 13:30
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00
Pressure boundary condition issue Vijay FLUENT 0 April 6, 2012 13:35
Boundary condition setting regarding turbine simulation using CFX Lacerlacer CFX 11 March 12, 2012 09:32


All times are GMT -4. The time now is 18:01.