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

alpha.water boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2022, 07:55
Default alpha.water boundary condition
  #1
New Member
 
Join Date: Jan 2022
Posts: 27
Rep Power: 4
wjchoi is on a distinguished road
hello i am a beginner of openfoam!

i am studying the example related the water injection. in this situation, i have a question..


I set the water injection amount to change with time by using code as mentioned below.

(velocity(U) boundary condition)

Code:
boundaryField
{
    inlet1
    {

    type flowRateInletVelocity;
    volumetricFlowRate table
    (
        (0 2)
        (50 2)
        (50.01 0)
        (100 0)
        (100.01 2)
        (150 2)
        (150.01 0)
        (200 0)
        (200.01 2)
        (250 2)
        (250.01 0)
    );

    }
about the boundary condition of U in above code, what boundary condition will be suitable for alpha.water.orig ? i don't know which boundary condition to choose for alpha.water in this time varying boundary condition of U.

thank you !

Last edited by Tobi; January 18, 2022 at 08:56. Reason: Updated the formatting
wjchoi is offline   Reply With Quote

Old   January 18, 2022, 08:55
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Depending on the real case, you could switch alpha between 0 and 1, similar to your U condition. So if no flux is going into your domain, set alpha to 0 or apply a zeroGradient BC. For that you would need to integrate a codedMixed boundary condition and use a switch between Neumann and Dirichlet based on, e.g., the time data or the velocity values at the patch faces.
__________________
Keep foaming,
Tobias Holzmann
Tobi 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
multiphaseEulerFoam FOAM FATAL IO ERROR qutadah.r OpenFOAM Running, Solving & CFD 11 December 10, 2021 21:18
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
Centrifugal fan j0hnny CFX 13 October 1, 2019 14:55
Radiation interface hinca CFX 15 January 26, 2014 18:11
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44


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