Simulating Wind Over Terrain: How to Build an OpenFOAM Case from GRASS GIS Digital Elevation Models

Size: px
Start display at page:

Download "Simulating Wind Over Terrain: How to Build an OpenFOAM Case from GRASS GIS Digital Elevation Models"

Transcription

1 Simulating Wind Over Terrain: How to Build an OpenFOAM Case from GRASS GIS Digital Elevation Models Eric Hardin April 26, 2013 Abstract This document describes the process for generating an OpenFOAM case from digital elevation model (DEM) data in GRASS GIS format for the purpose of simulating the wind field over complex terrains. Specifically, the steps are shown to adapt the cavity tutorial case to simulate the wind field over Jockey s Ridge Sand Dune. Additionally, the wind-borne surface shear stress is computed and imported back into GRASS GIS. Keywords. OpenFOAM, GRASS GIS, wind modeling, complex terrain, surface shear stress 1 Introduction This document covers the basics of how to build an OpenFOAM case from GRASS DEM data for the purpose of simulating the wind field over a complex terrain. In this document, the cavity tutorial case (OpenFOAM/OpenFOAM-1.7.x/tutorials/incompressible/icoFoam/cavity; ver. 1.7.x) is adapted to simulate wind over Jockey s Ridge Sand Dune (DEM data in Jockey s Ridge data set V 0.1). The cavity tutorial is used here for simplicity because the icofoam solver requires relatively few case files. Other tutorial cases can be adapted with a similar workflow (e.g, the pitzdaily case, which uses the steady-state turbulence solver, simplefoam). This document is organized as follows: Section 2 covers manipulation of GRASS DEM data for OpenFOAM mesh generation; Section 3 describes editing boundary conditions; Section 4 briefly describes execution of a solver for computation of the wind field; Section 5 describes computation of the surface shear stress (required for sand flux studies), as well as importing the shear stress results back into GRASS; and Section 6 is a brief summary of the OpenFoam module execution. The appendix includes some miscellaneous notes, a Python script that converts GRASS DEMs to stereolithography (STL) format, and the case files that result from the workflow described here. Caveat: I hope this document can be helpful for someone trying to incorporate terrain into OpenFOAM simulations. The workflow outlined here is only meant to help produce a minimal working OpenFOAM case, which incorporates complex terrain from GRASS DEMs. The case will likely produce poor results because much of the sophistication required to accurately model wind has been left out for succinctness. But once the case is indeed producing results, then additional complexity beyond the scope of this document can be incorporated. 1

2 2 Generate a New OpenFOAM Mesh from DEM Data To begin, copy and rename the cavity tutorial case cd OpenFOAM/OpenFOAM-1.7.x/tutorials/incompressible/icoFoam cp -r cavity JR cd JR OpenFOAM mesh generation occurs in two steps: (1) a background mesh is generated, and (2) the mesh is refined to fit a geometry (e.g., an air foil or in our case, the terrain surface). BlockMesh generates the background mesh according to constant/polymesh/blockmeshdict SnappyHexMesh refines the mesh according to system/snappyhexmeshdict a.stl file in constant/trisurface defines the geometry The cavity tutorial does not use snappyhexmesh, so the constant/trisurfaces directory, the snappyhexmeshdict, and also decomposepardict need to be included in the case. These can be copied from another tutorial. mkdir constant/trisurface cp../../simplefoam/motorbike/system/snappyhexmeshdict system/ cp../../simplefoam/motorbike/system/decomposepardict system/ 2.1 Generate STL Geometry First, we generate the STL geometry by converting a GRASS raster DEM to STL format. STL format is similar to a TIN, except it defines the shell of a volume with a set of interlocking triangular facets. STL files begin with the name of the geometry solid solid_name and end with endsolid solid_name where solid_name is user defined. Between these lines is a list of triangular facets. A facet is defined with facet normal ni nj nk outer loop vertex v1x v1y v1z vertex v2x v2y v2z vertex v3x v3y v3z endloop endfacet where ni nj nk are the components of a normalized surface-normal vector, and v1x v1y v1z are the coordinates of the first vertex in the triangular face. Facets can be generated by connecting the centers of four adjacent raster cells in the DEM to make two facets (Figure 1). Additionally, the STL geometry needs to enclose a volume, which 2

3 DEM Grid Cells STL Facets Border of DEM 1 cell thick, z = 0 Figure 1: Converting a raster DEM to STL format by connecting raster grid cell centers to make facets. STL encloses a volume, and so there need to be facets along the terrain surface and also at a base elevation. means that the DEM needs a bottom. So for each facet, I generate a flat facet directly below it at a base elevation (e.g., same (x, y) but z = 0). To connect the DEM to the base so that the STL geometry completely encloses a volume, I make a border around the DEM that is one raster cell thick with an elevation equal to the base elevation. The Python script that converts DEMs to STL format is included in Appendix B. Also, OpenFOAM doesn t seem to like the large coordinate values that are typical for a state plane coordinate system, so the script translates coordinates back to the origin. For the purpose of this example, let s zoom to a smaller region to keep the OpenFOAM case file from getting too large g.region n= s= w= e= res=1 Now, we can run the script to convert the DEM to an STL file making sure the resulting.stl file is in constant/trisurface. For convenience, I call the Python interpreter from inside the GRASS terminal, and then, copy-and-paste the script text into the interpreter. The DEM (viewed in GRASS) is shown in Figure 2a and the converted STL file (viewed in ParaView) is shown in Figure 2b. 2.2 Edit blockmeshdict Once the STL geometry has been generated, a new background mesh needs to be generated, which requires editing the blockmeshdict. The GRASS region was 470 m in the N-S direction and 648 m in the E-W direction with 1 m resolution, so change the location of the eight vertices that define the computational domain and the mesh grading (Appendix C.3). Also, the cavity tutorial case is 2D. To change it to 3D, change the empty type patches to wall type patches; I called one of the patches inlet and the other outlet because I was intending to set up a horizontal wind. Once blockmeshdict is edited, generate the background mesh by running blockmesh 3

4 (a) DEM viewed in GRASS GIS (b) STL geometry viewed in ParaView Figure 2: Raster DEM viewed in GRASS GIS and converted STL geometry viewed in ParaView 4

5 Figure 3: STL terrain surface geometry and cross-section of OpenFOAM mesh, viewed in ParaView. 2.3 Edit snappyhexmeshdict Once the background mesh is generated, change the snappyhexmeshdict in the following ways: comment out the refinementbox on lines and replace motorbike with terrain (i.e., the name of our geometry) on lines 31, 34, 112 remove layers definition from lines 189 to 463 and replace with layers terrain.* nsurfacelayers 4; change locationinmesh in line 154 to be a location within the computational domain and above the DEM surface, e.g., locationinmesh ( ); Now, complete the mesh generation by running snappyhexmesh -overwrite 3 Change Boundary Conditions Boundary conditions are stored in the 0 directory: U is the fluid velocity and p is the pressure. An initial condition needs to be specified for each boundary, i.e., each type of wall patch. In BlockMeshDict, wall patches are defined (e.g., movingwall, fixedwalls, inlet, and outlet). snappy- HexMesh defines an additional patch, which is called geometry name where geometry is the name of the.stl file, and name is the name of the solid in the first line of the stl file, e.g., solid terrain. 5

6 The boundary conditions are as follows: for U: outlet gets outlet type and everything else gets wall_name type value zerogradient; fixedvalue; uniform (vx vy vz); where wall name is the user-defined name and vx vy vz are numerical values. for p: outlet gets outlet type fixedvalue; value uniform 0; and everything else gets wall_name type zerogradient; where wall name is the user-defined name. More sophisticated boundary conditions are available as well. 4 Compute Fluid Flow Once the mesh is generated and the boundary conditions are specified, the non-turbulent, incompressible fluid flow is computed by executing icofoam Simulation details (e.g,. time step and write interval) are specified in system/controldict. In this file the solver is also specified. 6

