Basic introduction to Gmsh Ashvinkumar Chaudhari LUT School of Engineering Science 22.03.2016 BM20A5100 Scientific Computing and Numerics for PDEs.

Slides:



Advertisements
Similar presentations
Practical Course SC & V Free Boundary Value Problems Dr. Miriam Mehl Institut für Informatik Scientific Computing in Computer Science.
Advertisements

CHAPTER 1: COMPUTATIONAL MODELLING
The analysis of the two dimensional subsonic flow over a NACA 0012 airfoil using OpenFoam is presented. 1) Create the geometry and the flap Sequence of.
Workshop 15 Hybrid meshing of a simple HVAC assembly
Workshop 5 Centrifugal Pump
COMSOL Step-by-Step Tutorial Expt 140 – Tank Discharge March 4, 2013 Team 2 Joseph Duffy Zlatko Sokolikj Andrew Suellentrop.
Computational Physics Finite-Elements mini-course using FlexPDE
IE433 CAD/CAM Computer Aided Design and Computer Aided Manufacturing Part-4 Computer Graphics- CAD Software Dr. Abdulrahman M. Al-Ahmari Industrial Engineering.
Gambit Overview Ahmadi/Nazridoust ME 437/537/637.
Lesson 1 Introduction.  Workbook- Use it like one (You are not going to sell this book back)  Use Questions and Exercises at end of each chapter to.
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Editing in ArcMap:
Computer Graphics Computer Graphics is everywhere: Visual system is most important sense: High bandwidth Natural communication Fast developments in Hardware.
SolidWorks Teacher Guide Lesson2
Computer Aided Thermal Fluid Analysis Lecture 3 Dr. Ming-Jyh Chern ME NTUST.
Main Navigation  Similar to Unity 3D  Unlike Unity it is a right handed coordinate system  Used to determines whether a positive rotation is clockwise.
TransAT Tutorial Particle Tracking July 2015 ASCOMP
Ken YoussefiIntroduction to Engineering – E10 1. Various Blade designs Ken YoussefiIntroduction to Engineering – E10 2.
Workbench project schematic Place the new component on its source.
XP Tutorial 10New Perspectives on HTML and XHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial.
1 DKT 211 Basic Communication Engineering LAB # 1A : (Lecture 1) Introduction to Matlab  Basic Features  Scientific features  Array Operations  Script.
Aerospace Engineering Iowa State University 311L Fall 2003 CFD Exercises 1 Course : Aer E 311L Gas Dynamics Lab.
CFX-10 Introduction Lecture 1.
Vertices, Edges and Faces By Jordan Diamond. Vertices In geometry, a vertices is a special kind of point which describes the corners or intersections.
Introduction to 3d Modeling Simple Polygon Modeling Using 3D Max
1 Ι © Dassault Systèmes Ι Confidential Information Ι Instructor’s Guide to Teaching SolidWorks Software Lesson 2 School’s Name Teacher’s Name Date.
TransAT Tutorial Separation of Oil, Gas & Water July 2015 ASCOMP
Dimensions, Radius: 4 Extrude, sketch1, add frozen, 20cm.
Multigrid Methods The Implementation Wei E Universität München. Ferien Akademie 19 th Sep
TransAT Tutorial Dam Break June 2015 ASCOMP
Claritas 3D REFSTAT: Refraction statics calculations.
TransAT Tutorial Flow over a Cylinder (Re=150) June 2015 ASCOMP
A Fully Conservative 2D Model over Evolving Geometries Ricardo Canelas Master degree student IST Teton Dam 1976.
The Tail, this is what we want to make. Extrude Mirror Radius.
Computer Graphics Imaging Lecture 13 and 14 UV Mapping.
Demonstration of Elmer Ashvinkumar Chaudhari LUT School of Engineering Science BM20A5100 Scientific Computing and Numerics for PDEs.
1 Tutorial. 2 Solution Process 1.Gather Information 2.Create the Computational Grid 3.Set the Boundary Conditions 4.Set the Initial Conditions 5.Set the.
Version 1.0 3/23/2007 © 2007 ANSYS, Inc. All rights reserved. Inventory # W3-1 BladeModeler 11.0 ANSYS, Inc. Proprietary ANSYS BladeModeler 11.0.
Thurso High School Design and Technology Tutorial Two Dice.
Learning Objectives Understand the concept of massing in Autodesk Revit Architecture. Create massing geometries using the Massing tool. Cut massing geometries.
TransAT Tutorial Backward Step May 2015 ASCOMP
Introduction to Engineering, E10.
3D Modeling Engineering II.
Chapter 5.1 Mesh Preparation and Output to Solver
Chapter 5 Prism Meshing – Workshop 2 Wingbody
Chapter 3 Shell Meshing – Workshop 1 Stamped Part
Chapter 3 Shell Meshing – Workshop 2 Wingbody – F6 Model
Static Mixer: Geometry and Mesh
Drawing Geometric Objects
Agenda • 1 - Play Button redo, tutorial What is ActionScript
3D Modeling & Animation Software
Unit 11: 3-Dimensional Geometry
Decimation Of Triangle Meshes
Workshop 6 Modeling of Catalytic Convertor
Kratos 3D Structural Analysis Tutorial
Workshop 5 Centrifugal Pump
Task 12 Describe the application and use of modelling tools (such as for straight lines, curves and circles; how to add dimensions and text to drawings).
Chapter 8 Surface Meshing
Lecture Objectives Learn about Implementation of Boundary Conditions
Unit 11: 3-Dimensional Geometry
GeoFEST tutorial What is GeoFEST?
Introduction to 3D Art and Animation
3D Max screen shot Top view Right side view Front view
Computer Animation UV Mapping.
Mesh Parameterization: Theory and Practice
3D Modeling Engineering II.
3D Modeling Engineering II.
Claritas 3D REFSTAT: Refraction statics calculations
Lecture Objectives: Start using CFD Software Class project 1
PRO-DESKTOP TUTORIAL 2. Use Shift+w to have the workplane facing you.
Presentation transcript:

