|
[Sponsors] |
December 7, 2018, 04:09 |
1/7th power law inlet profile
|
#1 |
Member
madz
Join Date: Sep 2018
Posts: 34
Rep Power: 7 |
Hi all,
I'm doing simulation of a supersonic cavity using k-omega SST model. Could someone please tell me how to set inlet as powerlawInletVelocity ? Please help! Regards, Maddy |
|
December 7, 2018, 08:08 |
|
#2 |
Member
ssa
Join Date: Sep 2018
Posts: 93
Rep Power: 7 |
you can generate a csv file with inlet height with corresponding inlet velocity and then use fixedprofile boundary condition
|
|
December 7, 2018, 08:59 |
|
#3 |
Member
madz
Join Date: Sep 2018
Posts: 34
Rep Power: 7 |
Dear ssa,
Thanks for your kind reply. I have a few doubts. Basic doubts. I have generated mesh in Gambit. Is it possible to get inlet patch elements and their cellcentres in Paraview? How to use the fixed profile BC? Im an OpenFoam beginner. Kindly elaborate please. Regards, Maddy |
|
December 7, 2018, 10:27 |
|
#5 |
Member
madz
Join Date: Sep 2018
Posts: 34
Rep Power: 7 |
Dear pvita,
I tried installation of swak4foam and got some installation errors. Thats why Im looking at other alternatives. Kindly help please. Regards, Maddy |
|
December 7, 2018, 11:54 |
|
#6 |
Member
ssa
Join Date: Sep 2018
Posts: 93
Rep Power: 7 |
||
December 8, 2018, 05:38 |
|
#7 |
Member
madz
Join Date: Sep 2018
Posts: 34
Rep Power: 7 |
Absolutely helpful!!! Thanks a ton!!!
|
|
December 8, 2018, 10:25 |
|
#8 |
Member
madz
Join Date: Sep 2018
Posts: 34
Rep Power: 7 |
Dear ssa,
I have just one more doubt. Hope you can help. Should I apply the velocity values to the cell centres ? If so, how do I get the cell centre coordinates in ParaView? Is it simply the cell data? Regardss, Maddy |
|
December 8, 2018, 14:11 |
|
#9 |
Member
ssa
Join Date: Sep 2018
Posts: 93
Rep Power: 7 |
not cell centres.. u give values based on the height. and openfoam interpolates it automatically.
|
|
December 10, 2018, 03:24 |
|
#10 |
Member
|
@maddy11: Read carefully installation instructions of swak4Foam and its error messages. Make sure you have all prerequisites installed and swak4Foam is properly configured. swak4Foam is too beautiful to miss it out.
Example of the velocity inlet with the 1/7th profile and maximal velocity of 10 m.s-1 assuming that y=0 goes through the middle of the inlet patch: Code:
inlet { type groovyBC; variables "u_max=10;n=7;r=mag(pos().y);R=mag(max(pts().y));"; valueExpression "vector(u_max*pow(1-(r/R),1./n),0,0)"; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to generate Time varying Inlet velocity with a particular profile | faiazk | OpenFOAM Pre-Processing | 15 | June 3, 2021 06:16 |
Defining 2D Temperature Profile for two inlet patches | afzaal | Fidelity CFD | 0 | April 12, 2017 00:48 |
3D pipe flow :: how to create non uniform inlet profile. | thess | FLUENT | 1 | May 30, 2014 02:43 |
Velocity profile at inlet | siw | CFX | 2 | May 3, 2012 09:30 |
Non-Newtonian Flow: Power law (2D BFS) | hellouch | FLUENT | 3 | April 21, 2009 03:03 |