|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Join Date: Jan 2022
Posts: 27
Rep Power: 5 ![]() |
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)
);
}
thank you ! Last edited by Tobi; January 18, 2022 at 08:56. Reason: Updated the formatting |
|
|
|
|
|
|
|
|
#2 |
|
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,716
Blog Entries: 6
Rep Power: 53 ![]() ![]() ![]() |
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 |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |