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

[Other] Trees

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By barracuda

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 18, 2018, 01:45
Default Trees
  #1
New Member
 
Johnny
Join Date: Mar 2018
Posts: 12
Rep Power: 8
barracuda is on a distinguished road
Hello. I am new to OpenFoam. I would like to create simulation of wind affected by trees and a house. I know how to create the house, but if I want to add some trees near it or a small forest adjacent to the house, how to do it. The problem is that if I create a mesh of tree, the wind would behave like the tree is solid obstacle - but in real, there is a lot of spaces. To create a real tree would take too much resources for calculation. Any tips how to solve that problem? Is there some simple solution?

PS: dynamic meshing is not needed
PS2: I Found this https://www.researchgate.net/publica...in_urban_parks
which shows the case which is not ideal because the trees seems to be simple blocks/obstacles.
Rojj likes this.

Last edited by barracuda; March 18, 2018 at 08:57.
barracuda is offline   Reply With Quote

Old   March 19, 2018, 03:57
Default
  #2
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 11
RobertHB is on a distinguished road
How about implementing the trees as a region of lower porosity?
RobertHB is offline   Reply With Quote

Old   March 19, 2018, 05:53
Default
  #3
New Member
 
Johnny
Join Date: Mar 2018
Posts: 12
Rep Power: 8
barracuda is on a distinguished road
I have no experience how to do that. Yesterday I worked with some Sketchup models of trees. I found some trees with simple polygons geometry, which I exported to gmsh. There I have created the mesh.

I could try both. I could try simulation with the trees and then to try the region with smaller poresity and to compare both results.
barracuda is offline   Reply With Quote

Old   March 19, 2018, 05:57
Default
  #4
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 11
RobertHB is on a distinguished road
The page explains how to use different fvOptions entries, e.g. the explicitPorositySource. Unfortunately it is partly in japanese, but you can use google translate and the important part is in english.

Source: http://www.geocities.jp/penguinitis2...fvOptions.html
RobertHB is offline   Reply With Quote

Old   March 19, 2018, 09:46
Default
  #5
New Member
 
Johnny
Join Date: Mar 2018
Posts: 12
Rep Power: 8
barracuda is on a distinguished road
I have modified and exported these trees, to .geo and mesh files. Anyone interested - free for use.
https://sourceforge.net/projects/aut...h.zip/download

You can check it out if you know how to make it better (clear, simple, less edges), your help is welcome. I tried to make them as simple as possible, but with tree 3, there are some soft/dashed lines, which could be removed but IDK how to do that.

Last edited by barracuda; March 19, 2018 at 13:49.
barracuda is offline   Reply With Quote

Old   March 20, 2018, 17:16
Question
  #6
New Member
 
Johnny
Join Date: Mar 2018
Posts: 12
Rep Power: 8
barracuda is on a distinguished road
Could you pleas suggest me which case to use, when I want to simulate the wind in 3D space effecting the trees and house? Till now I was met with the tutorials and cases which use 2D space and pipe or walls where you define the inlet, outlet, etc. However it is not clear to me how can I define the 2D environment which is open ("outdoor"; not closed). So for example when I want the wind to blow from east to west, how should I define the direction. Of sure, I can be interested in 2D solution too, but my final goal is to see the 3D results. Now I am trying to make to work pitzdaily case according "OpenFoam CFD Tutorial | Laminar Flow Through a Pipe 3D | Part 2/4" (Vijaya Kumar), this one is 3D but this is the "enclosed" environment, where the inlet and output is defined.
barracuda is offline   Reply With Quote

Old   March 22, 2018, 02:04
Default
  #7
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 11
RobertHB is on a distinguished road
Quote:
Originally Posted by barracuda View Post
However it is not clear to me how can I define the 2D environment which is open ("outdoor"; not closed).
You could use cyclic boundary conditions at the side patches of your domain. And then define the velocity via a velocity magnitude in the fvOptions dictionary.

Quote:
So for example when I want the wind to blow from east to west, how should I define the direction.
Assuming your z-axis is your vertical axis, e.g. the one parallel to your trees, then your x-axis may be your E/W direction and your y-axis be your N/S direction.
RobertHB is offline   Reply With Quote

Old   March 24, 2018, 03:02
Default
  #8
New Member
 
Johnny
Join Date: Mar 2018
Posts: 12
Rep Power: 8
barracuda is on a distinguished road
Thank you for your answer.
barracuda is offline   Reply With Quote

Old   March 27, 2019, 04:23
Default
  #9
Member
 
Ruggiero Guida
Join Date: Apr 2013
Location: World
Posts: 46
Rep Power: 12
Rojj is on a distinguished road
I wonder if this could help

https://github.com/OpenFOAM/OpenFOAM...35e58e842cb681

"atmosphericModels: Added Lopes da Costa porosity and turbulence models
Specialized variants of the power law porosity and k epsilon turbulence models
developed to simulate atmospheric flow over forested and non-forested complex terrain."

It is a new feature in openfoam 6. I have not tested it myself yet, but planning to do it soon.

https://openfoam.org/release/6/
Rojj is offline   Reply With Quote

Old   March 27, 2019, 06:54
Default
  #10
New Member
 
Johnny
Join Date: Mar 2018
Posts: 12
Rep Power: 8
barracuda is on a distinguished road
Thank you for your reply but I do not do the things which I did at that time, so I am not a developer in this branch anymore.
barracuda is offline   Reply With Quote

Old   August 12, 2019, 04:22
Default
  #11
New Member
 
Shai Aser
Join Date: Aug 2015
Posts: 25
Rep Power: 10
shaiashe is on a distinguished road
Hi,

@Rojj did you ever get around to trying this package? do you know of any existing tutorials for use of the porosity model?

thanks,
shaiashe 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
Trees simulation in ANSYS Fluent AFBrunetti FLUENT 1 August 11, 2020 16:49
How to simulate Urban Environment with buildings and trees in OpenFOAM tobimorak OpenFOAM 2 September 16, 2013 08:43
Porosity of Trees Ruth Main CFD Forum 5 October 6, 2010 14:51
Porous settings - Trees charltonjames STAR-CCM+ 0 June 18, 2010 06:33
Modelling wind through trees Anna Davis Main CFD Forum 1 September 17, 2008 08:33


All times are GMT -4. The time now is 06:40.