Fluent User Services Center www fluentusers com Introductory

  • Slides: 32
Download presentation
Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Mesh Control using Size Functions and Boundary Layers 7 -1 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Size Functions and Boundary Layers u u Size functions and boundary layers are mesh control tools available in GAMBIT. Size functions l l u Boundary layers l l u Can be used to smoothly control the growth in mesh size over a particular region of the geometry starting from a “source, ” or origin. Can also be used to smoothly transition from fine mesh needed to resolve flow physics, curved geometry and model flow in thin gaps. Used to grow layers of cells of desired height from specified boundaries of 2 D/3 D geometry Typically used to capture near wall phenomena such as turbulence and heat transfer. Multiple size functions and boundary layers can be used to control mesh size distribution. 7 -2 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Size Functions u u u Size functions control the mesh distribution in a region of space, including edges, faces, and volumes similar to the way grading controls mesh distribution on edges. Size functions are accessed through the Tools menu. Size functions are designed to grade tetrahedral meshes even though they can be used with a hex mesh. Curvature size function refines the mesh in regions of large curvature Proximity size function ensures a fine mesh in small gaps. Multiple Size Functions: Curvature and Proximity 7 -3 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Types of Size Functions u u Size functions require the specification of the type, source entities, attachment, and size parameters. The type of size function dictates the criteria upon which the mesh will grow. l l Fixed – scope is a fixed region about a source. Curvature – scope is a region near highly curved surfaces. Proximity – scope is a region within a specified distance from objects. Meshed – ensures that a mesh is propagated in a controlled manner from premeshed boundaries of the domain. 7 -4 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Size Function Definition u Each size function type requires specification of: l Source entities n l Attachment entities n l Defines the shape and location of the "origin" of the affected region. Host the mesh that will be affected. Parameters n n Three parameters define the characteristics of the size function (except the meshed size function) The two parameters common to all four size function types are the growth rate and size limit. The third (initialization) parameter is different for each of the first three size function types. The meshed size function does not use an initialization parameter. 7 -5 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Selecting the Source Entity u Source l l l Can be vertices, edges, faces, or volumes Can be internal or external to attachment entities Source entity defines shape of scope 7 -6 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Selecting the Attachment Entity u The attachment entities host the mesh that is to be affected 7 -7 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Fixed Size Function u Parameters l l l Start size: Mesh size adjacent to the source entity Growth rate: Size ratio of two adjacent mesh elements Size limit: Maximum allowable mesh size on attachment entity Attachment: face Same edge mesh (50 intervals) Source: edge No Size Function (3, 684 cells) Fixed Size Function (1, 730 cells) 7 -8 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Curvature Size Function u Parameters l l Angle: The maximum allowable angle between outward pointing normals for any two adjacent mesh elements. Growth rate and Size limit – same as for fixed S. F. Large angle Small angle Without Curvature S. F. With Curvature S. F. 7 -9 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Proximity Size Function u Specifies number of cells in face gap (3 D) and edge gap (2 D) l l l u Parameters l l u Cells per gap: number of mesh layers in the gap Growth rate and Size limit: same as for fixed Gap defined by two source faces Limitations l l l u For 3 D gaps, the pair of faces bounding the gap are specified as source entities. For 2 D gaps, the pair of edges bounding the gap or the face containing the gap can be specified as sources. If a volume is selected as the source, then all pairs of faces will be evaluated as possible 3 D gaps. Becomes slow on large models Improper use may result in abrupt change in size Solution – increase resolution by changing the defaults for background grids Proximity size functions are useful for both quad pave and tri meshes in 2 D and tet meshes in 3 D 7 -10 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Meshed Size Function u u The mesh is grown from the meshed source entities into the attachment entity. Parameters: l l u No initialization parameter is needed. Growth rate and size limit need to be specified. Limitations l The source entities must be premeshed. Premeshed source edges Premeshed source face 7 -11 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Size Function Utilities u Modify Size Function l Size function input parameters can be modified after the size function has been created. n n l Source and Attachment entity list Size and Growth Rate You must press Apply for the changes to be made. 7 -12 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Size Function Utilities u View Size Function l l l Select the size function to view Click the Initialize button Use the slider bar to view the range of influence in the graphics window. Initialized size function on aircraft wing 7 -13 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Boundary Layers 7 -14 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Boundary Layers u Boundary layers are layers of elements growing outward from a boundary into the domain. l l u Produces high quality cells near the boundary. Allows resolution of flow field effects with fewer cells than would be required without them. In general, boundary layers are attached to: l l Edges for 2 D problems Faces for 3 D problems High quality boundary layer mesh 7 -15 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Defining a Boundary Layer Algorithm Definition Input Settings Transition Pattern Attachment Entities 7 -16 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Boundary Layer Algorithms u Three boundary layer algorithms are available: l l l Uniform Aspect Ratio (first) Aspect Ratio (last) Uniform Adjacent cells have the same height Height is constant within each layer of cells Aspect Ratio (first) row Adjacent cells have the same aspect ratio Aspect Ratio (last) row Cells in the last layer have the user-prescribed aspect ratio Aspect ratio is constant within each layer of cells 7 -17 Aspect ratio of the last layer is specified. © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Boundary Layer Inputs u Uniform boundary layer – The first three inputs are required; the fourth is calculated) l l u Aspect ratio-based boundary layer inputs are similar l l l u First row Height of first row of elements (a) Growth factor Factor for geometric series (b/a) Rows Total number of layers Depth Boundary layer thickness (D) First percent Growth factor Number of rows Starting aspect ratio Factor for geometric series (b/a) For aspect ratio (last), inputs are First Row, Number of Rows, and Aspect ratio of last layer. 7 -18 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Internal Continuity Option u The Internal Continuity option allows 3 D boundary layers to be formed with no crossover or overlap regions. ON (No Overlap at Corner) OFF (Overlap at Corner) 7 -19 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Wedge Corner Shape Option u The Wedge Corner Shape option is used at corner or reverse vertices to create a rounded “wedge” of elements for 2 D Boundary Layers. ON (Wedge Shape) OFF (Block Shape) 7 -20 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Boundary Layer Attachments u u u 2 D boundary layers are attached to edges. 3 D boundary layers are attached to faces. Temporary Display l l u Direction arrow l l u A boundary layer is initially displayed in orange to indicate that it is temporary. Display updates immediately when changes are made. Points from the attachment entity toward the centroid of the parent entity. This can be misleading, especially in 3 D! The boundary layer is displayed in white (permanent) after clicking Apply. 7 -21 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 View 3 D Boundary Layers u The View 3 D Boundary Layers tool allows users to examine a 3 D boundary layer mesh prior to volume meshing. l l Resolves many mesh quality issues Resolves tet mesh failure 7 -22 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Boundary Layers and Vertex Types u 2 -D Boundary layers in regions near vertices are defined by the vertex type. l l End: mesh overlaps Corner: angle trisected Reverse: angle divided into fourths. Side: angle bisected E E R C E E u u The vertex type for Boundary Layers can be changed in the Set Face Vertex Form in the Face meshing menu with the Boundary layer only option turned on. S E Vertex types are also important for imprinting 3 D boundary layers on adjacent faces. 7 -23 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Imprinting Adjacent Faces with 3 D Boundary Layers u A 3 D boundary layer attached to a face may imprint the adjoining faces, depending on the vertex type of the vertices at the intersection of the boundary layer attachment face and adjoining faces. l u If the vertex is an “End” type vertex, an imprint is created and displayed. If 3 D boundary layers are also attached to the adjoining faces, then the Internal Continuity toggle will determine the crossover region and imprint. Imprint of 3 D boundary layer on adjacent faces with 3 D boundary layer attached to bottom face 7 -24 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Imprinting 3 D Boundary Layers by Modifying Vertex Types u When the angle between adjacent and attachment faces in greater than 120°, a vertex type change to End can cause the 3 D boundary layer to imprint. 140° Attachment face No imprinting of 3 D boundary layer and gaps due to side vertices at the face intersections E E E Vertex types changed to End closes the gap and imprints 3 D boundary layer 7 -25 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Appendix 7 -26 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 How Do Size Functions Work? u Size functions work by generating a discrete map of mesh size on a background Cartesian grid that overlays the attachment geometry. l l u This map is used by the meshing algorithms in growing mesh with a size distribution. Multiple size functions can be integrated into a single global size function on the entire domain. Size functions work in two steps: l l Size function initialization wherein a size distribution is computed on the source entities. Background grid generation on the attachment entity, which resolves the variation of the mesh size as a function of the distance from the source. entity. 7 -27 Typical background grid for an automotive manifold © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 How Do Size Functions Work? u Size function initialization: l l A constant “fixed” mesh size is used for the fixed size function. For the curvature size function and proximity size functions, the source entity is successively divided into smaller “facets” and a size is computed on each facet. n n n u Each facet meets the angle criterion for the curvature size function. Each facet meets a criterion on the gap distance between opposite facets for the proximity size function. This can be computationally intensive for complex surfaces. Initialized size function on aircraft wing The Initialize Size Function button allows you to visualize the size function variation radiating from the source entity. 7 -28 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 How Do Size Functions Work? u Background grid generation: l l u A set of Cartesian boxes forming a grid that bounds the attachment geometry are generated and refined into smaller boxes. This successive refinement of the background grid is carried out until a maximum number of levels of refinement (or “tree depth”) is reached or the size variation in all boxes is less than a specified tolerance. Background grid refinement: l l A size is calculated in each box at the nodes and the center, as a function of the distance from the source entity. The box is divided along the X, Y and Z axes If the size at the center is greater than the average of the size at the nodes by a tolerance (nonlinear error percent). S 1 S 2 Sc – (Savg) > (tolerance) SC S 3 Source entity S 4 Boundary of attachment entity 7 -29 Refined background grid © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Background Grid Generation u Use of the background grid default parameters is key to obtaining the desired meshes! l TOOLS. SFUNCTION. BGRID_MAX_TREE_DEPTH controls the maximum refinement of the background grid n n l TOOLS. SFUNCTION. NONLINEAR_ERR_PERCENT controls the allowable deviation of the local mesh from the prescribed mesh size n n l Increase the default value (16 in GAMBIT 2. 2) until no cells hit the tree depth. A value of – 1 puts no limit on the background tree depth, but makes size functions too slow for large models Default is 25%, can vary between 3 and 25% Number of cells above the prescribed tolerance are reported in the transcript window TOOLS. SFUNCTION. REPORT_BGRID_INFO = 1 turns reporting in the transcript window on. 7 -30 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Increasing Background Tree Depth Background grid level reached maximum value specified Size Function not sufficiently resolved Ideal background grid Underresolved Background Grid Resolved Background Grid 7 -31 © 2006 Fluent Inc.

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June

Fluent User Services Center www. fluentusers. com Introductory GAMBIT Training GAMBIT 2. 3 June 2006 Boundary Layer Defaults u u GAMBIT defaults set values for the critical parameters for growing boundary layers. Knowledge of the important defaults will help control the mesh on complex 2 D and 3 D geometry. l l Boundary layer defaults are available in the BLAYER and BLAYERTGRID sections under the Mesh tab in the Edit Defaults form. Edit → Defaults… The GAMBIT Command Reference Guide provides more information on defaults. 7 -32 © 2006 Fluent Inc.