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

water injection time adjusting

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wjchoi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 13, 2022, 02:44
Default water injection time adjusting
  #1
New Member
 
Join Date: Jan 2022
Posts: 27
Rep Power: 4
wjchoi is on a distinguished road
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)
wjchoi is offline   Reply With Quote

Old   January 13, 2022, 04:39
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
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));
 }
Cheers,
Yann
Yann is offline   Reply With Quote

Old   January 13, 2022, 08:44
Default
  #3
New Member
 
Join Date: Jan 2022
Posts: 27
Rep Power: 4
wjchoi is on a distinguished road
Quote:
Originally Posted by Yann View Post
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));
 }
Cheers,
Yann

oh
the code you wrote worked well as i intended,, thank you very much!
Yann likes this.
wjchoi 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
[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


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