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

Boundary condition for phi field.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2016, 15:01
Default Boundary condition for phi field.
  #1
New Member
 
Jean Schuster
Join Date: Jan 2015
Posts: 8
Rep Power: 11
jeanbvb is on a distinguished road
Hi guys.

I'm trying to simulate a shear driven flow (Couette flow) with different temperatures between the superior an inferior boundaries, with the top wall moving an the bottom wall at rest. I'm using OpenFoam 2.4.0.

For that I'm plainning to use the buoyantPimpleFoam solver. The superior and inferior boundaries are of the type wall, and the horizontal boundaries (streamwise and spanwise directions) are of the type cyclic.

For the phi field it is needed to specify a value for the cyclic boundary condition, and I dont know the right way to set this. Setting it like the code bellow I'm able to run my case, but I think that it makes no sense setting it to uniform 0 on the cyclic boundaries.

Code:
dimensions      [1 0 -1 0 0 0 0];

internalField   uniform 0; 

boundaryField
{
    bottomWall
    {
       type            fixedValue;
	value 		uniform 0;
    }
    topWall
    {
       type            fixedValue;
	value 		uniform 0;
    }

    sides1_half0
    {
       type            cyclic;
        value           $internalField;
    }
    sides1_half1
    {
       type            cyclic;
        value           $internalField;
    }

    sides2_half0
    {
       type            cyclic;
        value           $internalField;
    }
    sides2_half1
    {
       type            cyclic;
        value           $internalField;
    }

    inout1_half0
    {
       type            cyclic;
        value           $internalField;
    }
    inout1_half1
    {
       type            cyclic;
        value           $internalField;
    }

    inout2_half0
    {
       type            cyclic;
        value           $internalField;
    }
    inout2_half1
    {
       type            cyclic;
        value           $internalField;
    }
}
Also for the Ubar configuration in the constant/transportProperties, being it a shear driven flow, it is still necessary to specify the mean flow velocity or setting Ubar to ( 0 0 0 ) would be ok?

Regards.
jeanbvb is offline   Reply With Quote

Old   June 13, 2016, 03:44
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
as much as i know, here the value is place holder and your assigned magnitude is irrelevant.
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   June 14, 2016, 10:03
Default
  #3
New Member
 
Jean Schuster
Join Date: Jan 2015
Posts: 8
Rep Power: 11
jeanbvb is on a distinguished road
Quote:
Originally Posted by nimasam View Post
as much as i know, here the value is place holder and your assigned magnitude is irrelevant.
Hi Nima, indeed the results for the ciclic bc seems to be correct having a quick view of the flow in paraView.

Thanks for your replly.
jeanbvb is offline   Reply With Quote

Reply

Tags
phi boundary condition, phi field, phi openfoam


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
Field value inside a boundary condition class pcaron OpenFOAM Programming & Development 14 October 17, 2022 10:40
Centrifugal fan j0hnny CFX 13 October 1, 2019 14:55
[Other] dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 6 April 26, 2018 08:30
External Radiation Boundary Condition (Two sided wall), Grid Interface CFD XUE FLUENT 0 July 8, 2010 07:49
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 16:55


All times are GMT -4. The time now is 00:52.