Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Fluent and Gambit Workshop


Published on

A workshop on Fluent and Gambit conducted at NIT Trichy.

Fluent and Gambit Workshop

  1. 1. FLUENT & GAMBIT ALCHEMY 2010 S G Sriram Ragav and N Khalid Ahmed Department of Chemical Engineering National Institute of Technology, Tiruchirrappalli – 620 015
  2. 2. WHAT IS CFD...?? <ul><li>Computational Fluid Dynamics: </li></ul><ul><ul><li>simulation of fluid engineering systems using modeling (mathematical physical problem formulation) and numerical methods (discretization methods, solvers, numerical parameters, and grid generations, etc.) ‏ </li></ul></ul><ul><li>Knowledge and exploration of flow physics </li></ul>
  3. 3. WHERE IS CFD USED...?? <ul><li>Aerospace, Automotive, Biomedical, Chemical Processing, Hydraulics, Marine, Oil & Gas, Power Generation, Sports </li></ul>Aerospace F18 Store Separation Automotive Biomedical Temperature and natural convection currents in the eye following laser heating. Polymerization reactor vessel - prediction of flow separation and residence time effects. Chemical Processing Hydraulics HVAC Sports Power Generation Flow around cooling towers Flow of lubricating mud over drill bit Oil & Gas Streamlines for workstation ventilation
  4. 4. MODELLING <ul><li>Mathematical physics problem formulation in terms of a continuous initial boundary value problem (IBVP) ‏ </li></ul><ul><li>Includes : </li></ul><ul><ul><li>Geometry and domain </li></ul></ul><ul><ul><li>Coordinates </li></ul></ul><ul><ul><li>Governing equations </li></ul></ul><ul><ul><li>Flow conditions </li></ul></ul><ul><ul><li>Initial and Boundary conditions </li></ul></ul><ul><ul><li>Selection of models for different applications </li></ul></ul>
  5. 5. Math Modeling and Simulation of Physical Processes <ul><li>Define the physical problem </li></ul><ul><li>Create mathematical model </li></ul><ul><ul><li>PDEs, ODEs, Algebraic equations </li></ul></ul><ul><ul><li>Define the initial and boundary conditions </li></ul></ul><ul><li>Create a discrete numerical model </li></ul><ul><ul><li>Discretize the domain, Generate the grid </li></ul></ul><ul><ul><li>Solve the system </li></ul></ul><ul><li>Analyze the errors in the model </li></ul><ul><ul><li>Consistency, Stability and convergence analysis </li></ul></ul>
  6. 6. GEOMETRY AND DOMAIN <ul><li>Simple geometries - Easily created by few geometric parameters - e.g. circular pipe </li></ul><ul><li>Complex geometries - Created by partial differential equations or importing the database of the geometry(e.g. airfoil) into commercial software </li></ul><ul><li>Domain - size and shape </li></ul><ul><ul><li>Note : The three coordinates: Cartesian system (x,y,z), cylindrical system (r, θ , z), and spherical system(r, θ, Φ) should be appropriately chosen for a better resolution of the geometry (e.g. cylindrical for circular pipe). </li></ul></ul>
  7. 7. GOVERNING EQUATIONS <ul><li>Navier Stokes Equation </li></ul><ul><li>Continuity Equation </li></ul>
  8. 8. Methods Of Solution: <ul><li>FVM (Finite volume methods) </li></ul><ul><li>FEM (Finite element methods) </li></ul><ul><li>FDM (Finite Difference methods) – Very primitive and poor solution qualities. </li></ul>
  9. 9. Finite Element Basics <ul><li>Mesh of nodes and elements </li></ul><ul><li>Commonly used for structural simulations </li></ul><ul><li>Relate nodal displacements to nodal forces </li></ul><ul><li>K = element property matrix (stiffness) </li></ul><ul><li>q = vector of unknowns (nodal displacements) </li></ul><ul><li>Q = vector of nodal forcing parameters </li></ul><ul><li>Boundary values provide Q, Elements provide K </li></ul><ul><li>Solve for q </li></ul>
  10. 10. Finite Volume Basics <ul><li>Commonly used for fluid flows simulations </li></ul><ul><li>Subdivide spatial domain into cells </li></ul><ul><li>Maintain an approximation of over each cell </li></ul><ul><li>In each timestep we update the approximation of q for each cell using an approximation to the flux through the boundary of the cell </li></ul><ul><li>Explicit time stepping may be performed </li></ul>
  11. 11. FVM Vs FEM <ul><li>FVM </li></ul><ul><li>Converts PDEs to algebraic equations </li></ul><ul><li>Unstructured grid </li></ul><ul><li>Defined from conservation laws. Uses divergence theorem. </li></ul><ul><li>Nodes present any where in the control volume. </li></ul><ul><li>FEM </li></ul><ul><li>Converts PDEs to ODEs and algebraic equations. </li></ul><ul><li>Structured grid </li></ul><ul><li>Nodes at the vertices of the grid. </li></ul>
  12. 12. Types of Solution Strategies <ul><li>Implicit </li></ul><ul><li>Explicit </li></ul>
  13. 13. Implicit Vs Explicit <ul><li>Implicit </li></ul><ul><li>A parameter is always a function of knowns and unknowns </li></ul><ul><li>Solves simultaneous Equations </li></ul><ul><li>Highly convergent </li></ul><ul><li>Large time steps </li></ul><ul><li>Computationally expensive </li></ul><ul><li>Uses Matrix equations </li></ul><ul><li>Explicit </li></ul><ul><li>A parameter is always a function of knowns </li></ul><ul><li>Low convergence </li></ul><ul><li>Very small time steps </li></ul><ul><li>Uses algebraic difference equations </li></ul>
  14. 14. FLOW CONDITIONS <ul><li>Based on the physics of fluids, different categories exist: </li></ul><ul><ul><li>Viscous or inviscid (Re) ‏ </li></ul></ul><ul><ul><li>External flow or internal flow (wall bounded or not) ‏ </li></ul></ul><ul><ul><li>Turbulent vs laminar (Re) ‏ </li></ul></ul><ul><ul><li>Incompressible vs. compressible (Ma) ‏ </li></ul></ul><ul><ul><li>Single- vs. multi-phase (Ca) ‏ </li></ul></ul><ul><ul><li>Thermal/density effects (Pr, g, Gr, Ec) ‏ </li></ul></ul><ul><ul><li>Free-surface flow (Fr) and surface tension (We) ‏ </li></ul></ul><ul><ul><li>Chemical reactions and combustion (Pe, Da) ‏ </li></ul></ul>
  15. 15. INITIAL AND BOUNDARY CONDITIONS <ul><li>Initial conditions (ICS, steady/unsteady flows) ‏ </li></ul><ul><ul><li>D o not affect final results and only affect convergence path, i.e. number of iterations (steady) or time steps (unsteady) need to reach converged solutions. </li></ul></ul><ul><ul><li>More reasonable guess can speed up the convergence </li></ul></ul><ul><li>Boundary conditions </li></ul><ul><ul><li>No-slip or slip-free on walls, periodic, inlet (velocity inlet, mass flow rate, constant pressure, etc.), outlet (constant pressure, velocity convective, numerical beach, zero-gradient), and non-reflecting (for compressible flows, such as acoustics), etc. </li></ul></ul>
  16. 16. BOUNDARY CONDITIONS No-slip walls: u=0,v=0 v=0, dp/dr=0,du/dr=0 Inlet ,u=c,v=0 Outlet, p=c o r x Axisymmetric
  17. 17. SOLVING THE GOVERNING EQUATIONS <ul><li>Discretize the continuous Initial Boundary Value Problems (IBVPs) algebraic equations using numerical methods. </li></ul><ul><li>Assemble the system of algebraic equations and solve the system to get approximate solutions </li></ul><ul><li>Numerical Methods: </li></ul><ul><ul><li>Discretization methods </li></ul></ul><ul><ul><li>Solvers and numerical parameters </li></ul></ul><ul><ul><li>Grid generation and transformation </li></ul></ul><ul><ul><li>High Performance Computation (HPC) and post-processing </li></ul></ul>
  18. 18. NUMERICAL METHODS – GRID GENERATION <ul><li>Grids can either be structured (hexahedral) or unstructured (tetrahedral) - depending upon type of discretization scheme and application </li></ul><ul><ul><li>Scheme: </li></ul></ul><ul><ul><ul><li>Finite Difference – Structured </li></ul></ul></ul><ul><ul><ul><li>Finite Volume or Finite Element – Structured or Unstructed </li></ul></ul></ul>structured unstructured
  19. 19. CFD PROCESS <ul><li>Purposes of CFD codes will be different for different applications: investigation of bubble-fluid interactions for bubbly flows, study of wave induced massively separated flows for free-surface, etc. </li></ul><ul><li>Depend on the specific purpose and flow conditions of the problem, different CFD codes can be chosen for different applications (aerospace, marines, combustion, multi-phase flows, etc.)‏ </li></ul><ul><li>Once purposes and CFD codes chosen, “ CFD process ” is the steps to set up the IBVP problem and run the code: </li></ul><ul><ul><li>Geometry </li></ul></ul><ul><ul><li>Physics </li></ul></ul><ul><ul><li>Mesh </li></ul></ul><ul><ul><li>Solve </li></ul></ul><ul><ul><li>Reports </li></ul></ul><ul><ul><li>Post Processing </li></ul></ul>
  20. 20. Viscous Model Boundary Conditions Initial Conditions Convergent Limit Contours Precisions (single/ double) ‏ Numerical Scheme Vectors Streamlines Verification Geometry Select Geometry Geometry Parameters Physics Mesh Solve Post-Processing Compressible ON/OFF Flow properties Unstructured (automatic/ manual) ‏ Steady/ Unsteady Forces Report (lift/drag, shear stress, etc) ‏ XY Plot Domain Shape and Size Heat Transfer ON/OFF Structured (automatic/ manual) ‏ Iterations/ Steps Validation Reports
  22. 22. SOLVER EXECUTION <ul><ul><li>Menu is laid out such that order of operation is generally left to right. </li></ul></ul><ul><ul><ul><li>Import and scale mesh file. </li></ul></ul></ul><ul><ul><ul><li>Select physical models. </li></ul></ul></ul><ul><ul><ul><li>Define material properties. </li></ul></ul></ul><ul><ul><ul><li>Prescribe operating conditions. </li></ul></ul></ul><ul><ul><ul><li>Prescribe boundary conditions. </li></ul></ul></ul><ul><ul><ul><li>Provide an initial solution. </li></ul></ul></ul><ul><ul><ul><li>Set solver controls. </li></ul></ul></ul><ul><ul><ul><li>Set up convergence monitors. </li></ul></ul></ul><ul><ul><ul><li>Compute and monitor solution. </li></ul></ul></ul><ul><ul><li>Post-Processing </li></ul></ul><ul><ul><ul><li>Feedback into Solver </li></ul></ul></ul><ul><ul><ul><li>Engineering Analysis </li></ul></ul></ul>
  23. 23. INPUTS TO THE SOLVER <ul><li>GUI commands have a corresponding TUI command. </li></ul><ul><ul><li>Advanced commands are only available through TUI. </li></ul></ul><ul><ul><li>‘ Enter’ displays command set at current level. </li></ul></ul><ul><ul><li>‘ q’ moves up one level. </li></ul></ul>
  24. 24. READING MESH – MESH COMPONENTS <ul><li>Components are defined in preprocessor </li></ul><ul><ul><li>Cell = control volume into which domain is broken up </li></ul></ul><ul><ul><ul><li>computational domain is defined by mesh that represents the fluid and solid regions of interest. </li></ul></ul></ul><ul><ul><li>Face = boundary of a cell </li></ul></ul><ul><ul><li>Edge = boundary of a face </li></ul></ul><ul><ul><li>Node = grid point </li></ul></ul><ul><ul><li>Zone = grouping of nodes, faces, and/or cells </li></ul></ul><ul><ul><ul><li>Boundary data assigned to face zones. </li></ul></ul></ul><ul><ul><ul><li>Material data and source terms assigned to cell zones. </li></ul></ul></ul>Simple 2D mesh Simple 3D mesh face cell node edge node face cell cell center
  25. 25. SCALING MESH AND UNITS <ul><li>All physical dimensions initially assumed to be in meters . </li></ul><ul><ul><li>Scale grid accordingly. </li></ul></ul><ul><li>Other quantities can also be scaled. independent of other units used. </li></ul><ul><ul><li>Fluent defaults to SI units. </li></ul></ul>
  26. 26. MATERIAL TYPES AND PROPERTY DEFINITION <ul><li>Physical models may require inclusion of additional materials and dictates which properties need to be defined. </li></ul><ul><li>Material properties defined in Materials Panel. </li></ul><ul><ul><li>Single-Phase, Single Species Flows </li></ul></ul><ul><ul><ul><li>Define fluid/solid properties </li></ul></ul></ul><ul><ul><ul><li>Real gas model (NIST’s REFPROP) ‏ </li></ul></ul></ul><ul><ul><li>Multiple Species (Single Phase) Flows </li></ul></ul><ul><ul><ul><li>Mixture Material concept employed </li></ul></ul></ul><ul><ul><ul><ul><li>Mixture properties (composition dependent) defined separately from constituent’s properties. </li></ul></ul></ul></ul><ul><ul><ul><ul><li>Constituent properties must be defined. </li></ul></ul></ul></ul><ul><ul><ul><li>PDF Mixture Material concept </li></ul></ul></ul><ul><ul><ul><ul><li>PDF lookup table used for mixture properties. </li></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>Transport properties for mixture defined separately. </li></ul></ul></ul></ul></ul><ul><ul><ul><ul><li>Constituent properties extracted from database. </li></ul></ul></ul></ul><ul><ul><li>Multiple Phase Flows (Single Species) ‏ </li></ul></ul><ul><ul><ul><li>Define properties for all fluids and solids. </li></ul></ul></ul>
  27. 27. MATERIAL ASSIGNMENT <ul><li>Materials are assigned to cell zone where assignment method depends upon models selected: </li></ul><ul><ul><li>Single-Phase, Single Species Flows </li></ul></ul><ul><ul><ul><li>Assign material to fluid zone(s) in Fluid Panel. </li></ul></ul></ul><ul><ul><li>Multiple Species (Single Phase) Flows </li></ul></ul><ul><ul><ul><li>Assign mixture material to fluid zones in Species Model Panel or in Pre-PDF. </li></ul></ul></ul><ul><ul><ul><li>All fluid zones consist of ‘mixture’. </li></ul></ul></ul><ul><ul><li>Multiple Phase Flows (Single Species) ‏ </li></ul></ul><ul><ul><ul><li>Primary and secondary phases selected in Phases Panel. </li></ul></ul></ul><ul><ul><ul><ul><li>from Define menu </li></ul></ul></ul></ul><ul><ul><ul><li>All fluid zones consist of ‘mixture’. </li></ul></ul></ul>
  28. 28. POST PROCESSING <ul><li>Many post-processing tools are available. </li></ul><ul><li>Post-Processing functions typically operate on surfaces. </li></ul><ul><ul><li>Surfaces are automatically created from zones. </li></ul></ul><ul><ul><li>Additional surfaces can be created. </li></ul></ul><ul><li>Example: an Iso-Surface of constant grid coordinate can be created for viewing data within a plane. </li></ul>
  29. 29. POST PROCESSING – NODE VALUES <ul><li>Fluent calculates field variable data at cell centers. </li></ul><ul><li>Node values of the grid are either: </li></ul><ul><ul><li>calculated as the average of neighboring cell data, or, </li></ul></ul><ul><ul><li>defined explicitly (when available) with boundary condition data. </li></ul></ul><ul><li>Node values on surfaces are interpolated from grid node data. </li></ul><ul><li>Data files store: </li></ul><ul><ul><li>data at cell centers </li></ul></ul><ul><ul><li>node value data for primitive variables at boundary nodes. </li></ul></ul><ul><li>Enable Node Values to interpolate field data to nodes. </li></ul>
  30. 30. SOLVER ENHANCEMENTS – GRID ADAPTATION <ul><li>Grid adaption adds more cells where needed to resolve the flow field without pre-processor . </li></ul><ul><li>Fluent adapts on cells listed in register. </li></ul><ul><ul><li>Registers can be defined based on: </li></ul></ul><ul><ul><ul><li>Gradients of flow or user-defined variables </li></ul></ul></ul><ul><ul><ul><li>Iso-values of flow or user-defined variables </li></ul></ul></ul><ul><ul><ul><li>All cells on a boundary </li></ul></ul></ul><ul><ul><ul><li>All cells in a region </li></ul></ul></ul><ul><ul><ul><li>Cell volumes or volume changes </li></ul></ul></ul><ul><ul><ul><li>y + in cells adjacent to walls </li></ul></ul></ul><ul><ul><li>To assist adaption process, you can: </li></ul></ul><ul><ul><ul><li>Combine adaption registers </li></ul></ul></ul><ul><ul><ul><li>Draw contours of adaption function </li></ul></ul></ul><ul><ul><ul><li>Display cells marked for adaption </li></ul></ul></ul><ul><ul><ul><li>Limit adaption based on cell size and number of cells: </li></ul></ul></ul>
  31. 31. ADAPTATION EXAMPLE – 2D PLANAR SHELL 2D planar shell - initial grid <ul><li>Adapt grid in regions of high pressure gradient to better resolve pressure jump across the shock. </li></ul>2D planar shell - contours of pressure initial grid
  32. 32. ADAPTATION EXAMPLE – FINAL GRID & SOLUTION 2D planar shell - contours of pressure final grid 2D planar shell - final grid
  33. 33. DEFINING BOUNDARY CONDITIONS <ul><li>To define a problem that results in a unique solution, you must specify information on the dependent (flow) variables at the domain boundaries. </li></ul><ul><ul><li>Specifying fluxes of mass, momentum, energy, etc. into domain. </li></ul></ul><ul><li>Defining boundary conditions involves: </li></ul><ul><ul><li>identifying the location of the boundaries (e.g., inlets, walls, symmetry) ‏ </li></ul></ul><ul><ul><li>supplying information at the boundaries </li></ul></ul><ul><li>The data required at a boundary depends upon the boundary condition type and the physical models employed. </li></ul><ul><li>You must be aware of the information that is required of the boundary condition and locate the boundaries where the information on the flow variables are known or can be reasonably approximated . </li></ul><ul><ul><li>Poorly defined boundary conditions can have a significant impact on your solution. </li></ul></ul>
  34. 34. AVAILABLE BOUNDARY CONDITION TYPES <ul><li>Boundary Condition Types of External Faces </li></ul><ul><ul><li>General : Pressure inlet, Pressure outlet </li></ul></ul><ul><ul><li>Incompressible : Velocity inlet, Outflow </li></ul></ul><ul><ul><li>Compressible flows : Mass flow inlet, Pressure far-field </li></ul></ul><ul><ul><li>Special : Inlet vent, outlet vent, intake fan, exhaust fan </li></ul></ul><ul><ul><li>Other : Wall, Symmetry, Periodic, Axis </li></ul></ul><ul><li>Boundary Condition Types of Cell ‘Boundaries’ </li></ul><ul><ul><li>Fluid and Solid </li></ul></ul><ul><li>Boundary Condition Types of Double-Sided Face ‘Boundaries’ </li></ul><ul><ul><li>Fan, Interior, Porous Jump, Radiator, Walls </li></ul></ul>inlet outlet wall interior Orifice_plate and orifice_plate-shadow
  35. 35. CHANGING BOUNDARY CONDITION TYPES <ul><li>Zones and zone types are initially defined in pre-processor. </li></ul><ul><li>To change zone type for a particular zone: </li></ul><ul><ul><li>Define  Boundary Conditions... </li></ul></ul><ul><ul><li>Choose the zone in Zone list. </li></ul></ul><ul><ul><ul><li>Can also select boundary zone using right mouse button in Display Grid window. </li></ul></ul></ul><ul><ul><li>Select new zone type in Type list. </li></ul></ul>
  36. 36. SETTING BOUNDARY CONDITION DATA <ul><li>Explicitly assign data in BC panels. </li></ul><ul><ul><li>To set boundary conditions for particular zone: </li></ul></ul><ul><ul><ul><li>Choose the zone in Zone list. </li></ul></ul></ul><ul><ul><ul><li>Click Set ... button </li></ul></ul></ul><ul><ul><li>Boundary condition data can be copied from one zone to another. </li></ul></ul><ul><li>Boundary condition data can be stored and retrieved from file. </li></ul><ul><ul><li>file  write-bc and file  read-bc </li></ul></ul><ul><li>Boundary conditions can also be defined by UDFs and Profiles. </li></ul><ul><li>Profiles can be generated by: </li></ul><ul><ul><li>Writing a profile from another CFD simulation </li></ul></ul><ul><ul><li>Creating an appropriately formatted text file with boundary condition data . </li></ul></ul>
  37. 37. VELOCITY INLET <ul><li>Specify Velocity by: </li></ul><ul><ul><li>Magnitude, Normal to Boundary </li></ul></ul><ul><ul><li>Components </li></ul></ul><ul><ul><li>Magnitude and Direction </li></ul></ul><ul><li>Velocity profile is uniform by default </li></ul><ul><li>Intended for incompressible flows. </li></ul><ul><ul><li>Static pressure adjusts to accommodate prescribed velocity distribution. </li></ul></ul><ul><ul><li>Total (stagnation) properties of flow also varies. </li></ul></ul><ul><ul><li>Using in compressible flows can lead to non-physical results. </li></ul></ul><ul><li>Can be used as an outlet by specifying negative velocity. </li></ul><ul><ul><li>You must ensure that mass conservation is satisfied if multiple inlets are used. </li></ul></ul>
  38. 38. PRESSURE INLET <ul><li>Specify: </li></ul><ul><ul><li>Total Gauge Pressure </li></ul></ul><ul><ul><ul><li>Defines energy to drive flow. </li></ul></ul></ul><ul><ul><ul><li>Doubles as back pressure (static gauge) for cases where back flow occurs. </li></ul></ul></ul><ul><ul><ul><ul><li>Direction of back flow determined from interior solution. </li></ul></ul></ul></ul><ul><ul><li>Static Gauge Pressure </li></ul></ul><ul><ul><ul><li>Static pressure where flow is locally supersonic; ignored if subsonic </li></ul></ul></ul><ul><ul><ul><li>Will be used if flow field is initialized from this boundary. </li></ul></ul></ul><ul><ul><li>Total Temperature </li></ul></ul><ul><ul><ul><li>Used as static temperature for incompressible flow. </li></ul></ul></ul><ul><ul><li>Inlet Flow Direction </li></ul></ul>Incompressible flows: Compressible flows:
  39. 39. PRESSURE INLET <ul><li>Note: Gauge pressure inputs are required. </li></ul><ul><ul><li>Operating pressure input is set under: Define  Operating Conditions </li></ul></ul><ul><li>Suitable for compressible and incompressible flows. </li></ul><ul><ul><li>Pressure inlet boundary is treated as loss-free transition from stagnation to inlet conditions. </li></ul></ul><ul><ul><li>Fluent calculates static pressure and velocity at inlet </li></ul></ul><ul><ul><li>Mass flux through boundary varies depending on interior solution and specified flow direction. </li></ul></ul><ul><li>Can be used as a “free” boundary in an external or unconfined flow. </li></ul>
  40. 40. PRESSURE OUTLET <ul><li>Specify static gauge pressure </li></ul><ul><ul><li>Interpreted as static pressure of environment into which flow exhausts. </li></ul></ul><ul><ul><li>Radial equilibrium pressure distribution option available. </li></ul></ul><ul><ul><li>Doubles as inlet pressure ( total gauge ) for cases where backflow occurs. </li></ul></ul><ul><li>Backflow </li></ul><ul><ul><li>Can occur at pressure outlet during iterations or as part of final solution. </li></ul></ul><ul><ul><li>Backflow direction is assumed to be normal to the boundary. </li></ul></ul><ul><ul><li>Backflow boundary data must be set for all transport variables. </li></ul></ul><ul><ul><li>Convergence difficulties minimized by realistic values for backflow quantities. </li></ul></ul><ul><li>Suitable for compressible and incompressible flows </li></ul><ul><ul><li>Pressure is ignored if flow is locally supersonic. </li></ul></ul><ul><li>Can be used as a “free” boundary in an external or unconfined flow. </li></ul>
  41. 41. OUTFLOW <ul><li>No pressure or velocity information is required. </li></ul><ul><ul><li>Data at exit plane is extrapolated from interior. </li></ul></ul><ul><ul><li>Mass balance correction is applied at boundary. </li></ul></ul><ul><li>Flow exiting Outflow boundary exhibits zero normal diffusive flux for all flow variables. </li></ul><ul><ul><li>Appropriate where exit flow is close to fully developed condition. </li></ul></ul><ul><li>Intended for incompressible flows. </li></ul><ul><ul><li>Cannot be used with a Pressure Inlet; must use velocity inlet. </li></ul></ul><ul><ul><ul><li>Combination does not uniquely set pressure gradient over whole domain. </li></ul></ul></ul><ul><ul><li>Cannot be used for unsteady flows with variable density. </li></ul></ul><ul><li>Poor rate of convergence when back flow occurs during iteration. </li></ul><ul><ul><li>Cannot be used if back flow is expected in final solution. </li></ul></ul>
  42. 42. WALL BOUNDARIES <ul><li>Used to bound fluid and solid regions. </li></ul><ul><li>In viscous flows, no-slip condition enforced at walls: </li></ul><ul><ul><li>Tangential fluid velocity equal to wall velocity. </li></ul></ul><ul><ul><li>Normal velocity component = 0 </li></ul></ul><ul><ul><li>Shear stress can also be specified. </li></ul></ul><ul><li>Thermal boundary conditions: </li></ul><ul><ul><li>several types available </li></ul></ul><ul><ul><li>Wall material and thickness can be defined for 1-D or shell conduction heat transfer calculations. </li></ul></ul><ul><li>Wall roughness can be defined for turbulent flows. </li></ul><ul><ul><li>Wall shear stress and heat transfer based on local flow field. </li></ul></ul><ul><li>Translational or rotational velocity can be assigned to wall. </li></ul>
  43. 43. SYMMETRY AND AXIS BOUNDARIES <ul><li>Symmetry Boundary </li></ul><ul><ul><li>Used to reduce computational effort in problem. </li></ul></ul><ul><ul><li>No inputs required. </li></ul></ul><ul><ul><li>Flow field and geometry must be symmetric: </li></ul></ul><ul><ul><ul><li>Zero normal velocity at symmetry plane </li></ul></ul></ul><ul><ul><ul><li>Zero normal gradients of all variables at symmetry plane </li></ul></ul></ul><ul><ul><ul><li>Must take care to correctly define symmetry boundary locations. </li></ul></ul></ul><ul><ul><li>Can be used to model slip walls in viscous flow </li></ul></ul><ul><li>Axis Boundary </li></ul><ul><ul><li>Used at centerline for 2D axisymmetric problems. </li></ul></ul><ul><ul><li>No inputs required. </li></ul></ul>symmetry planes
  44. 44. PERIODIC BOUNDARIES <ul><li>Used to reduce computational effort in problem. </li></ul><ul><li>Flow field and geometry must be either translationally or rotationally periodic. </li></ul><ul><li>For rotationally periodic boundaries: </li></ul><ul><ul><li> p = 0 across periodic planes. </li></ul></ul><ul><ul><li>Axis of rotation must be defined in fluid zone. </li></ul></ul><ul><li>For translationally periodic boundaries: </li></ul><ul><ul><li> p can be finite across periodic planes. </li></ul></ul><ul><ul><ul><li>Models fully developed conditions. </li></ul></ul></ul><ul><ul><ul><li>Specify either mean  p per period or net mass flow rate. </li></ul></ul></ul><ul><ul><ul><li>Periodic boundaries defined in Gambit are translational. </li></ul></ul></ul>Translationally periodic planes 2D tube heat exchanger flow Rotationally periodic planes
  45. 45. CELL ZONES - FLUID <ul><li>Fluid zone = group of cells for which all active equations are solved. </li></ul><ul><li>Fluid material input required. </li></ul><ul><ul><li>Single species, phase. </li></ul></ul><ul><li>Optional inputs allow setting of source terms: </li></ul><ul><ul><li>mass, momentum, energy, etc. </li></ul></ul><ul><li>Define fluid zone as laminar flow region if modeling transitional flow. </li></ul><ul><li>Can define zone as porous media. </li></ul><ul><li>Define axis of rotation for rotationally periodic flows. </li></ul><ul><li>Can define motion for fluid zone. </li></ul>
  46. 46. CELL ZONES - SOLID <ul><li>“ Solid” zone = group of cells for which only heat conduction problem solved. </li></ul><ul><ul><li>No flow equations solved </li></ul></ul><ul><ul><li>Material being treated as solid may actually be fluid, but it is assumed that no convection takes place. </li></ul></ul><ul><li>Only required input is material type </li></ul><ul><ul><li>So appropriate material properties used. </li></ul></ul><ul><li>Optional inputs allow you to set volumetric heat generation rate (heat source). </li></ul><ul><li>Need to specify rotation axis if rotationally periodic boundaries adjacent to solid zone. </li></ul><ul><li>Can define motion for solid zone </li></ul>
  48. 48. What is GAMBIT ? <ul><li>A single, integrated preprocessor for CFD analysis: </li></ul><ul><ul><li>Geometry construction and import </li></ul></ul><ul><ul><ul><li>Using STEP, Parasolid, IGES, etc. import </li></ul></ul></ul><ul><ul><ul><ul><li>Cleanup and modification of imported data and volume </li></ul></ul></ul></ul><ul><ul><li>Mesh generation for all Fluent solvers </li></ul></ul><ul><ul><ul><li>Structured and Unstructured hexahedral, tetrahedral, pyramid, and prisms. </li></ul></ul></ul><ul><ul><li>Mesh quality examination </li></ul></ul><ul><ul><li>Mesh Export </li></ul></ul><ul><ul><li>Boundary zone assignment </li></ul></ul>
  49. 49. Types of Grids in Gambit <ul><li>Structured </li></ul><ul><li>Unstructured </li></ul>
  50. 50. Structured Grids <ul><li>Topologically rectangular </li></ul><ul><li>This means that the mesh volume is a quadrilateral in 2d or a hexahedron in 3d </li></ul><ul><li>Each mesh volume is linked only to its immediate neighbors </li></ul><ul><li>But the edges can be mapped around curves and mesh volumes don’t have to be the same size </li></ul><ul><li>Reduces storage and CPU requirements </li></ul><ul><li>Solid regions like tank baffles can be generated by blanking those mesh points which overlap the solid region and making them “dead zones”. Fiddly but still generates a good grid </li></ul><ul><li>dead zones waste storage. </li></ul>
  51. 51. Unstructured Grids <ul><li>Mesh volumes can be linked to any other volume in the domain </li></ul><ul><li>And can be any shape </li></ul><ul><li>less computationally efficient than a structured grid </li></ul><ul><li>but can still read a structured grid topology (often still the best) </li></ul><ul><li>can use non-conformal grids </li></ul><ul><li>introduces flexbility but this flexbility creates problems </li></ul>
  52. 52. Unstructured Grid Topologies
  53. 53. Gambit - bottom up approach <ul><li>create vertex’s </li></ul><ul><li>link vertex’s to make edges </li></ul><ul><li>create faces from edges </li></ul><ul><li>create volumes from faces (3d) </li></ul><ul><li>mesh edges </li></ul><ul><li>mesh faces </li></ul><ul><li>mesh volumes (3d) </li></ul>
  54. 54. GUI Main Menu bar Global Control Operation toolpad Command line Description window
  55. 55. Operation Tool Pads <ul><ul><li>Vertex </li></ul></ul><ul><ul><li>Edge </li></ul></ul><ul><ul><li>Face </li></ul></ul><ul><ul><li>Volume </li></ul></ul><ul><ul><li>Group </li></ul></ul><ul><ul><li>Boundary Layer </li></ul></ul><ul><ul><li>Edge </li></ul></ul><ul><ul><li>Face </li></ul></ul><ul><ul><li>Volume </li></ul></ul><ul><ul><li>Group </li></ul></ul><ul><ul><ul><li>Boundary Types Boundary Entity </li></ul></ul></ul><ul><ul><ul><li>Continuum Types Continuum Entity </li></ul></ul></ul>Coordinate Systems Sizing Function G/Turbo User-Defined Tools
  56. 56. Graphical User Interface <ul><li>Command : </li></ul><ul><ul><li>Input of (non-GUI) commands , e.g., </li></ul></ul><ul><ul><ul><li>reset : deletes all mesh and geometry in the current model </li></ul></ul></ul><ul><ul><ul><li>reset mesh : deletes mesh, keeps geometry </li></ul></ul></ul><ul><li>Description </li></ul><ul><ul><li>Gives a short description of all global function buttons and screen areas </li></ul></ul><ul><li>Transcript </li></ul><ul><ul><li>Output from GAMBIT is printed here as well as in ident .trn </li></ul></ul><ul><ul><li>Transcript window can be expanded using arrow button in top right corner </li></ul></ul>
  57. 57. Global Control
  58. 58. Mouse Operations <ul><ul><li>You can toggle between picking with or without “Shift”: </li></ul></ul><ul><ul><ul><li>Keep right mouse button down while doing a “left-click” </li></ul></ul></ul><ul><ul><ul><li>The cursor now changes to another symbol </li></ul></ul></ul><ul><ul><ul><li>Now, Pick/Next/Accept do not need a “Shift” </li></ul></ul></ul><ul><ul><ul><li>The Rotation/Translation/Zoom now needs a “Shift” </li></ul></ul></ul>
  59. 59. Thank You