Auto Injector Syringe. A Fluent Dynamic Mesh 1DOF Tutorial

Similar documents
Simulating Sinkage & Trim for Planing Boat Hulls. A Fluent Dynamic Mesh 6DOF Tutorial

Use 6DOF solver to calculate motion of the moving body. Create TIFF files for graphic visualization of the solution.

Tutorial: Simulating a 3D Check Valve Using Dynamic Mesh 6DOF Model And Diffusion Smoothing

Calculate a solution using the pressure-based coupled solver.

This tutorial illustrates how to set up and solve a problem involving solidification. This tutorial will demonstrate how to do the following:

Tutorial: Hydrodynamics of Bubble Column Reactors

Using the Eulerian Multiphase Model for Granular Flow

The purpose of this tutorial is to illustrate how to set up and solve a problem using the. Moving Deforming Mesh (MDM) using the layering algorithm.

Using Multiple Rotating Reference Frames

Tutorial: Modeling Domains with Embedded Reference Frames: Part 2 Sliding Mesh Modeling

Shape optimisation using breakthrough technologies

OpenFOAM and Third Party Structural Solver for Fluid Structure Interaction Simulations

Tutorial: Modeling Liquid Reactions in CIJR Using the Eulerian PDF transport (DQMOM-IEM) Model

Simulation of Laminar Pipe Flows

Modeling Flow Through Porous Media

Appendix: To be performed during the lab session

The Level Set Method THE LEVEL SET METHOD THE LEVEL SET METHOD 203

Automotive Fluid-Structure Interaction (FSI) Concepts, Solutions and Applications. Laz Foley, ANSYS Inc.

Solution Recording and Playback: Vortex Shedding

Using Multiple Rotating Reference Frames

Compressible Flow in a Nozzle

Mesh Morphing and the Adjoint Solver in ANSYS R14.0. Simon Pereira Laz Foley

Using a Single Rotating Reference Frame

Lab 9: FLUENT: Transient Natural Convection Between Concentric Cylinders

Tutorial: Riser Simulation Using Dense Discrete Phase Model

Supersonic Flow Over a Wedge

Using the Discrete Ordinates Radiation Model

Coupled Simulation of Flow and Body Motion Using Overset Grids. Eberhard Schreck & Milovan Perić

Tutorial 2. Modeling Periodic Flow and Heat Transfer

Tutorial 17. Using the Mixture and Eulerian Multiphase Models

Express Introductory Training in ANSYS Fluent Workshop 07 Tank Flushing

Problem description. The FCBI-C element is used in the fluid part of the model.

Simulation and Validation of Turbulent Pipe Flows

Modeling Evaporating Liquid Spray

Simulation of Flow Development in a Pipe

Engineering Effects of Boundary Conditions (Fixtures and Temperatures) J.E. Akin, Rice University, Mechanical Engineering

Flow in an Intake Manifold

RBF Morph An Add-on Module for Mesh Morphing in ANSYS Fluent

Revision of the SolidWorks Variable Pressure Simulation Tutorial J.E. Akin, Rice University, Mechanical Engineering. Introduction

Cold Flow Simulation Inside an SI Engine

Tutorial: Heat and Mass Transfer with the Mixture Model

Lecture 6 Static Data Transfers. Solving FSI Applications Using ANSYS Mechanical and ANSYS Fluent Release. Release 14.5

Verification of Laminar and Validation of Turbulent Pipe Flows

Marine Hydrodynamics Solver in OpenFOAM

2008 International ANSYS Conference

Modeling Evaporating Liquid Spray

FLUENT Secondary flow in a teacup Author: John M. Cimbala, Penn State University Latest revision: 26 January 2016

Solving FSI Applications Using ANSYS Mechanical and ANSYS Fluent

Ryian Hunter MAE 598

equivalent stress to the yield stess.

Computational Study of Laminar Flowfield around a Square Cylinder using Ansys Fluent

Lecture 5 Two-way FSI Solving and Post Processing. Solving FSI Applications Using ANSYS Mechanical and ANSYS CFX Release. Release 14.

