Loughborough University, UK

Slides:



Advertisements
Similar presentations
Fast Adaptive Hybrid Mesh Generation Based on Quad-tree Decomposition
Advertisements

Error Indicator based on the Multidimensional Positive Definite Advection Transport Algorithm (MPDATA) Joanna Szmelter Piotr K. Smolarkiewicz Cranfield.
Compatible Spatial Discretizations for Partial Differential Equations May 14, 2004 Compatible Reconstruction of Vectors Blair Perot Dept. of Mechanical.
Discretizing the Sphere for Multi-Scale Air Quality Simulations using Variable-Resolution Finite-Volume Techniques Martin J. Otte U.S. EPA Robert Walko.
Lectures on CFD Fundamental Equations
By S Ziaei-Rad Mechanical Engineering Department, IUT.
Session: Computational Wave Propagation: Basic Theory Igel H., Fichtner A., Käser M., Virieux J., Seriani G., Capdeville Y., Moczo P.  The finite-difference.
Finite element method – basis functions 1 Finite Elements: Basis functions 1-D elements  coordinate transformation  1-D elements  linear basis functions.
Coupling Continuum Model and Smoothed Particle Hydrodynamics Methods for Reactive Transport Yilin Fang, Timothy D Scheibe and Alexandre M Tartakovsky Pacific.
A Bezier Based Approach to Unstructured Moving Meshes ALADDIN and Sangria Gary Miller David Cardoze Todd Phillips Noel Walkington Mark Olah Miklos Bergou.
Coupled Fluid-Structural Solver CFD incompressible flow solver has been coupled with a FEA code to analyze dynamic fluid-structure coupling phenomena CFD.
ECIV 720 A Advanced Structural Mechanics and Analysis
1 Internal Seminar, November 14 th Effects of non conformal mesh on LES S. Rolfo The University of Manchester, M60 1QD, UK School of Mechanical,
12/21/2001Numerical methods in continuum mechanics1 Continuum Mechanics On the scale of the object to be studied the density and other fluid properties.
Outline Introduction to Finite Element Formulations
1/36 Gridless Method for Solving Moving Boundary Problems Wang Hong Department of Mathematical Information Technology University of Jyväskyklä
ECIV 720 A Advanced Structural Mechanics and Analysis Lecture 12: Isoparametric CST Area Coordinates Shape Functions Strain-Displacement Matrix Rayleigh-Ritz.
A TWO-FLUID NUMERICAL MODEL OF THE LIMPET OWC CG Mingham, L Qian, DM Causon and DM Ingram Centre for Mathematical Modelling and Flow Analysis Manchester.
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
1 Finite-Volume Formulation. 2 Review of the Integral Equation The integral equation for the conservation statement is: Equation applies for a control.
IMAM Institute of Mechanics and Advanced Materials
© Fluent Inc. 9/5/2015L1 Fluids Review TRN Solution Methods.
Grid Generation.
CIS V/EE894R/ME894V A Case Study in Computational Science & Engineering HW 5 Repeat the HW associated with the FD LBI except that you will now use.
Hybrid WENO-FD and RKDG Method for Hyperbolic Conservation Laws
A Look at High-Order Finite- Volume Schemes for Simulating Atmospheric Flows Paul Ullrich University of Michigan.
NCAR ΔX O(10 -2 ) m O(10 2 ) m O(10 4 ) m O(10 7 ) m Cloud turbulence Gravity waves Global flows Solar convection Numerical merits of anelastic models.
C M C C Centro Euro-Mediterraneo per i Cambiamenti Climatici COSMO General Meeting - September 8th, 2009 COSMO WG 2 - CDC 1 An implicit solver based on.
Finite Element Method.
Mesh Generation 58:110 Computer-Aided Engineering Reference: Lecture Notes on Delaunay Mesh Generation, J. Shewchuk (1999)
Global models with 1 km resolution possible in near future Followed in Projects outside COSMO: ICON; NCAR- NOAA-Fort Collins; Earth simulator quasi regular.
Discontinuous Galerkin Finite Element Methods Mattheus P. Ueckermann MSEAS Group Department of Mechanical Engineering Massachusetts Institute of Technology.
A particle-gridless hybrid methods for incompressible flows
Natural Elements Method for Shallow Water Equations
Discontinuous Galerkin Methods Li, Yang FerienAkademie 2008.
Overview of Other Numerical Methods
The equations of motion and their numerical solutions II by Nils Wedi (2006) contributions by Mike Cullen and Piotr Smolarkiewicz.
Numerical simulations of inertia-gravity waves and hydrostatic mountain waves using EULAG model Bogdan Rosa, Marcin Kurowski, Zbigniew Piotrowski and Michał.
© Fluent Inc. 11/24/2015J1 Fluids Review TRN Overview of CFD Solution Methodologies.
HEAT TRANSFER FINITE ELEMENT FORMULATION
Implementation of Grid Adaptation in CAM: Comparison of Dynamic Cores Babatunde J. Abiodun 1,2 William J. Gutowski 1, and Joseph M. Prusa 1,3 1 Iowa State.
MECH4450 Introduction to Finite Element Methods Chapter 9 Advanced Topics II - Nonlinear Problems Error and Convergence.
FALL 2015 Esra Sorgüven Öner
MECH593 Introduction to Finite Element Methods
Governing Equations II
Modeling orographic flows on unstructured meshes Piotr Smolarkiewicz, National Center for Atmospheric Research*, USA; Joanna Szmelter, Loughborough University,
Deutscher Wetterdienst 1FE 13 – Working group 2: Dynamics and Numerics report ‘Oct – Sept. 2008’ COSMO General Meeting, Krakau
1 Copyright by PZ Bar-Yoseph © Finite Element Methods in Engineering Winter Semester Lecture 7.
1 On forward in time differencing: an unstructured mesh framework Joanna Szmelter Piotr Smolarkiewicz Loughborough University NCAR UK Colorado USA.
Computational Fluid Dynamics Lecture II Numerical Methods and Criteria for CFD Dr. Ugur GUVEN Professor of Aerospace Engineering.
Finite Elements in multi-dimensions
Loughborough University, UK
A Proposed Test Suite for Atmospheric Model Dynamical Cores
Reporter: Prudence Chien
Introduction to the Finite Element Method
Chamber Dynamic Response Modeling
A TWO-FLUID NUMERICAL MODEL OF THE LIMPET OWC
Implementing Finite Volume Methods
3D Object Representations
© Fluent Inc. 1/10/2018L1 Fluids Review TRN Solution Methods.
Convergence in Computational Science
Materials Science & Engineering University of Michigan
Objective Review Reynolds Navier Stokes Equations (RANS)
Fluid Flow Regularization of Navier-Stokes Equations
GENERAL VIEW OF KRATOS MULTIPHYSICS
Objective Numerical methods Finite volume.
Comparison of CFEM and DG methods
Conservative Dynamical Core (CDC)
Semi-implicit predictor-corrector methods for atmospheric models
Presentation transcript:

