CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

alpha.water boundary condition

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2022, 06:55
Default alpha.water boundary condition
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)


    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 07:56. Reason: Updated the formatting
wjchoi is offline   Reply With Quote

Old   January 18, 2022, 07:55
Super Moderator
Tobi's Avatar
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 20:18
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
Centrifugal fan j0hnny CFX 13 October 1, 2019 13:55
Radiation interface hinca CFX 15 January 26, 2014 17:11
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44

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