Thank you for downloading one of our ANSYS whitepapers we hope you enjoy it.

Express Introductory Training in ANSYS Fluent Workshop 06 Using Moving Reference Frames and Sliding Meshes

Middle East Technical University Mechanical Engineering Department ME 485 CFD with Finite Volume Method Fall 2017 (Dr. Sert)

ANSYS FLUENT. Lecture 3. Basic Overview of Using the FLUENT User Interface L3-1. Customer Training Material

µ = Pa s m 3 The Reynolds number based on hydraulic diameter, D h = 2W h/(w + h) = 3.2 mm for the main inlet duct is = 359

Metafor FE Software. 2. Operator split. 4. Rezoning methods 5. Contact with friction

Express Introductory Training in ANSYS Fluent Workshop 04 Fluid Flow Around the NACA0012 Airfoil

Tutorial 1. Introduction to Using FLUENT: Fluid Flow and Heat Transfer in a Mixing Elbow

Swapnil Nimse Project 1 Challenge #2

A B C D E. Settings Choose height, H, free stream velocity, U, and fluid (dynamic viscosity and density ) so that: Reynolds number

Module D: Laminar Flow over a Flat Plate

Facundo DEL PIN / Iñaki ÇALDICHOURY / Rodrigo PAZ / / Livermore Software Technology Corporation

Workbench Tutorial Minor Losses, Page 1 Tutorial Minor Losses using Pointwise and FLUENT

2008 International ANSYS Conference Strongly Coupled FSI Simulation Moving Compressible Pressure Pulse through a Tube

November c Fluent Inc. November 8,

Modeling Unsteady Compressible Flow

Flow and Heat Transfer in a Mixing Elbow

Coupling of STAR-CCM+ to Other Theoretical or Numerical Solutions. Milovan Perić

Express Introductory Training in ANSYS Fluent Workshop 02 Using the Discrete Phase Model (DPM)

First Steps - Ball Valve Design

Introduction to ANSYS SOLVER FLUENT 12-1

DMU Engineering Analysis Review

Simulation in Computer Graphics. Deformable Objects. Matthias Teschner. Computer Science Department University of Freiburg

ANSYS/LS-Dyna. Workbench Using. Steven Hale Senior Engineering Manager CAE Associates, Inc. June 13, CAE Associates

midas NFX 2017R1 Release Note

Fluid-structure Interaction by the mixed SPH-FE Method with Application to Aircraft Ditching

ANSYS Fluid Structure Interaction for Thermal Management and Aeroelasticity

Chapter 5 Modeling and Simulation of Mechanism

Express Introductory Training in ANSYS Fluent Workshop 08 Vortex Shedding

Revolve 3D geometry to display a 360-degree image.

Coupled Analysis of FSI

A study of Jumper FIV due to multiphase internal flow: understanding life-cycle fatigue. Alan Mueller & Oleg Voronkov

Simulation of Turbulent Flow around an Airfoil

Introduction to ANSYS ICEM CFD

Verification and Validation of Turbulent Flow around a Clark-Y Airfoil

LS-DYNA s Linear Solver Development Phase 2: Linear Solution Sequence

Driven Cavity Example

Isotropic Porous Media Tutorial

Wall thickness= Inlet: Prescribed mass flux. All lengths in meters kg/m, E Pa, 0.3,

The Spalart Allmaras turbulence model

Introduction to CFX. Workshop 2. Transonic Flow Over a NACA 0012 Airfoil. WS2-1. ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

Modeling External Compressible Flow

Multi-Axis Tabular Loads in ANSYS Workbench

Directions: 1) Delete this text box 2) Insert desired picture here

Appendix P. Multi-Physics Simulation Technology in NX. Christian Ruel (Maya Htt, Canada)

TryItNow! Step by Step Walkthrough: Spoiler Support

T6: Position-Based Simulation Methods in Computer Graphics. Jan Bender Miles Macklin Matthias Müller

ALE and Fluid-Structure Interaction in LS-DYNA March 2004

Transcription:

