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

1/7th power law inlet profile

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 7, 2018, 04:09
Default 1/7th power law inlet profile
  #1
Member
 
madz
Join Date: Sep 2018
Posts: 34
Rep Power: 7
maddy11 is on a distinguished road
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
maddy11 is offline   Reply With Quote

Old   December 7, 2018, 08:08
Default
  #2
Member
 
ssa
Join Date: Sep 2018
Posts: 93
Rep Power: 7
ssa_cfd is on a distinguished road
you can generate a csv file with inlet height with corresponding inlet velocity and then use fixedprofile boundary condition
ssa_cfd is offline   Reply With Quote

Old   December 7, 2018, 08:59
Default
  #3
Member
 
madz
Join Date: Sep 2018
Posts: 34
Rep Power: 7
maddy11 is on a distinguished road
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
maddy11 is offline   Reply With Quote

Old   December 7, 2018, 09:37
Default
  #4
Member
 
Petr Vita
Join Date: Mar 2009
Posts: 59
Rep Power: 17
pvita is on a distinguished road
Send a message via MSN to pvita Send a message via Skype™ to pvita
Have a look at groovyBC boundary condition. You can place it at your inlet patch and with help of functions pos() and pts() that provide vector fields with face-centers and vertices respectively construct your profile.
pvita is offline   Reply With Quote

Old   December 7, 2018, 10:27
Default
  #5
Member
 
madz
Join Date: Sep 2018
Posts: 34
Rep Power: 7
maddy11 is on a distinguished road
Dear pvita,
I tried installation of swak4foam and got some installation errors. Thats why Im looking at other alternatives. Kindly help please.

Regards,
Maddy
maddy11 is offline   Reply With Quote

Old   December 7, 2018, 11:54
Default
  #6
Member
 
ssa
Join Date: Sep 2018
Posts: 93
Rep Power: 7
ssa_cfd is on a distinguished road
https://www.youtube.com/watch?v=rfNYVqU1py4
ssa_cfd is offline   Reply With Quote

Old   December 8, 2018, 05:38
Default
  #7
Member
 
madz
Join Date: Sep 2018
Posts: 34
Rep Power: 7
maddy11 is on a distinguished road
Absolutely helpful!!! Thanks a ton!!!
maddy11 is offline   Reply With Quote

Old   December 8, 2018, 10:25
Default
  #8
Member
 
madz
Join Date: Sep 2018
Posts: 34
Rep Power: 7
maddy11 is on a distinguished road
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
maddy11 is offline   Reply With Quote

Old   December 8, 2018, 14:11
Default
  #9
Member
 
ssa
Join Date: Sep 2018
Posts: 93
Rep Power: 7
ssa_cfd is on a distinguished road
not cell centres.. u give values based on the height. and openfoam interpolates it automatically.
ssa_cfd is offline   Reply With Quote

Old   December 10, 2018, 03:24
Default
  #10
Member
 
Petr Vita
Join Date: Mar 2009
Posts: 59
Rep Power: 17
pvita is on a distinguished road
Send a message via MSN to pvita Send a message via Skype™ to pvita
@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)";
}
pvita is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 01:46.