|
[Sponsors] |
December 4, 2024, 01:06 |
Periodic massFlowRate
|
#1 |
New Member
Zhicheng Kai
Join Date: Oct 2024
Posts: 8
Rep Power: 2 |
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. |
|
December 5, 2024, 06:03 |
|
#2 |
New Member
Renato
Join Date: Nov 2022
Posts: 6
Rep Power: 4 |
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)) ); } |
|
December 5, 2024, 17:58 |
|
#3 |
New Member
Zhicheng Kai
Join Date: Oct 2024
Posts: 8
Rep Power: 2 |
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. |
|
Tags |
boundary condition, function of time, openfoam, time-varying bc |
|
|
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 |