Loughborough University, UK Introduction to element based computing --- finite volume and finite element methods. Mesh generation Joanna Szmelter Loughborough University, UK

Traditional Discretisation Methods Finite Difference Finite Element Finite Volume

Finite Difference Method i-1,j+1 i,j+1 i+1,j+1 central i-1,j i,j i+1,j forward

Finite Volume Method From Gauss Divergence Theorem:

Element Nodes Finite Element Method 4 5 68 15 165 4 5 68 i 165 15 Weighted residual analysis:

Finite Element Method Weighted residual analysis: If W is chosen to be the same as N the method is called Galerkin method. For easy implementation of boundary conditions this is integrated by parts.

Finite Element Method 1) Divides computational space into elements For every element constructs 2) Reconnects elements at nodes Agglomerates for the whole domain 3) As a result a set of algebraic equations is formed and its solution follows

Matrix Agglomeration 3 Global matrix is a sum of all element matrixes b11+c11 b12+c12 b13 0 c15 ρ1 b21+c21 a22+b22+c22 a23+b23 a24 c25 ρ2 b31 a32+b32 a33+b33 a34 0 ρ3 0 a42 a43 a44 0 ρ4 c51 c52 0 0 c55 ρ5 1 1 4 c 2 5 Element a a22 a23 a24 ρ2 a32 a33 a34 ρ3 a42 a43 a44 ρ4 Element b b11 b12 b13 ρ1 b21 b22 b23 ρ2 b31 b32 b33 ρ3 Element c c11 c12 c15 ρ1 c21 c22 c25 ρ2 c51 c52 c55 ρ5 e.g. For the linear triangular element the consistent mass matrix a22 a23 a24 2 1 1 a32 a33 a34 = 1 2 1 a42 a43 a44 1 1 2 Area Element”a” . /12