7 5 Compute Surface Shear Stress Once the fluid flow is computed, the shear stress can be computed by running wallshearstress -latesttime The surface shear stress along terrain can be sampled (for easier processing) by generating the system/sampledict file (included in Appendix C.7) and running: sample The resulting surface shear stress will be written to surfaces/"latesttime"/wallshearstress_ wall.raw where "latesttime" is the latest time step to have output data written. The wallshearstress_ wall.raw file contains a two-line header followed by six-column space delimited data in which the fields are x, y, z, τ x, τ y, and τ z, where τ is the surface shear stress. The data can be imported into GRASS using v.in.ascii input=wallshearstress_wall.raw output=wallshearstress_wall fs= \ skip=2 columns= x double precision, y double precision, z double precision, \ tau_x double precision, tau_y double precision, tau_z double precision Raster maps representing the surface shear stress can be interpolated by executing v.surf.bspline input=wallshearstress_wall raster=tau_x column=tau_x v.surf.bspline input=wallshearstress_wall raster=tau_y column=tau_y r.mapcalc expression= tau=sqrt(tau_x^2+tau_y^2) 6 Summary of Module Execution blockmesh snappyhexmesh -overwrite icofoam >& log wallshearstress -latesttime sample References [1] Eric Hardin. (2013). A Transient Landscape: Geospatial Analysis and Numerical Modeling of Coastal Geomorphology in the Outer Banks, North Carolina. (Doctoral dissertation). http: //repository.lib.ncsu.edu/ir/handle/ /

8 A Miscilaneous Notes If you get: --> FOAM FATAL IO ERROR: cannot find file file: /home/eric/openfoam/eric-2.1.0/run/tutorials/incompressible/icofoam/jr\ /0.5/p at line 0. then this is because snappyhexmesh was not executed with -overwrite. Rerun snappy- HexMesh with -overwrite or copy the contents of lasttimestep/polymesh to constant/ polymesh. If you alter blockmeshdict and rerun snappyhexmesh, you will get an error. In this case, you need to delete the contents of constant/polymesh except for blockmeshdict and rerun snappyhexmesh. If you get --> FOAM FATAL IO ERROR: Unable to set reference cell for field p Please supply either prefcell or prefpoint when running simplefoam, add lines prefpoint (x y z); prefvalue 0; into Simple dictionary in system/fvsolution where x y z is a location in the computational domain and above the terrain surface. if you get a continuity error, try running checkmesh The mesh may have a problem. if you try to view the mesh in ParaView and you can only see the terrain, then check to make sure ref point in snappyhexmeshdict is above the terrain surface. If you get an error running parafoam, then try running foamtovtk paraview If this gives an error, then cd /0 rm cell etc., and rerun foamtovtk and paraview. 8

9 To incorporate surface roughness, in 0/nut replace nutwallfunction with nutroughwallfunction terrain_terrain //type nutwallfunction; type nutroughwallfunction; Ks uniform 0.02; Cs uniform 0.5; value uniform 0; The solver potentialfoam solves for the potential flow. The results of potentialfoam can be used as the initial condition for other solvers, e.g., simplefoam. This can improve stability and time to convergence. To use potentialfoam to generate improved initial conditions for a simplefoam case 1. edit system/controldict by changing simplefoam to potentialfoam 2. edit system/fvschemes by changing laplacian((1 A(U)),p) to laplacian(1,p) 3. run potentialfoam 4. revert changes 5. run simplefoam Note that potentialfoam overwrites 0/U, so it may be a good idea to make a backup. 9

10 B Convert DEM to STL script 1 import grass.script as grass 2 import tempfile 3 from numpy import array,cross,sqrt 4 5 dem_name = elev_2008_1m 6 solid_name = terrain 7 foutname = constant/trisurface/terrain.stl 8 9 def make_facet_str( n, v1, v2, v3 ): 10 facet_str = facet normal +.join( map(str,n) ) + \n 11 facet_str += outer loop\n 12 facet_str += vertex +.join( map(str,v1) ) + \n 13 facet_str += vertex +.join( map(str,v2) ) + \n 14 facet_str += vertex +.join( map(str,v3) ) + \n 15 facet_str += endloop\n 16 facet_str += endfacet\n 17 return facet_str # make a dem but with a border of minimum elevation 20 stats = grass.parse_command( r.univar, flags= g, map=dem_name) 21 base_elev = float(stats[ min ]) # base is 0.1m below min elev but could be anything 22 reg = grass.region() 23 grass.run_command( r.mapcalc, expression= temp= +dem_name, overwrite=true) 24 # extend region by one cell for border 25 n_new = reg[ n ]+reg[ nsres ] 26 s_new = reg[ s ]-reg[ nsres ] 27 e_new = reg[ e ]+reg[ ewres ] 28 w_new = reg[ w ]-reg[ ewres ] 29 grass.run_command( g.region, n=n_new, s=s_new, e=e_new, w=w_new) 30 grass.run_command( r.mapcalc, expression= temp2=if(isnull(temp), +str(base_elev) +,temp), overwrite=true) # read raster data 33 elev = grass.read_command( r.out.ascii, input= temp2, output= - ) 34 elev = elev.strip( \n ).split( \n )[6:] 35 elev = [ map(float,line.split()) for line in elev ] 36 # transpose and reverse to make [0,0] the SW corner 37 elev.reverse() 38 elev = map(list, zip(*elev)) # construct text for STL file 41 stl_str = solid + solid_name + \n 10

11 42 for i in range(len(elev)-1): 43 for j in range(len(elev[0])-1): 44 x = (i-1)*reg[ ewres ]; y = (j-1)*reg[ nsres ] 45 v1 = [ x, y, elev[i][j] ] 46 x = i*reg[ ewres ]; y = (j-1)*reg[ nsres ] 47 v2 = [ x, y, elev[i+1][j] ] 48 x = (i-1)*reg[ ewres ]; y = j*reg[ nsres ] 49 v3 = [ x, y, elev[i][j+1] ] 50 x = i*reg[ ewres ]; y = j*reg[ nsres ] 51 v4 = [ x, y, elev[i+1][j+1] ] 52 # dem facet 1 53 n = cross( array(v1)-array(v2), array(v1)-array(v3) ) 54 n = n / sqrt( sum( n**2 ) ) 55 stl_str += make_facet_str( n, v1, v2, v3 ) 56 # dem facet 2 57 n = cross( array(v2)-array(v3), array(v2)-array(v4) ) 58 n = n / sqrt( sum( n**2 ) ) 59 stl_str += make_facet_str( n, v2, v3, v4 ) 60 # base facets 61 v1[-1] = base_elev 62 v2[-1] = base_elev 63 v3[-1] = base_elev 64 v4[-1] = base_elev 65 n = [0.0,0.0,-1.0] 66 stl_str += make_facet_str( n, v1, v2, v3 ) 67 stl_str += make_facet_str( n, v2, v3, v4 ) stl_str += endsolid + solid_name + \n fout = open(foutname, w ) 72 fout.write( stl_str ) 73 fout.close() 11

12 Figure 4: OpenFOAM directory tree and case files. C Case Directory and Case files The directory tree of the OpenFOAM case produced by in this document is shown in Figure 4 12

13 C.1 0/p /* *- C++ -* *\ ========= \\ / F ield OpenFOAM: The Open Source CFD Toolbox \\ / O peration Version: \\ / A nd Web: \\/ M anipulation \* */ FoamFile version 2.0; format ascii; class volscalarfield; object p; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [ ]; internalfield uniform 0; boundaryfield movingwall type fixedwalls type inlet type zerogradient; zerogradient; zerogradient; outlet type fixedvalue; value uniform 0; terrain_terrain 13

14 type zerogradient; // ************************************************************************* // 14

15 C.2 0/U /* *- C++ -* *\ ========= \\ / F ield OpenFOAM: The Open Source CFD Toolbox \\ / O peration Version: \\ / A nd Web: \\/ M anipulation \* */ FoamFile version 2.0; format ascii; class volvectorfield; object U; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [ ]; internalfield uniform (0-10 0); boundaryfield movingwall type fixedvalue; value uniform (0-10 0); fixedwalls type fixedvalue; value uniform (0 0 0); inlet type fixedvalue; value uniform (0-10 0); outlet type zerogradient; 15

