|
[Sponsors] |
January 13, 2022, 02:44 |
water injection time adjusting
|
#1 |
New Member
Join Date: Jan 2022
Posts: 27
Rep Power: 4 |
Hello i am beginner of openfoam
when i run the example related water injection from inlet, i wonder that wether the injection of water can stop or not. clearly, i think that there may be an option to stop the water injection by time in openfoam. for example, if i set the time of water injection to 0s ~50s, the time of water injection is only 0s ~50s. in other words, after 50s from starting simulation, water injection will stop. but, i did't find the option to set the water injection time. i only found the option to set the "bubble" injection time in water (constant/fvOption/points --> timeStart, duration __ i wrote the code related this in the below) [code] options { massSource { type semiImplicitSource; timeStart 0.1; duration 5; selectionMode points; points ( (0.075 0.2 0.05) ); volumeMode absolute; ~~~ and i found that if i want to inject the water from inlet to some domain, i can adjust the boundary condition of alpha.water file and U file in "0" folder. but, when i saw these files, there is not an option to adjust the water injection time unlike bubble injection in fvOption as i mentioned above. so if the time of simulation is enough long, the water always full in the domain.. (i wrote the code related this in the below ) [code] boundaryField { inlet { type flowRateInletVelocity; volumetricFlowRate constant 5; } ~~~ (there is no option like timeStart, duration) |
|
January 13, 2022, 04:39 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Hi,
You should be able to define the flowrate in a table function of time. For instance, in the example below, the flowrate will ramp from 0 to 5m3/s during the first 10s of simulation, then maintain a constant flowrate of 5m3/s from 10 to 50s and then decrease the flowrate up to 0 between 50 and 60s. I did not test this, you might have to adjust the syntax. Code:
inlet { type flowRateInletVelocity; volumetricFlowRate table ((0 0)(10 5)(50 5)(60 0)); } Yann |
|
January 13, 2022, 08:44 |
|
#3 | |
New Member
Join Date: Jan 2022
Posts: 27
Rep Power: 4 |
Quote:
oh the code you wrote worked well as i intended,, thank you very much! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Extracting ParaView Data into Python Arrays | Jeffzda | ParaView | 30 | November 6, 2023 22:00 |
Setting up Lid driven Cavity Benchmark with 1M cells for multiple cores | puneet336 | OpenFOAM Running, Solving & CFD | 11 | April 7, 2019 01:58 |
pimpleDyMFoam computation randomly stops | babapeti | OpenFOAM Running, Solving & CFD | 5 | January 24, 2018 06:28 |
mixerVesselAMI2D's mass is not balancing | sharonyue | OpenFOAM Running, Solving & CFD | 6 | June 10, 2013 10:34 |
same geometry,structured and unstructured mesh,different behaviour. | sharonyue | OpenFOAM Running, Solving & CFD | 13 | January 2, 2013 23:40 |