Basic introduction to Gmsh Ashvinkumar Chaudhari LUT School of Engineering Science BM20A5100 Scientific Computing and Numerics for PDEs

Task 1 Make a simple 2D square using following dimensions Mesh the domain using different techniques (0,0)(10,0) (10,10) (0,10) 10

Steps Point Line Surface (2D) Meshing

Lines and surfaces Make a straight lines using points Loop them to create surface (2D) Use script option for faster output Point(1) Point(2) Point(3) Point(4) Line(1) Line(2) Line(3) Line(4)

Mesh The default mesh in Gmsh Can be improved using “Transfinite”

Script file Faster using script file Add directly in the script (text) using any text editor Then press “Reload” to bring the new changes into Gmsh

Structural mesh Add directly the script file, save it and reload in Gmsh

Changing the mesh parameters Make finer mesh toward boundaries Use “Bump” option

Some more options Note the comment symbol “//”

Task 2: step D D 10D 3D 7D 2D Create the following geometry and grid it D=1 m

The script file for step // Gmsh project created on Mon Mar 21 16:43: Point(1) = {0, 0, 0, 1.0}; Point(2) = {3, 0, 0, 1.0}; Point(3) = {3, -1, 0, 1.0}; Point(4) = {10, -1, 0, 1.0}; Point(5) = {10, 1, 0, 1.0}; Point(6) = {3, 1, 0, 1.0}; Point(7) = {0, 1, 0, 1.0}; Line(1) = {7, 6}; Line(2) = {6, 5}; Line(3) = {5, 4}; Line(4) = {4, 3}; Line(5) = {3, 2}; Line(6) = {2, 1}; Line(7) = {1, 7}; Delete { Line{3}; } Line(8) = {6, 2}; Point(8) = {10, 0, 0, 1.0}; Line(9) = {5, 8}; Line(10) = {8, 4}; Line(11) = {2, 8}; Line Loop(12) = {1, 8, 6, 7}; Plane Surface(13) = {12}; Line Loop(14) = {2, 9, -11, -8}; Plane Surface(15) = {14}; Line Loop(16) = {11, 10, 4, 5}; Plane Surface(17) = {16}; Transfinite Line {1, 6} = 60 Using Progression 1; Transfinite Line {7, 8, 9} = 40 Using Progression 1; Transfinite Line {7} = 40 Using Progression 1; Transfinite Line {2, 11, 4} = 140 Using Progression 1; Transfinite Line {5, 10} = 40 Using Progression 1; Transfinite Surface {13}; Recombine Surface {13}; Transfinite Surface {15}; Recombine Surface {15}; Transfinite Surface {17}; Recombine Surface {17}; Physical Surface ("Fluid") = {13,15,17}; Physical Line ("inlet") = {7}; Physical Line ("out") = {9,10}; Physical Line ("walls") = {1,2,4,5,6}; 1 2

Spline curves Point(1) = {0,0,0,0.1}; Point(2) = {1,0.2,0,0.1}; Point(3) = {2,0,0,0.1}; Spline(1) = {1,2,3} ; Point(4) = {-0.5,1,0,0.1}; Point(5) = {1,1.2,0,0.1}; Point(6) = {2.5,1,0,0.1}; Spline(2) = {4,5,6} ; Line(3)={1,4}; Line(4)={3,6}; Line Loop(1) = {1,4,-2,-3} ; Plane Surface(1) = {1}; // Tell Gmsh how many cells you want per edge Transfinite Line{3,4} = 10; Transfinite Line{1,2} = 15; // Tell Gmsh what the corner points are(going clockwise or counter-clockwise): Transfinite Surface{1} = {1,3,6,4}; // Recombine the triangles into quads: Recombine Surface{1}; // Extrued for a psudo 2D mesh :) Extrude {0,0,0.15} {Surface{1}; Layers{1}; Recombine; } 1 2

Some tutorials from internet 2D axisymmetric stenosis Von Karman vortex street