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

Periodic massFlowRate

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2024, 01:06
Default Periodic massFlowRate
  #1
New Member
 
Zhicheng Kai
Join Date: Oct 2024
Posts: 8
Rep Power: 2
dandanTT is on a distinguished road
Hi Foamers,

How can I define a FlowRate boundary condition for a inlet that varies with time? For example, flowrate = sin(t). Thank you all for helping.
dandanTT is offline   Reply With Quote

Old   December 5, 2024, 06:03
Default
  #2
New Member
 
Renato
Join Date: Nov 2022
Posts: 6
Rep Power: 4
RenMon is on a distinguished road
hello, I think you can try using the "flowRateInletVelocity" boundary condition and then specify "table" in the value section. Something like this:

inlet
{
type flowRateInletVelocity;
uniformValue table
(
(0 1)
(0.1 2)
(0.2 3)
(0.3 4)
);
}

in this way the flowrate will be linearly interpolated between the time values (0; 0.1; 0.2; 0.3). You just need to create a sine function and use it in the table section. I never tried this but it should work. Otherwise, you can use the boundary condition "uniformFixedValue". In this case, you should compute the velocity starting from your patch's area and flowrate and then use the same strategy with the table. For example, by assuming that your patch is a plane patch of normal (1 0 0):

inlet
{
type uniformFixedValue;
uniformValue table
(
(0 (1 0 0))
(0.1 (2 0 0))
(0.2 (3 0 0))
(0.3 (4 0 0))
);
}
RenMon is offline   Reply With Quote

Old   December 5, 2024, 17:58
Default
  #3
New Member
 
Zhicheng Kai
Join Date: Oct 2024
Posts: 8
Rep Power: 2
dandanTT is on a distinguished road
Thank you for your kindly reply.

"uniformFixedValue" does not work in my case.

The "table" method might be working, but while looking, I realized other options like "sine" or "codedFunction1" from this page. However, I have no idea how to set it up.
dandanTT is offline   Reply With Quote

Reply

Tags
boundary condition, function of time, openfoam, time-varying bc


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
Can I achieve better convergence? sheaker CFX 12 September 19, 2019 16:36
Turbomachinery Mass imbalance sheaker CFX 12 September 5, 2019 09:09
[ICEM] Periodic condition between ICEM and FLUENT Touré ANSYS Meshing & Geometry 0 August 5, 2012 18:00
HELP! Periodic Problem foxer FLUENT 1 June 27, 2012 09:00
[ICEM] how to define periodic in icem ? mingersai ANSYS Meshing & Geometry 1 February 3, 2012 18:46


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