16 terrain_terrain type fixedvalue; value uniform (0 0 0); // ************************************************************************* // 16

17 C.3 constant/polymesh/blockmeshdict /* *- C++ -* *\ ========= \\ / F ield OpenFOAM: The Open Source CFD Toolbox \\ / O peration Version: \\ / A nd Web: \\/ M anipulation \* */ FoamFile version 2.0; format ascii; class dictionary; object blockmeshdict; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // converttometers 1; vertices ( (0 0 0) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ); blocks ( hex ( ) ( ) simplegrading (1 1 1) ); edges ( ); patches ( wall movingwall ( ( ) 17

18 ); ) wall fixedwalls ( ( ) ( ) ( ) ) wall inlet ( ( ) ) wall outlet ( ( ) ) mergepatchpairs ( ); // ************************************************************************* // 18

19 C.4 system/controldict /* *- C++ -* *\ ========= \\ / F ield OpenFOAM: The Open Source CFD Toolbox \\ / O peration Version: \\ / A nd Web: \\/ M anipulation \* */ FoamFile version 2.0; format ascii; class dictionary; location "system"; object controldict; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application startfrom icofoam; starttime; starttime 0; stopat endtime; endtime 0.5; deltat 0.05; writecontrol timestep; writeinterval 5; purgewrite 0; writeformat ascii; writeprecision 6; writecompression uncompressed; timeformat general; timeprecision 6; 19

20 runtimemodifiable yes; // ************************************************************************* // 20

21 C.5 system/fvschemes /* *- C++ -* *\ ========= \\ / F ield OpenFOAM: The Open Source CFD Toolbox \\ / O peration Version: \\ / A nd Web: \\/ M anipulation \* */ FoamFile version 2.0; format ascii; class dictionary; location "system"; object fvschemes; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // ddtschemes default gradschemes default grad(p) divschemes default div(phi,u) Euler; Gauss linear; Gauss linear; none; Gauss linear; laplacianschemes default none; laplacian(nu,u) Gauss linear corrected; laplacian((1 A(U)),p) Gauss linear corrected; interpolationschemes default linear; 21

22 interpolate(hbya) linear; sngradschemes default corrected; fluxrequired default no; p ; // ************************************************************************* // 22

23 C.6 system/fvsolution /* *- C++ -* *\ ========= \\ / F ield OpenFOAM: The Open Source CFD Toolbox \\ / O peration Version: \\ / A nd Web: \\/ M anipulation \* */ FoamFile version 2.0; format ascii; class dictionary; location "system"; object fvsolution; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // solvers p solver PCG; preconditioner DIC; tolerance 1e-06; reltol 0; U solver PBiCG; preconditioner DILU; tolerance 1e-05; reltol 0; PISO ncorrectors 2; nnonorthogonalcorrectors 0; prefcell 0; prefvalue 0; // ************************************************************************* // 23

24 C.7 system/sampledict /* *- C++ -* *\ ========= \\ / F ield OpenFOAM: The Open Source CFD Toolbox \\ / O peration Version: \\ / A nd Web: \\/ M anipulation \* */ FoamFile version 2.0; format ascii; class dictionary; location system; object sampledict; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // setformat xmgr; surfaceformat raw; interpolationscheme cellpoint; fields ( wallshearstress ); sets ( ); surfaces ( wall type patchname ); patch; terrain_terrain; // *********************************************************************** // 24

25 C.8 system/snappyhexmeshdict /* *- C++ -* *\ ========= \\ / F ield OpenFOAM: The Open Source CFD Toolbox \\ / O peration Version: \\ / A nd Web: \\/ M anipulation \* */ FoamFile version 2.0; format ascii; class dictionary; object snappyhexmeshdict; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Which of the steps to run castellatedmesh true; snap true; addlayers true; // Geometry. Definition of all surfaces. All surfaces are of class // searchablesurface. // Surfaces are used // - to specify refinement for any mesh cell intersecting it // - to specify refinement for any mesh cell inside/outside/near // - to snap the mesh boundary to the surface geometry terrain.stl type trisurfacemesh; name terrain; ; /*refinementbox type searchablebox; min ( ); max ( ); */ 25

26 // Settings for the castellatedmesh generation. castellatedmeshcontrols // Refinement parameters // ~~~~~~~~~~~~~~~~~~~~~ // If local number of cells is >= maxlocalcells on any processor // switches from from refinement followed by balancing // (current method) to (weighted) balancing before refinement. maxlocalcells ; // Overall cell limit (approximately). Refinement will stop immediately // upon reaching this number so a refinement level might not complete. // Note that this is the number of cells before removing the part which // is not visible from the keeppoint. The final number of cells might // actually be a lot less. maxglobalcells ; // The surface refinement loop might spend lots of iterations refining just a // few cells. This setting will cause refinement to stop if <= minimumrefine // are selected for refinement. Note: it will at least do one iteration // (unless the number of cells to refine is 0) minrefinementcells 10; // Allow a certain level of imbalance during refining // (since balancing is quite expensive) // Expressed as fraction of perfect balance (= overall number of cells / // nprocs). 0=balance always. maxloadunbalance 0.10; // Number of buffer layers between different levels. // 1 means normal 2:1 refinement restriction, larger means slower // refinement. ncellsbetweenlevels 3; // Explicit feature edge refinement // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Specifies a level for any cell intersected by its edges. 26

27 // This is a featureedgemesh, read from constant/trisurface for now. features ( // // file "someline.emesh"; // level 2; // ); // Surface based refinement // ~~~~~~~~~~~~~~~~~~~~~~~~ // Specifies two levels for every surface. The first is the minimum level, // every cell intersecting a surface gets refined up to the minimum level. // The second level is the maximum level. Cells that see multiple // intersections where the intersections make an // angle > resolvefeatureangle get refined up to the maximum level. refinementsurfaces terrain // Surface-wise min and max refinement level level (5 6); // Resolve sharp angles resolvefeatureangle 30; // Region-wise refinement // ~~~~~~~~~~~~~~~~~~~~~~ // Specifies refinement level for cells in relation to a surface. One of // three modes // - distance. levels specifies per distance to the surface the // wanted refinement level. The distances need to be specified in // descending order. // - inside. levels is only one entry and only the level is used. All // cells inside the surface get refined up to the level. The surface // needs to be closed for this to be possible. // - outside. Same but cells outside. 27

28 refinementregions //refinementbox // // mode inside; // levels ((1E15 4)); // // Mesh selection // ~~~~~~~~~~~~~~ // After refinement patches get added for all refinementsurfaces and // all cells intersecting the surfaces get put into these patches. The // section reachable from the locationinmesh is kept. // NOTE: This point should never be on a face, always inside a cell, even // after refinement. //locationinmesh ( ); locationinmesh ( ); // Settings for the snapping. snapcontrols //- Number of patch smoothing iterations before finding correspondence // to surface nsmoothpatch 3; //- Relative distance for points to be attracted by surface feature point // or edge. True distance is this factor times local // maximum edge length. tolerance 4.0; //- Number of mesh displacement relaxation iterations. nsolveiter 30; //- Maximum number of snapping relaxation iterations. Should stop // before upon reaching a correct mesh. nrelaxiter 5; 28

29 // Settings for the layer addition. addlayerscontrols // Are the thickness parameters below relative to the undistorted // size of the refined cell outside layer (true) or absolute sizes (false). relativesizes true; // Per final patch (so not geometry!) the layer information layers //"(outlet terrain).*" terrain.* nsurfacelayers 4; // Expansion factor for layer mesh expansionratio 1.0; //- Wanted thickness of final added cell layer. If multiple layers // is the thickness of the layer furthest away from the wall. // See relativesizes parameter. finallayerthickness 0.3; //- Minimum thickness of cell layer. If for any reason layer // cannot be above minthickness do not add layer. // Relative to undistorted size of cell outside layer. minthickness 0.1; //- If points get not extruded do ngrow layers of connected faces that are // also not grown. This helps convergence of the layer addition process // close to features. ngrow 1; // Advanced settings //- When not to extrude surface. 0 is flat surface, 90 is when two faces // make straight angle. featureangle 30; //- Maximum number of snapping relaxation iterations. Should stop 29