Typical Examples of Data Structures Structured Point based --- I,J,K indexing Set of coordinates and connectivities Naturally map into the elements of a matrix i,j i,j

The tetrahedron family of elements SHAPE FUNCTIONS And when derivatives are of interest: The tetrahedron family of elements We know functions N, they are frequently polynomials -obtaining their derivatives is easy. After Zienkiewicz et al FEM 2000

SHAPE FUNCTIONS Example: a linear interpolation of a scalar T in a triangle. The value of T in an arbitrary point alpha is approximated by: where A is an area

Curvilinear elements can be formed using transformations SHAPE FUNCTIONS Curvilinear elements can be formed using transformations Isoparametric elements

Typical Examples of Data Structures Structured Binary trees

Typical Examples of Data Structures Unstructured Element based connectivity 100 20 1 3 21 Element 1 10 100 20 21 Element 2 21 11 13 10 Element 3 4 100 10 + information related to shape functions 10 4 2 11 13

Typical Examples of Data Structures Unstructured Edge 8 10 100 + geometrical information 100 10 8

Edge based data

Selected Mesh Generation Techniques Unstructured Meshes Direct triangulation Advancing Front Technique Delaunay Triangulation Others Structured Meshes Cartesian grids with mapping and/or immersed boundaries Variants of icosahedral meshes Others

An example of the direct triangulation Reduced Gaussian Grid Rossby-Haurwitz Wave Primary mesh 5 days 14 days Dual mesh

Oct.N80 and reduced meshes Insert pics of the larger meshes here (x4) will put them all on the same slide, basically same details as before (but in 4 partitions) Oct.N80 fine and ‘odd’ reduced meshes

Reduced Mesh – Baroclinic Instability Plots, look decent Day 8, horizontal velocity and potential temperature

Advancing Front Technique Simultaneous mesh point generation and connectivity

Delaunay Triangulation How to connect a given set of points?

Delaunay Triangulation Create Voronoi polygons, i.e. The construct that assigns to each point the area of the plane closer to that point than to any other point in the set. A side of a Voronoi polygon must be midway between the two points which it separates

Delaunay Triangulation If all point pairs of which have some boundary in common are joint by straight lines, the result is a triangulation of the convex hull of the points.

Delaunay Triangulation mesh constructed from the reduced Gaussian grid points

Fluxes can be constructed for the surfaces which cut cells solid Geometry conforming meshes

Meshing techniques for mesh adaptivity for lower order elements are: point enrichment (h-refinement), mesh movement -for higher order elements (p-refinement) is possible; it increases order of shape function that is the order of polynomials used for selected elements and automatic regeneration Dynamic regenerations for Meshes utilising a mapping are particularly efficient -for higher order elements (p-refinement) increases order of shape function that is the order of polynomial used for elemental interpolation

The Edge Based Finite Volume Discretisation Edges Median dual computational mesh Finite volumes

Geospherical framework (Szmelter & Smolarkiewicz, J. Comput. Phys. 2010)

A stratified 3D mesoscale flow past an isolated hill Reduced planets (Wedi & Smolarkiewicz, QJR 2009)

Stratified (mesoscale) flow past an isolated hill on a reduced planet 4 hours Fr=2 Fr=1 Fr=0.5 Hunt & Snyder J. Fluid Mech. 1980; Smolar. & Rotunno, J. Atmos. Sci. 1989 ; Wedi & Smolar., QJR 2009

Smith, Advances in Geophys 1979; Hunt, Olafsson & Bougeault, QJR 2001

Nonhydrostatic Boussinesq mountain wave Szmelter & Smolarkiewicz , Comp. Fluids, 2011 NL/Uo = 2.4 Comparison with the EULAG’s (structured mesh) results --- very close with the linear theories (Smith 1979, Durran 2003): over 7 wavelenghts : 3% in wavelength; 8% in propagation angle; wave amplitude loss 7%

in an isothermal stratosphere Gravity wave breaking in an isothermal stratosphere Lipps & Hemler Durran (Prusa et al JAS 1996, Smolarkiewicz & Margolin, Atmos. Ocean 1997 Klein, Ann. Rev. Fluid Dyn., 2010, Smolarkiewicz et al Acta Geoph 2011)

