development of openfoam - windbench.net · openfoam solutions - development of a new bc class a new...

35
Development of OpenFOAM - WRF Coupling Methodology for Wind Power Production Estimations Engin Leblebici & Ismail H. Tuncer METUWIND - Ankara/TURKEY

Upload: duongkhanh

Post on 24-Dec-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

Development of OpenFOAM - WRF Coupling

Methodology for Wind Power ProductionEstimations

Engin Leblebici & Ismail H. Tuncer

METUWIND - Ankara/TURKEY

Introduction

Wind power predictions are currently based on:

• Linearized Models

• WASP

• Statistical CFD based models

• Meteodyn WT• WindSim

• Numerical Weather Prediction Models

• WRF• NAM• ALADIN

leblebici 1 SOWE2017

Linearised Prediction Models

• Fast, linearised N-S solvers

• Assumes terrain, obstacles, surface roughnessare small perturbations on a constantbackground wind field

• Derives regional wind climate based pointmeasurement data

• Reverses the process to reconstruct theflowfield

• Problems

• Assumes attached flow,Cannot simulate flow separation, re-circulation..

• Not accurate in complex terrain

leblebici 2 SOWE2017

CFD based Prediction Models

• RANS solvers

• Assumes homogeneous, steady boundary conditions

• Starting from the zero degree, rotates inlet and outletboundary conditions till 360 degrees in steps.

• Use fictitious flowfields and correlate whole domain withobservation data

• Better than linearised models at capturing complex terraineffects

• Both linear and CFD based Models:• uses statistical averaging for wind speed and direction• does not capture unsteady physics (no prediction!)

leblebici 3 SOWE2017

WRF - Weather Research and Forecasting Model

WRF is a numerical weather prediction software with manyphysical models including atmospheric boundary layers. It is amesoscale model with a maximum resolution of 1 km and uses anη based coordinate system.

η =p − pht

phs − pht

(1)

WRF predictions are not accurate in complex terrains

leblebici 4 SOWE2017

Atmospheric Boundary Layer

The Atmospheric Boundary Layer can be defined as the part of theatmosphere which is highly influenced by the earth’s surface andresponds to forcing from surface within a time scale about an hour

• 100 m to 3 km inheight

• Changes diurnally

• Turbulent

• Unsteady

• 4 Sublayers

• Roughness Layer• Surface Layer• Well-mixed Layer• Capping Inversion

Layer

leblebici 5 SOWE2017

Objectives

• Coupling CFD solutions with a weather prediction model(Unsteady Physics)

• CFD based solutions on terrain fitted high resolution grids(Terrain Effects)

• Modelling real-time unsteady atmospheric flows (Prediction)

leblebici 6 SOWE2017

Coupling Strategy

• Use unsteady WRF predictions (past/future) on low aresolution grid to provide unsteady BCs for high resolutionterrain fitted CFD (OpenFOAM) solutions.

leblebici 7 SOWE2017

Coupled Solution Methodology

• WRF Solutions

• High Resolution Terrain Modelling and Grid Generation forCFD Sub-domain

• Unsteady OpenFOAM Solutions

• Numerical Model• Challenges

(WRF) Mesh to (OpenFOAM) mesh interpolation of BCs foreach WRF output timeDevelopment of a Spatially and Time varying Inlet/Outlet BCParallel Implementation

• Alaiz Case Study and Comparison

• Inflow/Outflow Profiles• Vertical/Horizontal Slices• Comparison with Met-Mast data MP5 at 118,102,90,78 and

40 meters above ground• Effects of Roughness

leblebici 8 SOWE2017

WRF Solutions

• WRF inputs

• Terrain data from UCAR (University Corporation ofAtmospheric Research)

• Initial and Boundary Conditions (ERA-Interim) from ECMWF(European Centre of Medium Range Weather Forecast)

• WRF solutions

• Horizontal Resolutions : 1km (Nest2), 3km (Nest1)• Vertical Resolution : 40m at ground level stretching rapidly• Time Resolution : 5 minutes

leblebici 9 SOWE2017

OpenFOAM Solutions - Computational Grid

• ASTER GDEM data set: ≈ 30 m terrainresolution

• Structured Stretching Grids

• Horizontal Resolution: 30 m

• Vertical Resolution: 2 m (at ground level)

leblebici 10 SOWE2017

OpenFOAM Solutions - Numerical Model

• Boundary Conditions• Side and top surfaces as spatially varying Unsteady In/Outlet• Ground as no-slip wall with rough wall functions

• Incompressible• No energy equation, Buoyancy neglected, Neutral Atmosphere