30 // before upon reaching a correct mesh. nrelaxiter 3; // Number of smoothing iterations of surface normals nsmoothsurfacenormals 1; // Number of smoothing iterations of interior mesh movement direction nsmoothnormals 3; // Smooth layer thickness over surface patches nsmooththickness 10; // Stop layer growth on highly warped cells maxfacethicknessratio 0.5; // Reduce layer growth where ratio thickness to medial // distance is large maxthicknesstomedialratio 0.3; // Angle used to pick up medial axis points minmedianaxisangle 130; // Create buffer region for new layer terminations nbuffercellsnoextrude 0; // Overall max number of layer addition iterations nlayeriter 50; // Generic mesh quality settings. At any undoable phase these determine // where to undo. meshqualitycontrols //- Maximum non-orthogonality allowed. Set to 180 to disable. maxnonortho 65; //- Max skewness allowed. Set to <0 to disable. maxboundaryskewness 20; maxinternalskewness 4; //- Max concaveness allowed. Is angle (in degrees) below which concavity // is allowed. 0 is straight face, <0 would be convex face. // Set to 180 to disable. 30

31 maxconcave 80; //- Minimum projected area v.s. actual area. Set to -1 to disable. minflatness 0.5; //- Minimum pyramid volume. Is absolute volume of cell pyramid. // Set to a sensible fraction of the smallest cell volume expected. // Set to very negative number (e.g. -1E30) to disable. minvol 1e-13; //- Minimum face area. Set to <0 to disable. minarea -1; //- Minimum face twist. Set to <-1 to disable. dot product of face normal //- and face centre triangles normal mintwist 0.02; //- minimum normalised cell determinant //- 1 = hex, <= 0 = folded or flattened illegal cell mindeterminant 0.001; //- minfaceweight (0 -> 0.5) minfaceweight 0.02; //- minvolratio (0 -> 1) minvolratio 0.01; //must be >0 for Fluent compatibility mintriangletwist -1; // Advanced //- Number of error distribution iterations nsmoothscale 4; //- amount to scale back displacement at error points errorreduction 0.75; // Advanced // Flags for optional output // 0 : only write final meshes // 1 : write intermediate meshes 31

32 // 2 : write volscalarfield with celllevel for postprocessing // 4 : write current intersections as.obj files debug 0; // Merge tolerance. Is fraction of overall bounding box of initial mesh. // Note: the write tolerance needs to be higher than this. mergetolerance 1E-6; // ************************************************************************* // 32

Moving boundary in openfoam

Moving boundary in openfoam Moving boundary in openfoam Linear motion - OpenFoam #2 Julien Réveillon University of Rouen and CORIA Julien.reveillon@coria.fr http://www.cfdandco.com 7 juin 2012 Intent: The objective is to present

More information

A simplefoam tutorial

A simplefoam tutorial CFD with OpenSource software A course at Chalmers University of Technology Taught by Håkan Nilsson Project work: A simplefoam tutorial Developed for OpenFOAM-1.7.x Author: Hamidreza Abedi Peer reviewed

More information

Pre-processing in openfoam, mesh generation. OpenFOAM kurs 2013 Håkan Nilsson Olivier Petit

Pre-processing in openfoam, mesh generation. OpenFOAM kurs 2013 Håkan Nilsson Olivier Petit Pre-processing in openfoam, mesh generation. OpenFOAM kurs 2013 Håkan Nilsson Olivier Petit Different ways of creating the mesh. Outline Using SnappyHexMesh, an OpenFOAM mesh generation tool. Using blockmesh,

More information

Draft Version. For personal use. c Copyright 2011 - Máté Márton LOHÁSZ. Tutorial for Channel Flow by LES using Open Source CFD

Draft Version. For personal use. c Copyright 2011 - Máté Márton LOHÁSZ. Tutorial for Channel Flow by LES using Open Source CFD Tutorial for Channel Flow by LES using Open Source CFD Máté Márton Lohász February 2011 i CONTENTS ii Contents 1 Overview 1 2 Set up your environment 1 3 Very short intro to OpenFOAM 1 3.1 Simulation set-up............................

More information

OpenFOAM. The Open Source CFD Toolbox. User Guide

OpenFOAM. The Open Source CFD Toolbox. User Guide OpenFOAM The Open Source CFD Toolbox User Guide Version 3.0.1 13th December 2015 U-2 Copyright c 2011-2015 OpenFOAM Foundation Ltd. Author: Christopher J. Greenshields, CFD Direct Ltd. This work is licensed

More information

OpenFOAM Opensource and CFD

OpenFOAM Opensource and CFD OpenFOAM Opensource and CFD Andrew King Department of Mechanical Engineering Curtin University Outline What is Opensource Software OpenFOAM Overview Utilities, Libraries and Solvers Data Formats The CFD

More information

Simple beginning 3D OpenFOAM Tutorial

Simple beginning 3D OpenFOAM Tutorial Eng. Sebastian Rodriguez www.libremechanics.com Background. 1 Case definition. 1 3D modeling. 2 Units. 4 Physical parameters. 4 Meshing. 6 Structuring the case folders. 7 Boundary conditions. 7 Solving

More information

How To Run A Steady Case On A Creeper

How To Run A Steady Case On A Creeper Crash Course Introduction to OpenFOAM Artur Lidtke University of Southampton akl1g09@soton.ac.uk November 4, 2014 Artur Lidtke Crash Course Introduction to OpenFOAM 1 / 32 What is OpenFOAM? Using OpenFOAM

More information

OpenFOAM postprocessing and advanced running options

OpenFOAM postprocessing and advanced running options OpenFOAM postprocessing and advanced running options Tommaso Lucchini Department of Energy Politecnico di Milano The post processing tool: parafoam The main post-processing tool provided with OpenFOAM

More information

TVM 4155 Numerical modelling and hydraulics 10. March 2014. OpenFOAM homework

TVM 4155 Numerical modelling and hydraulics 10. March 2014. OpenFOAM homework TVM 4155 Numerical modelling and hydraulics 10. March 2014 OpenFOAM homework OpenFOAM is the most popular open-source CFD program in the world today. In this homework we will use the program to determine

More information

OpenFOAM Tutorial. 4. Units

OpenFOAM Tutorial. 4. Units External Incompressible 3D floww CFD Analysis OpenFOAM Tutorial 1. Background 2. Case Introduction 3. 3d Modeling 4. Units 5. Physical Parameters 6. Meshing with Gmsh 7. Structuring the case folders 8.

More information

Incorporation of OpenFOAM software into Computational Fluid Dynamics process in Volvo Technology

Incorporation of OpenFOAM software into Computational Fluid Dynamics process in Volvo Technology Technical report, IDE1136, June 2011 Incorporation of OpenFOAM software into Computational Fluid Dynamics process in Volvo Technology Master s Thesis in Computational Science and Engineering Alexander

More information

STUDY OF MESH DEFORMATION FEATURES OF AN OPEN SOURCE CFD PACKAGE AND APPLICATION TO A GEAR PUMP SIMULATION

STUDY OF MESH DEFORMATION FEATURES OF AN OPEN SOURCE CFD PACKAGE AND APPLICATION TO A GEAR PUMP SIMULATION Escola Tècnica Superior d'enginyerires Industrial i Aeronàutica de Terrassa UNIVERSITAT POLITÈCNICA DE CATALUNYA Titulació: Enginyeria Aeronàutica Alumne: Títol PFC: STUDY OF MESH DEFORMATION FEATURES

More information

CFD: What is it good for?

CFD: What is it good for? CFD: What is it good for? Tom O Mahoney TNO Fluid Dynamics Introduction to CFD CFD - Computational Fluid Dynamics Computational the using of computers to simulate the physics of fluids Fluid Either gas

More information

Open Source CFD Solver - OpenFOAM

