|
[Sponsors] |
How can I create oscillatory flow with periodic boundary condition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 20, 2023, 19:28 |
How can I create oscillatory flow with periodic boundary condition
|
#1 |
Member
Nazmul Islam
Join Date: Feb 2023
Posts: 32
Rep Power: 3 |
Hi,
I am trying to observe unsteady, laminar and incompressible flow through an axisymmetric periodic tube. I have initialised the uniform velocity (along the tube axis) inside the tube and imposed periodic boundary conditions (cyclicAMI) at the inlet and outlet. Now, I would like to create an oscillatory flow. I found a tutorial "pitzDailyPulse" with the solver "pimpleFoam" for laminar, incompressible flow. In this tutorial, the velocities are distributed at the inlet using the trigonometric COSINE function. However, since I have imposed cyclicAMI boundary conditions at the inlet and outlet, I cant provide velocities at the inlet. It is mentioned that previously I tried to provide velocity at the inlet with cyclicAMI boundary conditions at the inlet and outlet, it did not work. For that reason, I initialised the uniform velocity inside the tube with cyclicAMI boundary conditions at the inlet and outlet and it worked. Please see more details in the following link: Periodic BC for a Periodic Tube I appreciate your suggestions in this regard. Thanks in advance. |
|
March 21, 2023, 04:04 |
|
#2 |
Senior Member
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 112
Rep Power: 5 |
If your inlet and outlet should be periodic but you want to have oscillating flow, then I would think the only other option would be a time-varying source term (e.g. meanVelocityForce in fvOptions). I have not seen many examples where this is time-varying though. You may need to create your own library for this based on the meanVelocityForce implementation. Maybe there is already functionality for time-varying source term.
|
|
March 26, 2023, 21:04 |
|
#3 | |
Member
Nazmul Islam
Join Date: Feb 2023
Posts: 32
Rep Power: 3 |
Quote:
Hello Josh, Many thanks for your kind suggestion and option to do this. I am a new user in OpenFoam. So, could you please tell me more about this, preferably with an example? Cheers, Nazmul |
||
April 9, 2023, 07:54 |
|
#4 | |
Member
Nazmul Islam
Join Date: Feb 2023
Posts: 32
Rep Power: 3 |
Quote:
Hello Josh, As you suggested I have created an fvOptions file (see in the attacment) consisting sinusoidal temporal function and put it in the system folder. However, it not working. That is, when I run the simulation using solver icoFoam, this file is not reading which is seen from the log file. I appreciate your kind suggestion in this regards. It is mentioned that I am using OpenFoam V10. Cheers |
||
April 10, 2023, 12:27 |
|
#5 |
Senior Member
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 112
Rep Power: 5 |
icoFoam.C does not call fvOptions as far as I am aware. Try pimpleFoam.
|
|
April 10, 2023, 23:25 |
|
#6 | |
Member
Nazmul Islam
Join Date: Feb 2023
Posts: 32
Rep Power: 3 |
Quote:
Thanks again for your suggestion. However, I have tried with pimpleFoam and received the fatal error message as you can see in the attachment: It is mentioned that I have only added the fvOptions file as above in the system folder. Do I need to change any codes in any specific file in OpenFoam? Please provide me your valuable suggestions in this regard. Cheers |
||
April 11, 2023, 04:38 |
|
#7 | |
Senior Member
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 112
Rep Power: 5 |
Quote:
It says you are missing keyword "format". i would check the source code or documentation to see what the keyword represents. |
||
April 13, 2023, 06:21 |
|
#8 |
Member
Nazmul Islam
Join Date: Feb 2023
Posts: 32
Rep Power: 3 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind tunnel flow simulation boundary condition issue | charan3007 | SU2 | 0 | October 21, 2021 08:27 |
Multiphase flow - incorrect velocity on inlet | Mike_Tom | CFX | 6 | September 29, 2016 01:27 |
Error finding variable "THERMX" | sunilpatil | CFX | 8 | April 26, 2013 07:00 |
strange flow of pressure boundary adjacent periodic condition | oilsok | FLUENT | 2 | May 26, 2012 12:51 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 15:55 |