Auto Injector Syringe A Fluent Dynamic Mesh 1DOF Tutorial 1 2015 ANSYS, Inc. June 26, 2015

Prerequisites This tutorial is written with the assumption that You have attended the Introduction to ANSYS Fluent training course including Design Modeler, Meshing, Fluent and CFD-Post. You are familiar with basic geometry creation/import into ANSYS Design Modeler and operations to split geometry. You are familiar with assigning size functions and mesh generation in ANSYS Meshing. You are familiar with the ANSYS Fluent navigation pane and menu structure. The focus of the current tutorial is on the auto-injector application and not on the mechanics of the setup. Some steps in the setup and solution procedure will not be shown explicitly. Workbench project is attached (note that the included project was saved in R16.0, the current release version of the product). The UDF and this presentation are included in the user_files folder in the Workbench project 2 2015 ANSYS, Inc. June 26, 2015

Problem Description Axisymmetric Auto-injector Outlet Plunger with virtual spring Barrel Axis Wall Needle Wall Skin (Porous Zone) Needle Tip The 2D geometry is created in Design modeler with appropriate dimensions. The geometry is decomposed to allow hex meshing 3 2015 ANSYS, Inc. June 26, 2015

Mesh 4 elements across the cross section of the needle Spacing of 5e-4m along the syringe barrel Needle penetrates into the skin. Needle zone is separated from skin by a wall/wall-shadow in Fluent 4 2015 ANSYS, Inc. June 26, 2015

Named Selections Labels on the left 5 2015 ANSYS, Inc. June 26, 2015

Fluent General Settings o This is a transient problem o The flow is laminar o No other special models are enabled o Enable UDS transport Define > User Defined > Scalars. UDS will allow tracking of convective and diffusive transport of drug into skin 6 2015 ANSYS, Inc. June 26, 2015

Material Properties o Create Water material o Enable compressible liquid property for the water. This helps numerically stabilize pressure spikes that can happen when plunger moves and helps convergence. o Enter appropriate diffusion coefficient of scalar in liquid o Set the diffusion coefficient to zero if convective transport dominates 7 2015 ANSYS, Inc. June 26, 2015

Porous Zone Settings for Skin o Fluid resistance in the skin depth direction is higher than along skin direction. Measured data can be entered for more accurate results. 8 2015 ANSYS, Inc. June 26, 2015

Solution Settings (Fluent Defaults) Second-order discretization can improve the accuracy of the solution 9 2015 ANSYS, Inc. June 26, 2015

Setting Monitors to Track Solution o Surface monitors can be created to track mass flow rate of drug through fluid outlet, plunger location etc. 10 2015 ANSYS, Inc. June 26, 2015

Writing Backup and Solution Files Enable solution backup Write CFD-Post files for later processing 11 2015 ANSYS, Inc. June 26, 2015

Compiling and Hooking the UDF o Plunger motion is defined via User Define Function (UDF) called rigid_body.c. The UDF has two functions defined: o Fixed plunger motion o Plunger motion controlled by spring and fluid forces o A C-compiler is needed to compile the UDF (see Customer Portal for details) 12 2015 ANSYS, Inc. June 26, 2015

Initializing the Solution o Initialize the solution with quiescent conditions o Patch the User Scalar (UDS) representing the drug into the barrel and needle 13 2015 ANSYS, Inc. June 26, 2015

Dynamic Mesh Settings o o o o o So far we have described the general settings for the application The most critical part of this application is setting up the dynamic mesh algorithm to track the plunger motion The following section outlines the settings specific to three situations: (a) prescribed motion (b) spring activated fluid controlled motion of the plunger using Fluent 6DOF approach with solution stabilization and implicit update (c) spring activated fluid controlled motion of the plunger using explicit UDF approach (see APPENDIX) A Smoothing algorithm is used to modify the mesh in the barrel volume as the plunger moves For more details, please review material related to Moving Dynamic Mesh (MDM) algorithm on the Customer Portal. 14 2015 ANSYS, Inc. June 26, 2015

15 2015 ANSYS, Inc. June 26, 2015 Fixed Plunger Movement