Open Source CFD Solver - OpenFOAM Open Source CFD Solver - OpenFOAM Wang Junhong (HPC, Computer Centre) 1. INTRODUCTION The OpenFOAM (Open Field Operation and Manipulation) Computational Fluid Dynamics (CFD) Toolbox is a free, open source

More information

Auxiliary Processing swak4foam and PyFoam

Auxiliary Processing swak4foam and PyFoam Auxiliary Processing swak4foam and PyFoam Bruno Santos and Nelson Marques BlueCAPE, http://joomla.bluecape.com.pt/ bruno.santos@bluecape.com.pt nelson.marques@bluecape.com.pt El proyecto CloudPYME (id:

More information

CastNet: Modelling platform for open source solver technology

CastNet: Modelling platform for open source solver technology CastNet: Modelling platform for open source solver technology. DHCAE Tools GmbH Address: Friedrich-Ebert-Str. 368, 47800 Krefeld, Germany / Company site: Alte Rather Str. 207 / 47802 Krefeld Phone +49

More information

HowTo Rhino & ICEM. 1) New file setup: choose Millimeter (automatically converts to Meters if imported to ICEM)

HowTo Rhino & ICEM. 1) New file setup: choose Millimeter (automatically converts to Meters if imported to ICEM) HowTo Rhino & ICEM Simple 2D model 1) New file setup: choose Millimeter (automatically converts to Meters if imported to ICEM) 2) Set units: File Properties Units: Model units: should already be Millimeters

More information

CastNet: GUI environment for OpenFOAM

CastNet: GUI environment for OpenFOAM CastNet: GUI environment for OpenFOAM CastNet is a preprocessing system and job-control system for OpenFOAM. CastNet works with the standard OpenFOAM releases provided by ESI Group as well as ports for

More information

Multiphase Flow - Appendices

Multiphase Flow - Appendices Discovery Laboratory Multiphase Flow - Appendices 1. Creating a Mesh 1.1. What is a geometry? The geometry used in a CFD simulation defines the problem domain and boundaries; it is the area (2D) or volume

More information

How To Run A Cdef Simulation

How To Run A Cdef Simulation Simple CFD Simulations and Visualisation using OpenFOAM and ParaView Sachiko Arvelius, PhD Purpose of this presentation To show my competence in CFD (Computational Fluid Dynamics) simulation and visualisation

More information

This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM and OpenCFD trade marks.

This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM and OpenCFD trade marks. Disclaimer This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM and OpenCFD trade marks. Introductory OpenFOAM Course From 13 th

More information

Getting started with CFD packages. OpenFOAM R and FLUENT R

Getting started with CFD packages. OpenFOAM R and FLUENT R Getting started with CFD packages OpenFOAM R and FLUENT R Copyright c 2015 Contents I Automotive 1 Ahmed Body................................................. 13 1.1 CREO R 13 1.1.1 Geometry.....................................................

More information

Introduction to ANSYS

Introduction to ANSYS Lecture 3 Introduction to ANSYS Meshing 14. 5 Release Introduction to ANSYS Meshing 2012 ANSYS, Inc. March 27, 2014 1 Release 14.5 Introduction to ANSYS Meshing What you will learn from this presentation

More information

THE CFD SIMULATION OF THE FLOW AROUND THE AIRCRAFT USING OPENFOAM AND ANSA

THE CFD SIMULATION OF THE FLOW AROUND THE AIRCRAFT USING OPENFOAM AND ANSA THE CFD SIMULATION OF THE FLOW AROUND THE AIRCRAFT USING OPENFOAM AND ANSA Adam Kosík Evektor s.r.o., Czech Republic KEYWORDS CFD simulation, mesh generation, OpenFOAM, ANSA ABSTRACT In this paper we describe

More information

Coupling micro-scale CFD simulations to meso-scale models

Coupling micro-scale CFD simulations to meso-scale models Coupling micro-scale CFD simulations to meso-scale models IB Fischer CFD+engineering GmbH Fabien Farella Michael Ehlen Achim Fischer Vortex Factoria de Càlculs SL Gil Lizcano Outline Introduction O.F.Wind

More information

OpenFOAM open source CFD on ANSELM

OpenFOAM open source CFD on ANSELM OpenFOAM Tomáš Brzobohatý Supercomputing for industry SC4Industry Research Programme 3 - Libraries for Parallel Computing, VŠB-TU Ostrava OpenFOAM - Introduction - Features - OpenFOAM Case Outline OpenFOAM

More information

CFD software overview comparison, limitations and user interfaces

CFD software overview comparison, limitations and user interfaces CFD software overview comparison, limitations and user interfaces Daniel Legendre Introduction to CFD Turku, 05.05.2015 Åbo Akademi University Thermal and Flow Engineering Laboratory 05.05.2015 1 Some

More information

Open Source Computational Fluid Dynamics

Open Source Computational Fluid Dynamics Open Source Computational Fluid Dynamics An MSc course to gain extended knowledge in Computational Fluid Dynamics (CFD) using open source software. Teachers: Miklós Balogh and Zoltán Hernádi Department

More information

2013 Code_Saturne User Group Meeting. EDF R&D Chatou, France. 9 th April 2013

2013 Code_Saturne User Group Meeting. EDF R&D Chatou, France. 9 th April 2013 2013 Code_Saturne User Group Meeting EDF R&D Chatou, France 9 th April 2013 Thermal Comfort in Train Passenger Cars Contact For further information please contact: Brian ANGEL Director RENUDA France brian.angel@renuda.com

More information

Tutorial: 2D Pipe Junction Using Hexa Meshing

Tutorial: 2D Pipe Junction Using Hexa Meshing Tutorial: 2D Pipe Junction Using Hexa Meshing Introduction In this tutorial, you will generate a mesh for a two-dimensional pipe junction, composed of two inlets and one outlet. After generating an initial

More information

O.F.Wind Wind Site Assessment Simulation in complex terrain based on OpenFOAM. Darmstadt, 27.06.2012

O.F.Wind Wind Site Assessment Simulation in complex terrain based on OpenFOAM. Darmstadt, 27.06.2012 O.F.Wind Wind Site Assessment Simulation in complex terrain based on OpenFOAM Darmstadt, 27.06.2012 Michael Ehlen IB Fischer CFD+engineering GmbH Lipowskystr. 12 81373 München Tel. 089/74118743 Fax 089/74118749

More information

Introduction to ANSYS ICEM CFD

Introduction to ANSYS ICEM CFD Workshop 8.2 3D Pipe Junction 14.5 Release Introduction to ANSYS ICEM CFD 2012 ANSYS, Inc. April 1, 2013 1 Release 14.5 3D Pipe Junction 3D Pipe Junction This is a simple 4-way pipe intersection with two

More information

Application of Wray-Agarwal Model to Turbulent Flow in a 2D Lid-Driven Cavity and a 3D Lid- Driven Box

Application of Wray-Agarwal Model to Turbulent Flow in a 2D Lid-Driven Cavity and a 3D Lid- Driven Box Washington University in St. Louis Washington University Open Scholarship Engineering and Applied Science Theses & Dissertations Engineering and Applied Science Summer 8-14-2015 Application of Wray-Agarwal

More information

Introduction to ANSYS ICEM CFD

Introduction to ANSYS ICEM CFD Lecture 6 Mesh Preparation Before Output to Solver 14. 0 Release Introduction to ANSYS ICEM CFD 1 2011 ANSYS, Inc. March 22, 2015 Mesh Preparation Before Output to Solver What will you learn from this

More information

Modeling of Earth Surface Dynamics and Related Problems Using OpenFOAM

Modeling of Earth Surface Dynamics and Related Problems Using OpenFOAM CSDMS 2013 Meeting Modeling of Earth Surface Dynamics and Related Problems Using OpenFOAM Xiaofeng Liu, Ph.D., P.E. Assistant Professor Department of Civil and Environmental Engineering University of Texas

More information

Customer Training Material. Lecture 4. Meshing in Mechanical. Mechanical. ANSYS, Inc. Proprietary 2010 ANSYS, Inc. All rights reserved.

