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

Boundary conditions for wind from variable direction

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By michael3000

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 30, 2022, 08:07
Default Boundary conditions for wind from variable direction
  #1
New Member
 
Schweiz
Join Date: Aug 2022
Posts: 8
Rep Power: 3
michael3000 is on a distinguished road
I started with the windAroundBuildings example from OpenFOAM.

This example has the following boundary conditions:
- inlet with type=fixedValue (left side of the cube)
- outlet with type=pressureInletOutletVelocity (right side)
- ground with type=wall
- front, back and top of cube with type=symmetry


Now I'd like do change it such that the wind can come from an arbitrary direction, or to put it differently, I'd like to put the buildings in a wind field with various directions. The wind does not change during one simulation run, I just want to investigate a scenery under different wind conditions.

I can of course change the wind direction just at the inlet, but that's not enough, since depending on the direction, the wind might also come in from the other walls of the cube or even the outlet.

Another idea is to leave the hex mesh with the boundary patches and boundary conditions as-is, but to rotate the objects inside the cube. That comes with the drawback that I have to re-calculate the mesh for every wind direction.

What would be the best approach to handle various wind directions?
manhin likes this.
michael3000 is offline   Reply With Quote

Old   March 6, 2023, 20:53
Default
  #2
New Member
 
WANG Houzhi
Join Date: Dec 2022
Posts: 10
Rep Power: 3
picpic is on a distinguished road
Hi Michael.

Did you get any solution for this situation? May I ask for your final decision?

Best,
Pic
picpic is offline   Reply With Quote

Old   March 7, 2023, 00:30
Default
  #3
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
You may extend the area around the buildings and make all the boundaries to inletoutlet.
Then you may add an internal wall in form of a hole in the structure, far enough from the building. You may use this to generate the wind you need.

For wind from another direction you have to move this internal wall, but preserve the coordinates of the structure you are interested in. This facilitates the postProcessing and evaluation.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   March 7, 2023, 00:38
Default
  #4
New Member
 
WANG Houzhi
Join Date: Dec 2022
Posts: 10
Rep Power: 3
picpic is on a distinguished road
Quote:
Originally Posted by piu58 View Post
You may extend the area around the buildings and make all the boundaries to inletoutlet.
Then you may add an internal wall in form of a hole in the structure, far enough from the building. You may use this to generate the wind you need.

For wind from another direction you have to move this internal wall, but preserve the coordinates of the structure you are interested in. This facilitates the postProcessing and evaluation.
That's a great idea, will try! But does it mains I need to regenerate the mesh after each simulation?
BTW, the simulation I'm dealing with is about wind around buildings, which we always set a patch of the computation domain as input/output. You got any suggestions?

Thanks again,
Pic
picpic is offline   Reply With Quote

Old   March 7, 2023, 04:30
Default
  #5
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
Normally, I use blockMesh and remeshing is not a great deal. If you use something different. Maybe there are tools which modify an existing mesh. setFields is one of them, but I don't know if it is appropriate.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 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
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 10:00
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 01:27
Radiation interface hinca CFX 15 January 26, 2014 17:11
OpenFOAM Variable Velocity Boundary Conditions NickolasPl OpenFOAM Programming & Development 2 May 19, 2011 05:37


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