in an isothermal stratosphere Smolarkiewicz et al Acta Geoph 2011 Gravity wave breaking in an isothermal stratosphere Nonhydristatic Edge-Based NFT EULAG CV/GRID Durran Lipps & Hemler

Static mesh adaptivity with MPDATA based error indicator Schär Mon. Wea. Rev. 2002 (Recommended mesh ca10000 points) Coarse initial mesh 80x45 =3600 points and solution Adapted mesh 8662 points and solution

Stratified flow past a steep isolated hill 1121192 Cartesian dx=100 692533 Distorted prisms dx=100-400 441645 tetra dx=50 -450

Stratified flow past a steep isolated hill Hunt & Snyder JFM 1980 Smolarkiewicz & Rotuno JAS 1989

Low Froude Number Fr=0.3 Flow Past a Sphere and Hemi-Sphere Hanazaki , JFM 1989 Low Froude Number Fr=0.3 Flow Past a Sphere and Hemi-Sphere Hybrid mesh

Hanazaki , JFM 1989

Convective Planetary Boundary Layer Schmidt & Schumann JFM 1989 Smolarkiewicz et al JCP 2013 Edge-based T Edge-based C EULAG SS LES Observation 64x64x51

What inherent constraints does a flow solver choice pose on a mesh? CONVERGENCE OF FINITE-VOLUME MPDATA ON UNSTRUCTURED MESH

Selected references for further details Smolarkiewicz, PK, Szmelter, J, Wyszogrodzki, AA (2013) An unstructured-mesh atmospheric model for nonhydrostatic dynamics, Journal of Computational Physics, 254,pp.184-199 Smolarkiewicz, PK and Szmelter, J (2011) A Nonhydrostatic Unstructured-Mesh Soundproof Model for Simulation of Internal Gravity Waves, Acta Geophysica, 59(6),pp.1109-1134 Szmelter, J and Smolarkiewicz, PK (2011) An edge-based unstructured mesh framework for atmospheric flows, Computers and Fluids, 46(1), pp.455-460. Szmelter, J and Smolarkiewicz, PK (2010) An edge-based unstructured mesh discretisation in geospherical framework, Journal of Computational Physics, 229, pp.4980-4995. Smolarkiewicz, PK and Szmelter, J (2009) Iterated upwind schemes for gas dynamics, Journal of Computational Physics, 228(1), pp.33-54 Smolarkiewicz, PK and Szmelter, J (2008) An MPDATA-based solver for compressible flows, International Journal for Numerical Methods in Fluids, 56(8), pp.1529-1534 Szmelter, J and Smolarkiewicz, PK (2006) MPDATA error estimator for mesh adaptivity, International Journal for Numerical Methods in Fluids, 50(10), pp.1269-1293 Smolarkiewicz, PK and Szmelter, J (2005) MPDATA: An Edge-Based Unstructured-Grid Formulation, Journal of Computational Physics, 206(2), pp.624-649 Zienkiewicz OC, Taylor RL, The Finite Element Method,5th Ed, Butterworth-Heineman, (2000) Szmelter, J and Pagano, A (1995) Viscous flow modelling using unstructured meshes for aeronautical applications, Lecture Notes in Physics, Springer (453), pp.292-298 Evans, A, Marchant, MJ, Weatherill, NP, Szmelter, J, Natukusumah, DK (1992) A Point Enrichment Strategy for Polygonal Finite Volume Meshes, Applied Mathematical Modelling, 16, pp.562-575. Szmelter, J, Marchant, MJ, Evans, A, Weatherill, NP (1992) Two-dimensional Navier-Stokes Equations - Adaptivity on Structured Meshes, Comp. Meth. Appl. Mech. Eng, 101, pp.355-368. Evans, A, Marchant, MJ, Szmelter, J, Weatherill, NP (1991) Adaptivity for Compressible Flow Computations Using Point Embedding on 2-D Structured Multiblock Meshes, International Journal for Numerical Methods in Engineering, 32, pp.896-919 Zienkiewicz, OC, Szmelter, J, Peraire, J (1990) Compressible and Incompressible Flow: An Algorithm for All Seasons, Comp. Meth. Appl. Mech. Eng, 78, pp.105-121. Wu, J, Zhu, JZ, Szmelter, J, Zienkiewicz, OC (1990) Error Estimation and Adaptivity in Navier-Stokes Incompressible Flows, Computational Mechanics, 6, pp.259-270.