Customer Training Material. Lecture 4. Meshing in Mechanical. Mechanical. ANSYS, Inc. Proprietary 2010 ANSYS, Inc. All rights reserved. Lecture 4 Meshing in Mechanical Introduction to ANSYS Mechanical L4-1 Chapter Overview In this chapter controlling meshing operations is described. Topics: A. Global Meshing Controls B. Local Meshing Controls

More information

How To Create A Cdf Optimisation System

How To Create A Cdf Optimisation System ADVANCED ENGINEERING 4(2010)2, ISSN 1846-5900 INTERFACES FOR EMBEDDING CFD OPTIMISATION WORKFLOWS INTO THE PRODUCT DEVELOPMENT PROCESS Todorov, G.; Ovcharova, J.; Romanov, B. & Kamberov, K. Abstract: The

More information

Steady Flow: Laminar and Turbulent in an S-Bend

Steady Flow: Laminar and Turbulent in an S-Bend STAR-CCM+ User Guide 6663 Steady Flow: Laminar and Turbulent in an S-Bend This tutorial demonstrates the flow of an incompressible gas through an s-bend of constant diameter (2 cm), for both laminar and

More information

The influence of mesh characteristics on OpenFOAM simulations of the DrivAer model

The influence of mesh characteristics on OpenFOAM simulations of the DrivAer model The influence of mesh characteristics on OpenFOAM simulations of the DrivAer model Vangelis Skaperdas, Aristotelis Iordanidis, Grigoris Fotiadis BETA CAE Systems S.A. 2 nd Northern Germany OpenFOAM User

More information

10.0-2. Finite Element Modeling

10.0-2. Finite Element Modeling What s New in FEMAP FEMAP 10.0 and 10.0.1 include enhancements and new features in: User Interface on page 3 Meshing on page 23 Mesh Associativity on page 33 Properties on page 33 Functions on page 35

More information

Set up and solve a transient problem using the pressure-based solver and VOF model.

Set up and solve a transient problem using the pressure-based solver and VOF model. Tutorial 18. Using the VOF Model This tutorial was run using ANSYS FLUENT 12.1. The results have been updated to reflect the change in the default setting of node-based smoothing for the surface tension

More information

Which strategy to move the mesh in the Computational Fluid Dynamic code OpenFOAM

Which strategy to move the mesh in the Computational Fluid Dynamic code OpenFOAM Which strategy to move the mesh in the Computational Fluid Dynamic code OpenFOAM Christophe Kassiotis April 12, 2008 École Normale Supérieure de Cachan, Laboratoire de Mécanique et Technologies (LMT) Secteur

More information

Tutorial: 3D Pipe Junction Using Hexa Meshing

Tutorial: 3D Pipe Junction Using Hexa Meshing Tutorial: 3D Pipe Junction Using Hexa Meshing Introduction In this tutorial, you will generate a mesh for a three-dimensional pipe junction. After checking the quality of the first mesh, you will create

More information

Introduction to COMSOL. The Navier-Stokes Equations

Introduction to COMSOL. The Navier-Stokes Equations Flow Between Parallel Plates Modified from the COMSOL ChE Library module rev 10/13/08 Modified by Robert P. Hesketh, Chemical Engineering, Rowan University Fall 2008 Introduction to COMSOL The following

More information

Lecture 7 - Meshing. Applied Computational Fluid Dynamics

Lecture 7 - Meshing. Applied Computational Fluid Dynamics Lecture 7 - Meshing Applied Computational Fluid Dynamics Instructor: André Bakker http://www.bakker.org André Bakker (2002-2006) Fluent Inc. (2002) 1 Outline Why is a grid needed? Element types. Grid types.

More information

tutorial U N S T R U C T U R E D G R I D S F O R O P E N F O A M W I T H B L E N D E R A N D E N G R I D paul.bomke@hs-bremen.de

tutorial U N S T R U C T U R E D G R I D S F O R O P E N F O A M W I T H B L E N D E R A N D E N G R I D paul.bomke@hs-bremen.de tutorial U N S T R U C T U R E D G R I D S F O R O P E N F O A M W I T H B L E N D E R A N D E N G R I D paul bomke & albert baars paul.bomke@hs-bremen.de Faculty 5: Nature and engineering - Biomimetics

More information

A HYBRID APPROACH FOR AUTOMATED AREA AGGREGATION

A HYBRID APPROACH FOR AUTOMATED AREA AGGREGATION A HYBRID APPROACH FOR AUTOMATED AREA AGGREGATION Zeshen Wang ESRI 380 NewYork Street Redlands CA 92373 Zwang@esri.com ABSTRACT Automated area aggregation, which is widely needed for mapping both natural

More information

CATIA V5 Tutorials. Mechanism Design & Animation. Release 18. Nader G. Zamani. University of Windsor. Jonathan M. Weaver. University of Detroit Mercy

CATIA V5 Tutorials. Mechanism Design & Animation. Release 18. Nader G. Zamani. University of Windsor. Jonathan M. Weaver. University of Detroit Mercy CATIA V5 Tutorials Mechanism Design & Animation Release 18 Nader G. Zamani University of Windsor Jonathan M. Weaver University of Detroit Mercy SDC PUBLICATIONS Schroff Development Corporation www.schroff.com

More information

Learning Module 4 - Thermal Fluid Analysis Note: LM4 is still in progress. This version contains only 3 tutorials.

Learning Module 4 - Thermal Fluid Analysis Note: LM4 is still in progress. This version contains only 3 tutorials. Learning Module 4 - Thermal Fluid Analysis Note: LM4 is still in progress. This version contains only 3 tutorials. Attachment C1. SolidWorks-Specific FEM Tutorial 1... 2 Attachment C2. SolidWorks-Specific

More information

Customer Training Material. Shell Meshing Stamped Part ICEM CFD. ANSYS, Inc. Proprietary 2010 ANSYS, Inc. All rights reserved. WS3.

Customer Training Material. Shell Meshing Stamped Part ICEM CFD. ANSYS, Inc. Proprietary 2010 ANSYS, Inc. All rights reserved. WS3. Workshop 3.1 Shell Meshing Stamped Part Introduction to ANSYS ICEM CFD WS3.1-1 Create Project / Open Geometry File > New Project Enter the Stamping folder Type Stamped-mesh Save File > Geometry > Open

More information

OpenFOAM Workshop. Yağmur Gülkanat Res.Assist.

OpenFOAM Workshop. Yağmur Gülkanat Res.Assist. OpenFOAM Workshop Yağmur Gülkanat Res.Assist. Introduction to OpenFOAM What is OpenFOAM? FOAM = Field Operation And Manipulation OpenFOAM is a free-to-use open-source numerical simulation software with

More information

Blender addons ESRI Shapefile import/export and georeferenced raster import

Blender addons ESRI Shapefile import/export and georeferenced raster import Blender addons ESRI Shapefile import/export and georeferenced raster import This blender addon is a collection of 4 tools: ESRI Shapefile importer - Import point, pointz, polyline, polylinez, polygon,

More information

SpaceClaim Introduction Training Session. A SpaceClaim Support Document

SpaceClaim Introduction Training Session. A SpaceClaim Support Document SpaceClaim Introduction Training Session A SpaceClaim Support Document In this class we will walk through the basic tools used to create and modify models in SpaceClaim. Introduction We will focus on:

More information

CCTech TM. ICEM-CFD & FLUENT Software Training. Course Brochure. Simulation is The Future

CCTech TM. ICEM-CFD & FLUENT Software Training. Course Brochure. Simulation is The Future . CCTech TM Simulation is The Future ICEM-CFD & FLUENT Software Training Course Brochure About. CCTech Established in 2006 by alumni of IIT Bombay. Our motive is to establish a knowledge centric organization

More information

This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM and OpenCFD trade marks.

This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM and OpenCFD trade marks. Disclaimer This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM and OpenCFD trade marks. Introductory OpenFOAM Course From 14 th

More information

How To Draw In Autocad

How To Draw In Autocad DXF Import and Export for EASE 4.0 Page 1 of 9 DXF Import and Export for EASE 4.0 Bruce C. Olson, Dr. Waldemar Richert ADA Copyright 2002 Acoustic Design Ahnert EASE 4.0 allows both the import and export

