The invention discloses an automatic modeling method and
system for complex terrains and buildings / structures in consideration of
surface roughness, and the method is realized based on an
open source tool, and comprises the steps: collecting the types of terrains, buildings and roughness, and the actual measurement data of a
wind field; automatically
processing the topographic data through a script and generating an
STL file with a transition section; simplifying the building contour and removing abnormal points by using an RDP
algorithm and a standard deviation method; filtering the small building and calculating equivalent roughness; generating a building STL in combination with an
open source modeling tool; a roughness surface patch is generated on the basis of the DaviportWieringa classification and the equivalent roughness; fusing the
terrain, the building and the roughness surface patch; and in OpenFOAM, accurate binding of roughness and computational grids is realized through grid patch association, and
wind field simulation and
verification are carried out. According to the method, full-process
automation is achieved, the modeling efficiency can be improved, the precision deviation of near-surface
wind field simulation is reduced through a double-path roughness
processing mechanism, and the problems that a traditional method is time-consuming in modeling, insufficient in precision and dependent on
commercial software are effectively solved.