Dynamic Mesh Settings Diffusion based smoothing is activated, this parameter controls mesh distribution as plunger moves 16 2015 ANSYS, Inc. June 26, 2015 Define barrel_wall_stationary as a stationary zone

Dynamic Mesh Settings Hook the function plunger_fixed to the plunger_wall boundary zone under motion attributes tab. Explicitly define the skin and needle as stationary 17 2015 ANSYS, Inc. June 26, 2015

Dynamic Mesh Settings Deforming zones are defined as a plane to make sure they do not distort as plunger moves 18 2015 ANSYS, Inc. June 26, 2015

Explanation of the UDF Pre-defined plunger velocity Setting x-direction plunger velocity to the pre-defined fixed value DEFINE_CG_MOTION is the Fluent macro for defining motion of rigid bodies. For more details, please refer the UDF manual on the ANSYS customer portal. 19 2015 ANSYS, Inc. June 26, 2015

Preview the mesh motion o Mesh motion preview helps ensure that the re-meshing algorithm works without problems without actually solving for the flow. o Pre-viewing mesh motion is a good practice while setting up any type of moving boundary problem. 20 2015 ANSYS, Inc. June 26, 2015

Running the Calculation o Time step size is based on plunger speed of ~ 0.004 m/s and the minimum mesh element size in the Layering region ~ 5e-4 m o Time step size of 0.05 s allows the plunger to move a distance equal to about ½ the mesh element size in one time step o Maximum number of iterations per time step set to ensure convergence in every step. The problem typically converges in far less than the set number of iterations. 21 2015 ANSYS, Inc. June 26, 2015

Calculation Monitors 22 2015 ANSYS, Inc. June 26, 2015

Drug Injection into Skin (Post processing is done on the saved solution files in CFD-Post) 23 2015 ANSYS, Inc. June 26, 2015

24 2015 ANSYS, Inc. June 26, 2015 Plunger Motion Controlled by Spring and Opposing Fluid Force (using inbuilt 6DOF model)

6DOF UDF Explained o 6DOF model in Fluent calculates fluid forces on plunger and calculates plunger velocity Mass properties of plunger Restrict plunger motion in all directions except x Spring Compression Spring Force applied as external force 25 2015 ANSYS, Inc. June 26, 2015

Activating 6DOF Model in Fluent 26 2015 ANSYS, Inc. June 26, 2015 o Implicit update allows us to use much higher time steps. Implicit update adjusts the position of the moving boundary several times within a time step as controlled by the update interval. See next few slides for solution stabilization

Hook the 6DOF UDF to Control Plunger Motion Hook the 6DOF UDF Indicate that this is a 6DOF object 27 2015 ANSYS, Inc. June 26, 2015

Instability Mechanism For a Schematic 6DOF Case Initialized Fluid Solution First Coupling iteration Fluid P Forces passed to Plunger Displacements passed to Fluid Fluid P Initial pressure on plunger The plunger moves due fluid pressure Pressure decreases in Fluid due to increase in volume (Plunger has moved too much) Forces passed to Plunger Second Coupling iteration... Fluid P Displacements passed to Fluid Plunger Pressure in Fluid increases more due to reduced volume The plunger moves in the opposite direction 28 2015 ANSYS, Inc. June 26, 2015