More information

10. THERM DRAWING TIPS

10. THERM DRAWING TIPS 10. THERM DRAWING TIPS 10.1. Drawing Tips The THERM User's Manual describes in detail how to draw cross-sections in THERM. This section of the NFRC Simualation Training Manual presents some additional

More information

Solver Development in OpenFOAM

Solver Development in OpenFOAM Solver Development in OpenFOAM OpenFOAM Course 2 nd Edition C. Fernandes, L.L. Ferrás, J.M.Nóbrega i3n/ipc Institute for Polymers and Composites, University of Minho, Campus de Azurém, Guimarães, Portugal

More information

Lecture 16 - Free Surface Flows. Applied Computational Fluid Dynamics

Lecture 16 - Free Surface Flows. Applied Computational Fluid Dynamics Lecture 16 - Free Surface Flows Applied Computational Fluid Dynamics Instructor: André Bakker http://www.bakker.org André Bakker (2002-2006) Fluent Inc. (2002) 1 Example: spinning bowl Example: flow in

More information

TUTORIAL MOVE 2009.1: 3D MODEL CONSTRUCTION FROM SURFACE GEOLOGICAL DATA

TUTORIAL MOVE 2009.1: 3D MODEL CONSTRUCTION FROM SURFACE GEOLOGICAL DATA UNIVERSITÁ DEGLI STUDI DI MILANO FACOLTÀ DI SCIENZE MATEMATICHE FISICHE E NATURALI DIPARTIMENTO DI SCIENZE DELLA TERRA ARDITO DESIO TUTORIAL MOVE 2009.1: 3D MODEL CONSTRUCTION FROM SURFACE GEOLOGICAL DATA

More information

CFD Analysis of Container Ship Sinkage, Trim and Resistance

CFD Analysis of Container Ship Sinkage, Trim and Resistance CFD Analysis of Container Ship Sinkage, Trim and Resistance (abridged) Shaun Wortley B. Eng. Mechanical Engineering Project Report Department of Mechanical Engineering Curtin University 2013 21 Guillardon

More information

version 3.0 tutorial - Turbulent mixing in a T-junction with CFDSTUDY in SALOME contact: saturne-support@edf.fr

version 3.0 tutorial - Turbulent mixing in a T-junction with CFDSTUDY in SALOME contact: saturne-support@edf.fr EDF R&D Fluid Dynamics, Power Generation and Environment Department Single Phase Thermal-Hydraulics Group 6, quai Watier F-78401 Chatou Cedex Tel: 33 1 30 87 75 40 Fax: 33 1 30 87 79 16 MAY 2013 documentation

More information

ME6130 An introduction to CFD 1-1

ME6130 An introduction to CFD 1-1 ME6130 An introduction to CFD 1-1 What is CFD? Computational fluid dynamics (CFD) is the science of predicting fluid flow, heat and mass transfer, chemical reactions, and related phenomena by solving numerically

More information

Computational Modeling of Wind Turbines in OpenFOAM

Computational Modeling of Wind Turbines in OpenFOAM Computational Modeling of Wind Turbines in OpenFOAM Hamid Rahimi hamid.rahimi@uni-oldenburg.de ForWind - Center for Wind Energy Research Institute of Physics, University of Oldenburg, Germany Outline Computational

More information

GAMBIT Demo Tutorial

GAMBIT Demo Tutorial GAMBIT Demo Tutorial Wake of a Cylinder. 1.1 Problem Description The problem to be considered is schematically in fig. 1. We consider flow across a cylinder and look at the wake behind the cylinder. Air

More information

Tutorial for using Titan2D, online simulation tool on Vhub. Sylvain Charbonnier

