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

Custom boundary condition: unexpected behavior with chtMultiRegionFoam

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 28, 2014, 12:51
Post Custom boundary condition: unexpected behavior with chtMultiRegionFoam
  #1
Member
 
Vincent Leroy
Join Date: Jul 2012
Location: Rhode-Saint-Genèse, Belgium
Posts: 43
Rep Power: 13
leroyv is on a distinguished road
Dear OpenFOAM users,
I recently wrote a simple custom boundary condition which computes the fluid velocity at the wall using a formula of the type:

v = f(rho) * normal

While my code yields the expected results using the rhoPimpleFoam solver, everything is messed up when using it with chtMultiRegionFoam, even though I use the exact same parameters for the BC. The near-wall velocity has an inverted orientation, and the upstream flow has a stagnation point, even if the wall velocity is oriented downstream. This is obviously a physical and numerical nonsense ...

Is there something in particular that should be taken care of when using chtMultiRegionFoam with custom BCs?

Parameters with rhoPimpleFoam:
Code:
squareWall
    {
        type            pyrolysisVelocity;
        refValue        0.001;
        massPR          0.001;
        rhoS            -1;
        rhoName         rho;
    }
Result: https://www.dropbox.com/s/n7cfws80w3...Foam_outer.png

With chtMultiRegionFoam:
Code:
fluid_to_solid
            {
                type pyrolysisVelocity;
                refValue 0.001;
                massPR 0.001;
                rhoS -1;
                rhoName rho;
            }
Result: https://www.dropbox.com/s/8t2re4piih...Foam_outer.png

Last edited by leroyv; January 29, 2014 at 05:10. Reason: corrected typos
leroyv is offline   Reply With Quote

 

Tags
boundary condition, chtmultiregionfoam, swak4foam


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
Mathematical representation of fixedDisplacementZeroShear boundary condition Sargam05 OpenFOAM 14 January 11, 2022 06:55
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00
Velocity profile boundary condition Tuca FLOW-3D 1 April 23, 2013 12:02
Bug in fvc::grad() and periodic boundary condition JBUNSW OpenFOAM 3 November 15, 2012 03:09
asking for Boundary condition in FLUENT Destry FLUENT 0 July 27, 2010 00:55


All times are GMT -4. The time now is 14:33.