Solution Stabilization Solution Stabilization is available in Fluent to stabilize these types of cases. The option can be found in the Dynamic Mesh settings on the Solver Options panel The solution stabilization changes a coefficient used for the pressure update at the current non-linear iteration. This coefficient changes the pressure convergence behavior close to the moving wall. It does however not change the converged solution For the volume-based option, the stabilization is a function of the cell volumes attached to the selected System Coupling/6DOF region For the coefficient-based option, the stabilization is a function of the linear matrix coefficients in the continuity equation The following text command activates stabilization for 6DOF cases: (rpsetvar 'dynamesh/sdof-solver-options? #t) 29 2015 ANSYS, Inc. June 26, 2015

Solution Stabilization From a physical point of view, the stabilization slows down the pressure response in Fluent at the deforming wall This means that the pressure doesn t increase/decrease as fast in Fluent when a new displacement is received This damped pressure response allows us to move towards the equilibrium, between fluid force and structural deformation, in a controlled way, rather than oscillating around it The stabilization has no effect on converged results A higher Scale Factor results in more stabilization (i.e. a slower pressure response) The appropriate value is case specific e.g. for the volume-based method Scale Factors between 0.01 and 1e5 have been used If you have small cell volumes you will need a larger Scale Factor How do we find the correct Scale Factor? 30 2015 ANSYS, Inc. June 26, 2015

Solution Stabilization Each graph illustrates pressure convergence on the FSI surface within 1 time step using different scale factors for the volume-based stabilization Scale Factor = 0 Baseline, case diverges Scale Factor = 2 Does not diverge but still oscillates too much around equilibrium (converged value) Scale Factor = 10 Very stable but over-damped. Not fully converged after 7 implicit mesh updates Scale Factor = 3 Good response. Well converged after 5 implicit mesh updates 31 2015 ANSYS, Inc. June 26, 2015

Activate Solution Stabilization for Plunger 32 2015 ANSYS, Inc. June 26, 2015

Case Modification o Case modification strategy is used to ramp up the time step size and ramp down the stabilization factor as the solution runs. o See next slide for more details of this panel 33 2015 ANSYS, Inc. June 26, 2015

Case Modification Run 2 time steps with time step size of 0.005 (stabilization factor = 0.005) Run 2 time steps with time step size of 0.01 (stabilization factor = 0.005) 34 2015 ANSYS, Inc. June 26, 2015 Run 1500 time steps with solution stabilization factor reduced to 0.0025 (time step = 0.01 s)

Initialize and Run Calculation o Initialization is performed as discussed in the fixed plunger movement case. o Calculation is started with an initial time step of 5e-5 o Calculation activities are programmed to ramp up the time step as discussed in previous slides. o Programmed calculation activities also control the overall length of simulation. o Solution typically converges every time step long before the maximum specified iterations/ time step is reached. 35 2015 ANSYS, Inc. June 26, 2015

Solution Monitors 36 2015 ANSYS, Inc. June 26, 2015

Drug Distribution Contours 37 2015 ANSYS, Inc. June 26, 2015

APPENDIX-A Plunger Motion Controlled by Spring and Opposing Fluid Force (explicit 1DOF UDF) 38 2015 ANSYS, Inc. June 26, 2015

UDF for Flow Controlled Motion Explained o Fluid forces calculated using appropriate macro o Plunger velocity calculated each time-step using: V new = Vold + F m t where F is the total force including the spring force and m is the mass of the plunger o In addition to fluid forces, plunger motion is controlled by a spring. Spring stiffness, spring length, and spring start position are inputs to the UDF as shown below. o Motion is stopped when the plunger reaches the maximum allowable displacement 39 2015 ANSYS, Inc. June 26, 2015

UDF explained - 2 Fluent Macro to control rigid body motion Write data to file Stop plunger motion 40 2015 ANSYS, Inc. June 26, 2015

UDF Explained - 3 Macro to compute fluid forces Spring displacement Spring force dv = dt * force / mass V new = V old + dv Total force = externally applied force + spring force + fluid force Apply calculated velocity as new velocity 41 2015 ANSYS, Inc. June 26, 2015

Hooking Spring driven plunger function in the Dynamic mesh panel o No other changes 42 2015 ANSYS, Inc. June 26, 2015

Initialize and Run the Calculation o o Time step size is based on some trial and error. 1e-5 is found to be stable for this problem. Maximum number of iterations per time step set to ensure convergence in every step. The problem typically converges in far less than the set number of iterations. o Note that this section with the explicitly written UDF is included for completeness. The inbuilt 6DOF model in Fluent performs the same calculation as a black box. There are also some additional stabilization features that can be activated to speed up calculation when using the 6DOF model. See 6DOF section for details. 43 2015 ANSYS, Inc. June 26, 2015