Tutorial for using Titan2D, online simulation tool on Vhub. Sylvain Charbonnier Tutorial for using Titan2D, online simulation tool on Vhub Sylvain Charbonnier Introduction The Titan2D toolkit is used for modeling of geophysical mass flows over natural terrain (volcanic flows, avalanches,

More information

Trace Layer Import for Printed Circuit Boards Under Icepak

Trace Layer Import for Printed Circuit Boards Under Icepak Tutorial 13. Trace Layer Import for Printed Circuit Boards Under Icepak Introduction: A printed circuit board (PCB) is generally a multi-layered board made of dielectric material and several layers of

More information

Customer Training Material. Lecture 2. Introduction to. Methodology ANSYS FLUENT. ANSYS, Inc. Proprietary 2010 ANSYS, Inc. All rights reserved.

Customer Training Material. Lecture 2. Introduction to. Methodology ANSYS FLUENT. ANSYS, Inc. Proprietary 2010 ANSYS, Inc. All rights reserved. Lecture 2 Introduction to CFD Methodology Introduction to ANSYS FLUENT L2-1 What is CFD? Computational Fluid Dynamics (CFD) is the science of predicting fluid flow, heat and mass transfer, chemical reactions,

More information

Visualization of 2D Domains

Visualization of 2D Domains Visualization of 2D Domains This part of the visualization package is intended to supply a simple graphical interface for 2- dimensional finite element data structures. Furthermore, it is used as the low

More information

This tutorial provides a recipe for simulating L

This tutorial provides a recipe for simulating L Pipe Flow Tutorial for STAR-CCM+ ME 448/548 February 5, 2014 Gerald Recktenwald gerry@me.pdx.edu 1 Overview This tutorial provides a recipe for simulating laminar flow in a pipe with STAR- L CCM+. The

More information

GPGPU accelerated Computational Fluid Dynamics

GPGPU accelerated Computational Fluid Dynamics t e c h n i s c h e u n i v e r s i t ä t b r a u n s c h w e i g Carl-Friedrich Gauß Faculty GPGPU accelerated Computational Fluid Dynamics 5th GACM Colloquium on Computational Mechanics Hamburg Institute

More information

Laminar Flow in a Baffled Stirred Mixer

Laminar Flow in a Baffled Stirred Mixer Laminar Flow in a Baffled Stirred Mixer Introduction This exercise exemplifies the use of the rotating machinery feature in the CFD Module. The Rotating Machinery interface allows you to model moving rotating

More information

CFD Simulation of Subcooled Flow Boiling using OpenFOAM

CFD Simulation of Subcooled Flow Boiling using OpenFOAM Research Article International Journal of Current Engineering and Technology E-ISSN 2277 4106, P-ISSN 2347-5161 2014 INPRESSCO, All Rights Reserved Available at http://inpressco.com/category/ijcet CFD

More information

AN EFFECT OF GRID QUALITY ON THE RESULTS OF NUMERICAL SIMULATIONS OF THE FLUID FLOW FIELD IN AN AGITATED VESSEL

AN EFFECT OF GRID QUALITY ON THE RESULTS OF NUMERICAL SIMULATIONS OF THE FLUID FLOW FIELD IN AN AGITATED VESSEL 14 th European Conference on Mixing Warszawa, 10-13 September 2012 AN EFFECT OF GRID QUALITY ON THE RESULTS OF NUMERICAL SIMULATIONS OF THE FLUID FLOW FIELD IN AN AGITATED VESSEL Joanna Karcz, Lukasz Kacperski

More information

Importing Boundary and Volume Meshes

Importing Boundary and Volume Meshes Appendix A. Importing Boundary and Volume Meshes The volume mesh generation scheme of TGrid requires sets of line segments (2D) or triangular and/or quadrilateral elements (3D) defining the boundaries

More information

COMPUTATIONAL ENGINEERING OF FINITE ELEMENT MODELLING FOR AUTOMOTIVE APPLICATION USING ABAQUS

COMPUTATIONAL ENGINEERING OF FINITE ELEMENT MODELLING FOR AUTOMOTIVE APPLICATION USING ABAQUS International Journal of Advanced Research in Engineering and Technology (IJARET) Volume 7, Issue 2, March-April 2016, pp. 30 52, Article ID: IJARET_07_02_004 Available online at http://www.iaeme.com/ijaret/issues.asp?jtype=ijaret&vtype=7&itype=2

More information

. Address the following issues in your solution:

. Address the following issues in your solution: CM 3110 COMSOL INSTRUCTIONS Faith Morrison and Maria Tafur Department of Chemical Engineering Michigan Technological University, Houghton, MI USA 22 November 2012 Zhichao Wang edits 21 November 2013 revised

More information

STL GENERATION INTRODUCTION TO STL. Written by Greta D Angelo

STL GENERATION INTRODUCTION TO STL. Written by Greta D Angelo STL GENERATION Written by Greta D Angelo In this section: An introduction on.stl files How to make good.stl files How to make.stl on different softwares (Solidworks, PTC Creo, Rhinoceros 5, Autodesk Inventor)

More information

Automated moving mesh techniques in CFD

Automated moving mesh techniques in CFD Unione Europea Repubblica Italiana Regione Autonoma della Sardegna Automated moving mesh techniques in CFD Application to fluid-structure interactions and rigid motions problems MANUELA PROFIR manuela@crs4.it

More information

Harvesting-Combine-Flow Simulation Technique

Harvesting-Combine-Flow Simulation Technique Page 1/14 Madhur Bhaiya, Prof. Dr.-Ing. Andreas Jahr, B.Eng. Holger Happel FH Düsseldorf 1 ABSTRACT CFX 11.0 is a Computational Fluid Dynamics (CFD) program for simulating the behavior of systems involving

More information

Performance Comparison of a Vertical Axis Wind Turbine using Commercial and Open Source Computational Fluid Dynamics based Codes

Performance Comparison of a Vertical Axis Wind Turbine using Commercial and Open Source Computational Fluid Dynamics based Codes Performance Comparison of a Vertical Axis Wind Turbine using Commercial and Open Source Computational Fluid Dynamics based Codes Taimoor Asim 1, Rakesh Mishra 1, Sree Nirjhor Kaysthagir 1, Ghada Aboufares

More information

Edinburgh COLLEGE of ART ARCHITECTURE 3D Modelling in AutoCAD - tutorial exercise The screen The graphics area This is the part of the screen in which the drawing will be created. The command prompt area

More information

Files Used in this Tutorial

Files Used in this Tutorial Generate Point Clouds Tutorial This tutorial shows how to generate point clouds from IKONOS satellite stereo imagery. You will view the point clouds in the ENVI LiDAR Viewer. The estimated time to complete

More information

(1) 2 TEST SETUP. Table 1 Summary of models used for calculating roughness parameters Model Published z 0 / H d/h

(1) 2 TEST SETUP. Table 1 Summary of models used for calculating roughness parameters Model Published z 0 / H d/h Estimation of Surface Roughness using CFD Simulation Daniel Abdi a, Girma T. Bitsuamlak b a Research Assistant, Department of Civil and Environmental Engineering, FIU, Miami, FL, USA, dabdi001@fiu.edu

More information

CFD Simulation of the NREL Phase VI Rotor

CFD Simulation of the NREL Phase VI Rotor CFD Simulation of the NREL Phase VI Rotor Y. Song* and J. B. Perot # *Theoretical & Computational Fluid Dynamics Laboratory, Department of Mechanical & Industrial Engineering, University of Massachusetts

More information

MIKE 21 FLOW MODEL HINTS AND RECOMMENDATIONS IN APPLICATIONS WITH SIGNIFICANT FLOODING AND DRYING

MIKE 21 FLOW MODEL HINTS AND RECOMMENDATIONS IN APPLICATIONS WITH SIGNIFICANT FLOODING AND DRYING 1 MIKE 21 FLOW MODEL HINTS AND RECOMMENDATIONS IN APPLICATIONS WITH SIGNIFICANT FLOODING AND DRYING This note is intended as a general guideline to setting up a standard MIKE 21 model for applications

More information

ANSYS ICEM CFD Tutorial Manual

ANSYS ICEM CFD Tutorial Manual ANSYS ICEM CFD Tutorial Manual ANSYS, Inc. Southpointe 275 Technology Drive Canonsburg, PA 15317 ansysinfo@ansys.com http://www.ansys.com (T) 724-746-3304 (F) 724-514-9494 ANSYS ICEM CFD 15.0 November

More information

Number of Edges on Excavated Boundaries : What does it mean?

Number of Edges on Excavated Boundaries : What does it mean? As with all of Rocscience software, RS 3 is developed to be an easy-to-use, quick-to-learn 3D FEM software that takes care of tedious modeling tasks so the user may concentrate on simulating the geomechanical

More information

Raster to Vector Conversion for Overlay Analysis

Raster to Vector Conversion for Overlay Analysis Raster to Vector Conversion for Overlay Analysis In some cases, it may be necessary to perform vector-based analyses on a raster data set, or vice versa. The types of analyses that can be performed on

More information

Self Financed One Week Training

Self Financed One Week Training Self Financed One Week Training On Computational Fluid Dynamics (CFD) with OpenFOAM December 14 20, 2015 (Basic Training: 3days, Advanced Training: 5days and Programmer Training: 7days) Organized by Department

More information

Modeling wind flow using O.F. Wind, an OpenFOAM based CFD tool: validation of Turbulence Intensity in a testing Suzlon Energy site Ltd.

Modeling wind flow using O.F. Wind, an OpenFOAM based CFD tool: validation of Turbulence Intensity in a testing Suzlon Energy site Ltd. Modeling wind flow using O.F. Wind, an OpenFOAM based CFD tool: validation of Turbulence Intensity in a testing Suzlon Energy site Ltd. L.Casella 1, W.Langreder 1, A.Fischer 2, M.Ehlen 2, D.Skoutelakos

More information

Lecture 6 - Boundary Conditions. Applied Computational Fluid Dynamics

Lecture 6 - Boundary Conditions. Applied Computational Fluid Dynamics Lecture 6 - Boundary Conditions Applied Computational Fluid Dynamics Instructor: André Bakker http://www.bakker.org André Bakker (2002-2006) Fluent Inc. (2002) 1 Outline Overview. Inlet and outlet boundaries.

More information

LSCFD: Meshing Tools for Open Source CFD A Practical Point of View

LSCFD: Meshing Tools for Open Source CFD A Practical Point of View LSCFD: Meshing Tools for Open Source CFD A Practical Point of View Juha Kortelainen Report: Meshing Tools for Open Source CFD A Practical Point of View LSCFD Tools for Large Scale

More information

The Multiphase Capabilities of the CFD Toolbox OpenFOAM for Hydraulic Engineering Applications

The Multiphase Capabilities of the CFD Toolbox OpenFOAM for Hydraulic Engineering Applications ICHE 2014, Hamburg - Lehfeldt & Kopmann (eds) - 2014 Bundesanstalt für Wasserbau ISBN 978-3-939230-32-8 The Multiphase Capabilities of the CFD Toolbox OpenFOAM for Hydraulic Engineering Applications L.

More information

ETABS. Integrated Building Design Software. Concrete Shear Wall Design Manual. Computers and Structures, Inc. Berkeley, California, USA

ETABS. Integrated Building Design Software. Concrete Shear Wall Design Manual. Computers and Structures, Inc. Berkeley, California, USA ETABS Integrated Building Design Software Concrete Shear Wall Design Manual Computers and Structures, Inc. Berkeley, California, USA Version 8 January 2002 Copyright The computer program ETABS and all

More information

Advanced Surface Modeling

Advanced Surface Modeling This sample chapter is for review purposes only. Copyright The Goodheart-Willcox Co., Inc. ll rights reserved. Chapter dvanced Modeling Learning Objectives fter completing this chapter, you will be able

More information

Roof Tutorial. Chapter 3:

Roof Tutorial. Chapter 3: Chapter 3: Roof Tutorial The majority of Roof Tutorial describes some common roof styles that can be created using settings in the Wall Specification dialog and can be completed independent of the other

More information

Advanced CFD Methods 1

Advanced CFD Methods 1 Advanced CFD Methods 1 Prof. Patrick Jenny, FS 2014 Date: 15.08.14, Time: 13:00, Student: Federico Danieli Summary The exam took place in Prof. Jenny s office, with his assistant taking notes on the answers.

More information