|
[Sponsors] |
How to write a time-varying pressure gradient inlet? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 8, 2022, 09:53 |
How to write a time-varying pressure gradient inlet?
|
#1 |
New Member
Guo Zongchao
Join Date: Nov 2021
Posts: 8
Rep Power: 5 |
Hello, everyone.
I meet a trouble while setting pressure gradient. My inlet pressure gradient is time-varying, and there is a formula looks like dp/dy=acos(ωt). ZeroGradient and fixedGradient are all useless for me. How could I write this inlet condition? I would appreciate it if someone could give me some ideas. |
|
January 10, 2022, 07:58 |
|
#2 |
Member
Lukas
Join Date: Sep 2021
Posts: 36
Rep Power: 5 |
Hello Crane,
i don't know if u already found a solution for your problem, if not : Go to the userguide for foam there u will find this chapter : https://cfd.direct/openfoam/user-guide/v9-boundaries/ 5.2.3.4 Time-varying boundary conditions (Openfoam 8/9) I think u find your answer there |
|
January 10, 2022, 22:53 |
|
#3 | |
New Member
Guo Zongchao
Join Date: Nov 2021
Posts: 8
Rep Power: 5 |
Quote:
Thank you very much for your kind reply. Actually I know these time-varying boundary conditions, but I think they can only used for pressure condition, instead of pressure gradient condition. For pressure gradient, I only find conditions like zeroGradient and fixedGradient, but they all can't be used for changing gradient. |
||
January 11, 2022, 02:39 |
|
#4 |
Member
Lukas
Join Date: Sep 2021
Posts: 36
Rep Power: 5 |
The Function1 should be implemented in FixedGradient also:
find $FOAM_SRC/finiteVolume/fields/fvPatchFields -type f -name "*.H" | xargs grep -l Function1 OpenFOAM-8/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.H at least does the search say so (I never used variable gradients) |
|
January 11, 2022, 09:57 |
|
#5 | ||
Senior Member
Julio Pieri
Join Date: Sep 2017
Posts: 109
Rep Power: 9 |
Quote:
Code:
wall { type fixedGradient; value uniform 416.67; } From the UserGuide link provided: Quote:
|
|||
January 17, 2022, 03:17 |
|
#6 |
New Member
Guo Zongchao
Join Date: Nov 2021
Posts: 8
Rep Power: 5 |
Thanks for your help. I got some inspiration from both of your replies, and write like this
Code:
INLET { type uniformFixedGradient; uniformGradient cosine; frequency 0.2; amplitude 2*pi/5.00*1.00; scale 1; // Scale factor for current level 0; // Offset } Anyway, thanks for giving me ideas to solve the problem. |
|
October 28, 2022, 06:54 |
|
#7 |
Senior Member
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 152
Rep Power: 7 |
Hello everyone,
Sorry to jump into this thread, I am running compressor blade simulation and i need to give total pressure gradually for my simulation. can get some suggestions from your expertise ? Thanks in advance |
|
Tags |
pressure gradient, time varying |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[IHFOAM] The IHFOAM Thread | Phicau | OpenFOAM Community Contributions | 392 | September 8, 2023 19:10 |
Adjuting oulet pressure till inlet pressure reaches a certain value in timestep | pvpnrao | OpenFOAM Running, Solving & CFD | 2 | September 11, 2018 11:14 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 03:50 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 14:58 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |