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

Questions for setting different wind direcitions

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Alczem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 21, 2023, 08:08
Smile Questions for setting different wind direcitions
  #1
New Member
 
WANG Houzhi
Join Date: Dec 2022
Posts: 10
Rep Power: 4
picpic is on a distinguished road
Dear Foamer:

Currently, I'm working on wind simulation for building geometries. I set a cylindrical domain in order to create simulations for different wind directions (e.g. 10 degrees as an angle step). There are several ways I can achieve this goal, I have several ways to achieve this goal, but they all seem to be too complicated, and I would like to ask how Foamer with experience deals with this kind of problem.

Here is one of my plans:
Split the sides of the cylindrical computational domain into 36 patches, setting 18 for the inlet and 18 for the outlet each time.

However, due to a lack of experience, I am not sure if this is feasible and what kind of trouble it will cause subsequently, and I would like to ask if anyone has done something similar.

Any suggestion would be really really helpful.

Thanks a lot
Picpic
picpic is offline   Reply With Quote

Old   March 22, 2023, 04:53
Default
  #2
Senior Member
 
Join Date: Dec 2021
Posts: 251
Rep Power: 6
Alczem is on a distinguished road
Hey!


I think you can use the inletOutlet condition on your cylinder, with the appropriate vector for the inletValue field. I remember using it a few months ago. Alternatively, the freestreamVelocity condition might work I guess. Good luck, and let us know
picpic likes this.
Alczem is offline   Reply With Quote

Old   March 22, 2023, 04:57
Default
  #3
New Member
 
WANG Houzhi
Join Date: Dec 2022
Posts: 10
Rep Power: 4
picpic is on a distinguished road
Thanks for the suggestion. In fact, I still need to define the interpolation of the velocity in the vertical direction, because the velocity in the z-direction is increasing from small to large, I am not sure if this method is suitable, anyway I will try it, thanks a lot!
picpic is offline   Reply With Quote

Old   March 22, 2023, 05:05
Default
  #4
Senior Member
 
Join Date: Dec 2021
Posts: 251
Rep Power: 6
Alczem is on a distinguished road
You might want to look into setExprBoundaryFields utility to define a velocity profile based on an equation and dependent of the Z coordinate.
Alczem is offline   Reply With Quote

Old   March 22, 2023, 05:41
Default
  #5
Senior Member
 
Lefteris
Join Date: Oct 2011
Location: UK
Posts: 341
Rep Power: 16
Aeronautics El. K. is on a distinguished road
Wouldn't it be easier if you had your domain and boundaries fixed and rotated your geometry instead?
__________________
Lefteris

Aeronautics El. K. is offline   Reply With Quote

Old   March 22, 2023, 08:21
Default
  #6
New Member
 
WANG Houzhi
Join Date: Dec 2022
Posts: 10
Rep Power: 4
picpic is on a distinguished road
Quote:
Originally Posted by Aeronautics El. K. View Post
Wouldn't it be easier if you had your domain and boundaries fixed and rotated your geometry instead?
Yes, that seems quite straightforward, but it means I need to create a set of meshes for each rotation, which is complicated for multiple simulations. I would like everything to be automated.
picpic is offline   Reply With Quote

Old   March 22, 2023, 08:29
Default
  #7
New Member
 
WANG Houzhi
Join Date: Dec 2022
Posts: 10
Rep Power: 4
picpic is on a distinguished road
Quote:
Originally Posted by Alczem View Post
You might want to look into setExprBoundaryFields utility to define a velocity profile based on an equation and dependent of the Z coordinate.
Yeah true. There are many ways to define a wind profile for me, however for me the hardest part is changing the wind direction, tomorrow I will put up my boundary conditions, hoping someone(maybe me) can give the best solution.
picpic is offline   Reply With Quote

Old   March 23, 2023, 01:58
Default
  #8
New Member
 
WANG Houzhi
Join Date: Dec 2022
Posts: 10
Rep Power: 4
picpic is on a distinguished road
Hi Foamers!

I think in some way I solved my problem. I set the sides of the computational domain to the same Patch and afterwards used groovyBC to solve the definition of the wind profile and the control of the wind direction. The initial results look not bad, although they produce some numerical diffusion at the boundary.

Better suggestions are welcome!

pic
picpic 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
Problem to simulate a changing wind speed on 2D airfoil Lore_Rene Main CFD Forum 0 September 1, 2020 16:47
Low torque values in high wind speeds for a wind turbine Seervan STAR-CCM+ 5 August 5, 2019 21:36
Pitsco Airtech 40ic wind tunnel manual & software needed Q-Prof Main CFD Forum 2 May 15, 2019 14:26
Software for Wind Field Simulation based on LiDAR data around Wind Turbines davidebner Main CFD Forum 1 July 19, 2015 23:28
Wind Tunnel Website now online Mike Worthey Main CFD Forum 0 June 6, 2000 03:27


All times are GMT -4. The time now is 18:29.