• Solver → modified PimpleFOAM with k-ǫ turbulence• Coriolis Acceleration• 40 corrector loops with under-relaxation , Time Step: Cou <40

leblebici 11 SOWE2017

OpenFOAM Solutions - Numerical Model

• Roughness and Turbulence Boundary Conditions

• k-ǫ constant, InletOutlet same as velocity BCs

• Roughness from Corine Roughness Data• Rough wall functions at the ground, y+ = 800 at first level

leblebici 12 SOWE2017

OpenFOAM Solutions - Interpolation of BCs

• Latitude-Longitude(deg)-η (WRF) to North, East Directionand Altitude(m)(OF) coordinate conversion

• Ground level matching of WRF and OpenFOAM domain• Trilinear interpolation of WRF variables to OF mesh at 5minute intervals (289 BC set for 1 day)

leblebici 13 SOWE2017

OpenFOAM Solutions - Development of a New BC Class

A new boundary condition classis developed

• Boundary Conditions fromWRF are imposed at theinflow boundaries

• Zero gradient condition isimposed at the outflowboundaries

• Inflow and Outflowboundaries are dynamicallydetermined based onextracted WRF data

leblebici 14 SOWE2017

OpenFOAM Solutions - Development of a New BC Class

leblebici 15 SOWE2017

OpenFOAM Solutions - Parallel Implementation of new BC

decomposePar utility decomposes the domain into partitions invarious ways. In this study manual decomposition is used:

• manual : user directly specifies the allocation of each cell to aparticular processor

• All the cells where the developed BC is applied, should belongto the same processor→ Face indexes should not change

• Give all of the timeVaryingMixed boundary to a singleprocessor! (while maintaining parallel efficiency!)

• Use METIS while defining all timeVaryingMixed cells as onecell and use manual decomposition

leblebici 16 SOWE2017

OpenFOAM Solutions - Parallel Implementation of new BC

• Domain decompositions

8 processors 16 processors

leblebici 17 SOWE2017

OpenFOAM Solutions - Alaiz Case Study

• Location: Navarra region, North-East of Spain

• Complex Terrain, steep slopes

• Interaction between mountain and upstream to the North

• Interaction between terrain and forest canopy

• Date: 01.01.2015

leblebici 18 SOWE2017

OpenFOAM Solutions - Inflow Boundary

leblebici 19 SOWE2017

OpenFOAM Solutions - Outflow Boundary

leblebici 20 SOWE2017

OpenFOAM Solutions - MP5 Met-Mast Location

leblebici 21 SOWE2017

OpenFOAM Solutions - Horizontal/Vertical Slices

leblebici 22 SOWE2017

OpenFOAM Solutions - Velocity Magnitude

leblebici 23 SOWE2017

OpenFOAM Solutions - Turbulent Kinetic Energy

leblebici 24 SOWE2017

OpenFOAM Solutions - Velocity Magnitude

leblebici 25 SOWE2017

OpenFOAM Solutions - 118 m above ground

leblebici 26 SOWE2017

OpenFOAM Solutions - 102 m above ground

leblebici 27 SOWE2017

OpenFOAM Solutions - 90 m above ground

leblebici 28 SOWE2017

OpenFOAM Solutions - 78 m above ground

leblebici 29 SOWE2017

OpenFOAM Solutions - 40 m above ground

leblebici 30 SOWE2017

OpenFOAM Solutions - Effects of Roughness

leblebici 31 SOWE2017

Concluding Remarks

• OpenFOAM was coupled with WRF via using low resolutionWRF data on high resolution OpenFOAM grid as unsteadyspatially varying boundary conditions (timeVaryingMixed).

• Unsteady Turbulent flow solutions are done for 24 hour periodusing k-ǫ Turbulence Model with rough wall functions inALAIZ, Spain.

• Parallel implementation of the timeVaryingMixed boundarycondition is successfully done. Accurate daily runs in highresolution can be completed within 4 hours on with 16 cores(2.3Ghz).

• Results are compared with experimental data from MP5Met-Mast, and seems promising especially in vicinity of theground.

• Studies to use TKE profiles from WRF instead of constantones is ongoing.

• Trials for different atmospheric stability conditions areongoing.

leblebici 32 SOWE2017

Acknowledgements

This work is part of NEWA (New European Wind Atlas) projectand is funded by the Scientific and Technological Research Councilof Turkey (TUBITAK) under project no 215M385.

We also would like to thank CENER for kindly sharing the AlaizMP5 Met-Mast data. Their help is greatly acknowledged.

leblebici 33 SOWE2017

Development of OpenFOAM - WRF Coupling

Methodology for Wind Power Production Estimations

Thank you

Engin [email protected]

leblebici 34 SOWE2017