You are on page 1of 114

Fluent User Services Center FLUENT Software Training

DM Model March 2003


www.fluentusers.com

Dynamic Mesh Model


FLUENT v6.1

2-1 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Agenda
9:00 Overview of Dynamic Mesh (DM)
9:30 Global Controls
10:00 Dynamic Zones
10:30 Motion Specification
11:00 Step-by-Step Procedure
11:15 Tutorial 1
12:00 Lunch
1:00 Step-by-Step Procedure
1:30 Tutorial 2
2:30 Examples
3:00 Tips-and-Tricks and Technical Discussion Session
2-2 © Fluent Inc. 11/7/2005
Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Overview of DM

2-3 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Dynamic Mesh Overview


‹ New feature in FLUENT 6.1
z Built-in, no additional fee
‹ A general purpose model targeted for moving boundary problems
z IC engines
z Valves
z Fuel injectors
z HVAC modules and much much more…
‹ Can also be used for steady-state parametric studies
‹ Compatible with all physical models and solver types in FLUENT 6.1
‹ Compatible with any pre-processor
‹ Fully parallelized

2-4 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Mesh Motion Schemes


‹ Fluent offers three mesh schemes
z Spring analogy
z Local remeshing
z Dynamic layering
‹ Mesh motion may be applied to individual zones
‹ Different zones may use different schemes for mesh motion
‹ Connectivity between adjacent deforming zones may be non-
conformal

2-5 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Spring Analogy
‹ Interior nodes behave like a spring
or sponge
‹ Connectivity remains unchanged
‹ Limited to relatively small
deformation when used as a stand-
alone meshing scheme
‹ Available for tri, tet, quad, hex and
wedge mesh element types

2-6 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Local Remeshing
‹ As user-specified skewness and
size limits are exceeded, local
nodes and cells are added or
deleted
‹ As cells are added or deleted,
connectivity changes
‹ Available only for tri and tet mesh
elements

2-7 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Dynamic Layering
‹ Cells are added or deleted as the
zone grows and shrinks
‹ As cells are added or deleted,
connectivity changes
‹ Available for quad, hex and wedge
mesh elements

2-8 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Combination of Approaches
‹ Initial mesh needs
proper decomposition
‹ Layering
z Valve travel region
z Lower cylinder
region
‹ Remeshing
z Upper cylinder
region
‹ Non-conformal
interface between
zones

2-9 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Combination of Approaches

2 - 10 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Motion Specification
‹ Internal node positions are automatically calculated based on user
specified boundary motion
‹ Mesh motion scheme in each zone is automatically chosen based on
element type in that zone
‹ Prescribed mesh motion
z Position or velocity versus time i.e. ‘profile’ text file
z UDF with expression for position or velocity
‹ Flow dependant motion
z Mesh motion is coupled with the flow solution through a UDF
z Can integrate forces (pressure, gravity and viscous etc)
z Six degree of freedom UDF provided
z UDF readily customized for desired mesh motion

2 - 11 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Mesh Preview
‹ Mesh motion can be previewed without calculating flow variables
z Allows user to quickly check mesh quality throughout the simulation cycle
z Applicable to any dynamic mesh simulation

2 - 12 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Global Controls

2 - 13 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Overview
‹ Define > Dynamic Mesh > Parameters z Dynamic Mesh model enables generic
z Methods functionality
„ toggle spring analogy, layering, z In-Cylinder option adds specific
remeshing approaches functionality
„ GUI dynamically changes to reflect „ definition of RPM, starting crank angle,
selected methods crank period, etc...
„ option enables IC specific profile format
for valve motion

2 - 14 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Overview
‹ Smoothing (spring) parameters ‹ Layering parameters
z ‘stiffness’ z split/collapse factor
z boundary node relaxation ‹ Remeshing parameters
z convergence tolerance z min/max volume
z (max) number of iterations z max skewness

2 - 15 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Smoothing
‹ Edges between any two mesh nodes are idealized as a
network of interconnected springs. A set of linear
equations are derived based on force balance at the
nodes. The node positions at each time-step are solved
iteratively.
‹ By default smoothing is applied on tet/tri mesh.
‹ To apply smoothing for all type of mesh use:
(rpsetvar 'dynamesh/spring/all-element-type? #t)
‹ Spring Constant Factor: It adds “damping” to the
springs [1,0]
‹ Boundary Node Relaxation: Under-relaxation used
for the boundary nodes. Use a value of 0 if no
smoothing on the boundaries
z A default value of 1.0 is used for interior nodes
‹ Convergence Tolerance: Used when solving for node
positions.
‹ Number of Iterations: Max number of iterations.

2 - 16 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Smoothing
‹ Spring
Constant
Factor = 1.0

2 - 17 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Smoothing
‹ Spring
Constant
Factor = 0.1

2 - 18 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Smoothing
‹ Spring
Constant
Factor = 0.05

2 - 19 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Smoothing
‹ Spring
Constant
Factor = 0

2 - 20 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Smoothing
‹ Smoothing on Quads
(rpsetvar 'dynamesh/spring/all-element-type? #t)

2 - 21 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Smoothing
‹ The rpsetvar command is
not used here. Smoothing is
not applied automatically on
quad/hex meshes.

2 - 22 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Layering
‹ Constant Height
z Useful for uniform layer height
‹ Constant Ratio:
z Maintain a constant ratio of cell
heights between layers
z Useful when layering is done in
curved domains (e.g. cylindrical
geometry).
‹ Split if:
‹ Collapse if:

2 - 23 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Layering

2 - 24 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Layering

2 - 25 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Remeshing
‹ Sizing Function Controls:
‹ Resolution: determines the size of the
background bins used to evaluate the
size distribution with respect to the
minimum characteristic length of the
current mesh.
‹ Sizing Function Variation Rate: How
the background mesh increases in size
(from the boundary to the interior) [-
1,+inf]
‹ Distance Threshold: Is the degree of
polynomial that handles the size
variation of the background cell size.
(values in [-1,1]).
‹ Size Remesh Interval: How often the
remeshing is done based on min and
max cell volume.

2 - 26 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Remeshing
Meaning of Variation Rate:
‹ A value of -0.5 means that the minimum mesh size (cell edge length)
in the interior is half of the mesh size at the boundary,
‹ A value of 50 means that the maximum mesh size in the interior can be
50 times higher than the mesh size at the boundary.
Meaning of Distance Threshold:
‹ The higher the value, the slower the change of the mesh size close to
the boundary.
‹ A threshold value of 0 corresponds to linear in-/de-crease from the
boundary.
‹ Negative threshold values enforce a faster (than linear) in-/de-crease at
the boundary.
‹ Default Values work fine most of the time.

2 - 27 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Remeshing
‹ Minimum Cell Volume: mark cells for remeshing if their size gets
smaller than this value
‹ Maximum Cell Volume: mark cells for remeshing if their size gets
larger than this value
‹ Maximum Skewness: mark cells if their skewness increases this value
z Use 0.9 for tet mesh and
z 0.75 for tris

2 - 28 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Remeshing
‹ No Smoothing
‹ Effect of Size Remesh
Interval (SRI)
z SRI = 10
z Note that cells
adjacent to moving
wall get stretched.

2 - 29 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Remeshing
‹ No Smoothing
‹ Effect of Size
Remesh Interval
(SRI)
z SRI = 1
z Note cells
adjacent to wall
don’t get
stretched as
much.

2 - 30 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Dynamic Zones

2 - 31 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Dynamic Zones - Stationary


‹ Sets the nodes on a zone (either
fluid or face zone) as stationary.
‹ Cell height:
z Used for face zones
z For the remeshing of tet/tri, this
height is used for boundary node
distance.
z If layering, it will be used for
ideal height.
z It should be roughly the same
size as the initial mesh

2 - 32 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Dynamic Zones – Rigid Body


‹ Moves all nodes associated with
that zone (cell or face zone)
‹ Nodes do not move relative to
each other
‹ Motion Attributes: Motion can be
specified by Profile or UDF.
‹ Center of Gravity (CG) and its
location: specify if
z Profile uses position x, y, z. The
position is measured relative to
the CG location.
z Profile/UDF uses rotation

2 - 33 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Dynamic Zones – Rigid Body


‹ Mesh Options
‹ Cell height:
z For the remeshing of tet/tri, this
height is used for boundary node
distance.
z For layering, it will be used for
ideal height.
z It should be roughly the same
size as the initial mesh

2 - 34 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Dynamic Zones - Deforming


‹ Geometry Definition
z Required for remeshing and smoothing
z A simple Cylinder and Plane is built in.
„ Cylinder requires Origin and Axis
„ Plane requires any point on the plane
and a normal vector
ΠNormal vector can point either
direction
z User-Defined for other geometries
‹ Deforming is NOT required if the
adjacent cell is layering.

2 - 35 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Dynamic Zones - Deforming


‹ Meshing Options
z Smooth: If smoothing is required
z Remeshing: If remeshing is required
z Expand until
z Contract until

2 - 36 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Dynamic Zones - Deforming


deforming
‹ Smoothing deforming
and
Remeshing
applied on
deformed
face zones.
deforming

2 - 37 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Dynamic Zones - Deforming


‹ Smoothing is not
selected
‹ Only Remeshing is
applied.
‹ This looks much
better.
‹ In some 2d cases, like
this one, it may be
necessary not to select
Smoothing.
‹ In 3d cases,
Maximum Skewness
is also used, which
prevents this problem.

2 - 38 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Dynamic Zones – User-Defined


‹ If nodes
move
relative to
each other,
will need
UDF

2 - 39 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Motion Specification

2 - 40 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

In-Cylinder Motion
‹ For any simple sinusoidal (single-
degree, rigid-body, and
prescribed) motion, we can use
the built-in piston motion: A
L

L ps
θ
c Valve/Piston
Axis
A

2 - 41 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Table Profile
‹ For any type of rigid-body, single-degree, and prescribed motion, you
can use a profile table having the following format:

((profile_name_1 3 point)
(time 0 1 2)
(x 2 3 4) where,
(v_y 0 -5 0)) {“time”,“angle”};
{ "x", "y", "z"};
((profile_name_2 3 point) {"v_x", "v_y", "v_z"};
(time 0 1 2) {"theta_x", "theta_y", "theta_z"};
(omega_x 2 3 4)) {"omega_x", "omega_y", "omega_z"};

Angle = crank angle

2 - 42 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

UDFs
‹ Fluent also provides the following macros for DM calculations:
z DEFINE_CG_MOTION
z DEFINE_GEOM
z DEFINE_GRID_MOTION

2 - 43 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

DEFINE_CG_MOTION Macro
‹ Used to define the motion of the center of gravity for rigid body motion
z Used for un-prescribed and prescribed motion
z Multiple-Degree of freedom
‹ Macro: DEFINE_CG_MOTION ( name, dt, vel, omega, time, dtime)
‹ Argument types:
z void *dt (dynamic thread pointer; common in all macros)
z real vel[] (array that returns the CG velocity)
z real omega[] (array that returns the ω of the CG)
z real time (time)
z real dtime (time step)
‹ Function returns: void

2 - 44 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

DEFINE_CG_MOTION Example
#include "udf.h" /* compute pressure force on body by looping through all
#include "dynamesh_tools.h" faces */
force = 0.0;
static real v_prev = 0.0; begin_f_loop (f, t)
{
DEFINE_CG_MOTION(piston, dt, vel, omega, time, dtime)
F_AREA (A, f, t);
{
Thread *t; force += F_P (f, t) * NV_MAG (A);
face_t f; }
real NV_VEC (A); end_f_loop (f, t)
real force, dv;
/* compute change in velocity, i.e., dv = F * dt / mass
/* reset velocities */ velocity update using explicit euler formula */
NV_S (vel, =, 0.0); dv = dtime * force / 50.0;
NV_S (omega, =, 0.0); v_prev += dv;
Message ("time = %f, x_vel = %f, force = %f\n", time, v_prev,
if (!Data_Valid_P ())
force);
return;

/* get the thread pointer for which this motion is defined */ /* set x-component of velocity */
t = DT_THREAD ((Dynamic_Thread *)dt); vel[0] = v_prev;
}

2 - 45 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

DEFINE_GEOM Macro
‹ The DEFINE_GEOM macro is used to define geometry in a deforming
zone
‹ Macro: DEFINE_GEOM ( name, d, dt, position)
‹ Argument types:
z char name
z Domain *d
z void *dt
z real *position (this matrix is overwritten with the node position on the
boundary)
‹ Function returns: void

2 - 46 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

DEFINE_GEOM Example
/************************************************************
*
* defining parabola through points (0, 1), (1/2, 5/4), (1, 1)
*
************************************************************/
#include "udf.h"

DEFINE_GEOM(parabola, domain, dt, position)


{
/* set y = -x^2 + x + 1 */
position[1] = - position[0]*position[0] + position[0] + 1;
}

‹ The new position (after projection to the geometry defining the zone)
is returned to FLUENT by overwriting the position array

2 - 47 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

DEFINE_GRID_MOTION Macro
‹ Useful when defining the position of the nodes individually, e.g. fluid-
structure interaction.
‹ DEFINE_GRID_MOTION ( name, d, dt, time, dtime)
‹ Argument types:
z char name
z Domain *d
z void *dt
z real time
z real dtime
‹ Function returns: void

2 - 48 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

DEFINE_GRID_MOTION Example
‹ Case: Specify the deflection of a beam based on local coordinate x and
time t according to
− 10 .4 x sin( 27 .178 t ), x > 0.02
ω ( x, t ) = {
0, x < 0.02

‹ Node position is updated based on:

r n +1 = r n + Ω × r n Δt

2 - 49 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

DEFINE_GRID_MOTION Example
NV_S (omega, =, 0.0);
/********************************************************** NV_D (axis, =, 0.0, 1.0, 0.0);
* NV_D (origin, =, 0.0, 0.0, 0.152);
* node motion based on simple beam deflection equation
* compiled UDF begin_f_loop (f, tf)
* {
**********************************************************/ f_node_loop (f, tf, n)
#include "udf.h" {
v = F_NODE (f, tf, n);
DEFINE_GRID_MOTION(beam, domain, dt, time, dtime)
{ /* update node if x position is greater than 0.02
Thread *tf = DT_THREAD (dt); and that the current node has not been previously
face_t f; visited when looping through previous faces */
Node *v; if (NODE_X (v) > 0.020 && NODE_POS_NEED_UPDATE (v))
real NV_VEC (omega), NV_VEC (axis), NV_VEC (dx); {
real NV_VEC (origin), NV_VEC (rvec); /* indicate that node position has been update
real sign; so that it's not updated more than once */
int n; NODE_POS_UPDATED (v);

/* set deforming flag on adjacent cell zone */ omega[1] = sign * pow (NODE_X (v)/0.230, 0.5);
SET_DEFORMING_THREAD_FLAG (THREAD_T0 (tf)); NV_VV (rvec, =, NODE_COORD (v), -, origin);
NV_CROSS (dx, omega, rvec);
sign = -5.0 * sin (26.178 * time); NV_S (dx, *=, dtime);
NV_V (NODE_COORD (v), +=, dx);
Message ("time = %f, omega = %f\n", time, sign); }
}
}
end_f_loop (f, tf);
}

2 - 50 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Summary
‹ Mesh schemes available
z Spring Smoothing
z Layering
z Remeshing
‹ If there is relative motion between the boundary and its adjacent cell zone,
Fluent will automatically choose the appropriate mesh scheme
z If the adjacent cell type is hex/quad, or wedge, it will use layering.
z If the adjacent cell type is tet/tri, it will use Spring Smoothing and Remeshing
‹ The initial mesh needs to be decomposed according to the mesh scheme
desired.
‹ Motion can be specified to face zones as well as to cell zones.
‹ Motion can be defined using profile, built-in in-cylinder piston profile, or UDF
‹ Motion can be prescribed or un-prescribe

2 - 51 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Step-by-Step Setup Procedure

2 - 52 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Smoothing

2 - 53 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Smoothing


1cm

sides
1

V_y 0
(m/s) 1cm

-1

0 .005 .01 .015 V_y


.02
Time (s) cells-tri

bot 0.07cm

2 - 54 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Smoothing


‹ Step 1: Select Unsteady Solver
Define Æ Solver

2 - 55 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Smoothing


‹ Step 2: Activate Dynamic Mesh and Select Mesh Methods
Define Æ Dynamic Mesh Æ Parameters

2 - 56 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Smoothing


‹ Step 3: Define Load Profile 1

z Write a profile file V_y 0


(m/s)
((v_y 5 point) -1
(time 0 .005 .01 .015 .02)
(v_y 0 1 0 -1 0)) 0 .005 .01 .015 .02
Time (s)

z Read the profile


Define Æ Profile

2 - 57 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Smoothing


‹ Step 4: Define Dynamic Zones
z Rigid Body motion

V_y

cells-tri

0.07cm
bot
2 - 58 © Fluent Inc. 11/7/2005
Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Smoothing


‹ Step 4: Define Dynamic Zones
z Deforming side walls

sides

0.07cm
2 - 59 © Fluent Inc. 11/7/2005
Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Smoothing


‹ Step 5: File Æ Write Æ Case
‹ Step 6: Mesh Motion

Solve Æ Mesh Motion

2 - 60 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Layering -1


‹ Layering takes
place at the
interface
between tri and
quad.

2 - 61 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Layering -1


1cm

sides

1 x
1cm
V_y 0
(m/s)
-1 .07cm cells-tri int
V_y
0 .005 .01 .015 .02
Time (s) 0.1cm
cells-quad
.033cm

2 - 62 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Layering -1


‹ Define Dynamic Mesh Parameters
z Default parameters for layering is fine

2 - 63 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Layering -1


‹ Define Dynamic Zones
z Rigid Body Motion applied to the interface
between tri and quad.

.07cm
cells-tri V_y

cells-quad
0.033 .033cm
int
2 - 64 © Fluent Inc. 11/7/2005
Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Layering -1


‹ Define Dynamic Zones
z Deforming sides
z No need to assign Deforming for sides attached to quad

sides

.07cm

2 - 65 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Layering -1


‹ Final mesh
motion.

2 - 66 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Layering -2


‹ How to setup up
when layering
starts from
bottom wall?
‹ This requires
motion of quad
cells and use of
stationary on the
bottom wall.

2 - 67 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Layering -2


‹ Define Dynamic Zones
z Rigid Body Motion to Quad Cell Zone

V_y

cells-quad

2 - 68 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Layering -2


‹ Define Dynamic Zone
z ALL nodes on quad moves unless declared as stationary. When declared as
stationary, there will be relative motion between boundaries of the quad;
therefore, layering will take place.

cells-quad

.033cm bot
2 - 69 © Fluent Inc. 11/7/2005
Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Layering -2


‹ Dynamic Mesh Zone Assignment
z IF control of height for the tri is desired, specify
Rigid Body motion to the interface and specify ideal
height.

.07cm
V_y
cells-tri
cells-quad

int
2 - 70 © Fluent Inc. 11/7/2005
Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Layering -2


‹ Dynamic Mesh Zone Assignment
z Deforming sides attached to tris.

sides-tri

.07cm

2 - 71 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Layering -2


‹ Final mesh motion.

2 - 72 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Layering -3


‹ How to setup if
layering and
remeshing starts
and stops at
different times?
‹ This requires two
profiles, one for
the quad and
another one for
the interface.

2 - 73 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Remeshing & Smoothing


‹ Need to specify two
profiles.
Note: Details of setup not shown
int
1

cells_quad
(m/s) 0

-1 cells-quad
0 .005 .01 .015
.02 ((cells-quad 5 point)
-1 Time (s) (time 0 .005 .01 .015 .02)
(v_y 0 -1 0 1 0))
int
-0 ((int 7 point)
(m/s)
(time 0 .005 .005 .01 .015 .015 .02)
-1 (v_y 0 -1 0 0 0 1 0))
0 .005 .01 .015
.02
Time (s)
Profile File
2 - 74 © Fluent Inc. 11/7/2005
Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Non-Conformal
‹ What if we have
non-conformal
interface?

‹ It is used for:
z Closing
valves.
z Must have it
between
layering and
remeshing.

2 - 75 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Non-Conformal
‹ DefineÆGrid Interfaces
z Select int_quad under Interface Zone 1
z Select int_tri under Interface Zone 2
z Specify name under Grid Interface
cells-quad cells-tri
z Click on Create
Note: Motion Specification to the bottom walls
are not shown.

int-quad int-tri

2 - 76 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Non-Conformal
‹ Define Dynamic Zones
z Only the sides that is part of the tri
should be declared as Deforming.

cells-quad cells-tri

int-quad int-tri

2 - 77 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Non-Conformal
‹ Define Dynamic Zones
z Define sides as Deforming

cells-tri

side-tri

2 - 78 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Simple Inserting a Layer


‹ How to insert a
new layer?

2 - 79 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Inserting Boundary Layer


‹ Events is used to insert
layering at crank-angle of
40 degrees and removed at
crank angle of –40 (320
degrees).

cyl-side:
deforming

piston:
rigid-body
piston motion

2 - 80 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Tips and Tricks

2 - 81 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Completely Closing a Valve


‹ There are two ways to completely close a valve.
z The most common method is to delete non-conformal interface.
z Changing cell type from fluid to solid.
‹ The above can be performed via the Events (DefineÆDynamic Mesh
ÆEvents)
‹ But since events were implemented mainly to open and close valves in
IC applications, it is in terms of Crank Angle!
‹ But it is easy to translate or transform our time into Crank Angle.

2 - 82 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Completely Closing a Valve


High pressure
‹ How to close a valve
as shown on the valve
right?
‹ You need to create
the mesh with the v_
non-conformal
interface as shown.
y
interface-1
-1
interface-2

v_y
-0
(m/s)

-1
0 .005 .01 .015
.02
Time (s) Low pressure

2 - 83 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Completely Closing a Valve


‹ Define Global Controls and Motion
Specification
‹ For ease, get 1-to-1 correspondence
between Crank Angle (degrees) and time
(seconds).
z To do this, specify Crank Shaft Speed of
0.1666667 rmp
‹ Specify the period for the oscillation, which
is 0.02 seconds, as Crank Period = 0.02
deg
‹ The simulation will be run at time step size
of 5e-5, so enter 5e-5 for Crank Angle
Step Size
‹ Put any number > 0 for Piston Stroke and
Connecting Rod Length

2 - 84 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Completely Closing a Valve


‹ After setting up Global
Parameters and defined
Dynamic Zones, you
need to define events in
DefineÆDynamic
MeshÆEvents
‹ In this example, at
initial mesh, the valve is
assumed closed, so enter
0 under At Crank
Angle (deg)
‹ We will keep it closed
for about 0.0001 second
to make sure we get at
least one step while it is
closed.

2 - 85 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Completely Closing a Valve


‹ HVAC Register
‹ Temperature plot

2 - 86 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Completely Closing a Valve


‹ HVAC Duct
‹ Non-Conformal
Interface is used

2 - 87 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Completely Closing a Valve


‹ Another
example of
valve

2 - 88 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Min and Max Volumes - 1


‹ For the remeshing scheme, what is the
best way to determine Minimum and
Maximum Cell Volume?
‹ Plot histogram of cell volume. %
Plot Æ Histogram

‹ Select Min and Max roughly as shown


on the right figure. Min Max
‹ But this will give plot of all cells zones.
2 - 89 © Fluent Inc. 11/7/2005
Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Min and Max Volumes - 2


‹ To find min and max volume in a
given cell zone,
z Select the cell zone under Zones
Name in Dynamic Zones panel
z Click on Zone Size Info..
z But don’t click on create!
‹ For Minimum Volume in the
remeshing parameters use a value
slightly larger than reported above.
‹ For Maximum Volume in the
remeshing parameters use a value
slightly smaller that reported above.

2 - 90 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Current Limitations
‹ Can’t have two deforming face zones attached.
‹ For deforming face zone, one need to have complete edge-loop
‹ You may also need to use deforming on a face zone if the adjacent
cell zone is only being smoothed.

2 - 91 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Examples

2 - 92 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Passing Cars

2 - 93 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Passing Cars
Prism layers
move with the car.

2 - 94 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Check Valves
‹ Fluid-structure interaction
‹ Spring loaded valve.
‹ Determine ball position as a
function of flow forces
z Implemented through a UDF

2 - 95 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Check Valves
‹ The max displacement of the ball
was known to be small. So only
smoothing is used.

2 - 96 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Flow Control Valves

2 - 97 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Fuel Injectors
‹ Transient flow rates
‹ Cavitation
‹ Flow forces

Pure Layering

2 - 98 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
Fuel Injectors
www.fluentusers.com
DM Model March 2003

Fuel Injectors
‹ Velocity
Contours

2 - 99 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Compressors
‹ Spring loaded valves
‹ Valve motion coupled to the flow
solution via a UDF

2 - 100 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Compressors
‹ As the piston moves to BDC,
intake valve opens and exhaust
valve closes
‹ As the piston moves to TDC,
intake valve closes and exhaust
valve opens

2 - 101 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

2-Stroke Engines

‹ Premixed combustion

‹ Mesh motion

2 - 102 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

4-Stroke Engines

2 - 103 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Positive Displacement Pumps

2 - 104 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Gear Pumps

2 - 105 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Volumetric Pump
‹ Pump diameter of 6 cm
‹ Water
‹ Eccentric (offset) rotor
z Blades move in and out
of the rotor
‹ All-hex grid
z 100,000 cells
‹ Mesh motion specified via
user-defined function
z Constant RPM of 1,500

2 - 106 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Volumetric Pump

Geometry
and motion

2 - 107 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Volumetric Pump

Pressure
contours

2 - 108 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Vibromixer
‹ Contours of
Velocity

2 - 109 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Vibromixer
‹ Pure
Layering

2 - 110 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Store Separation
‹ Fluent
Versus
Wind
Tunnel

2 - 111 © Fluent Inc. 11/7/2005


Fluent User Services Center FLUENT Software Training
DM Model March 2003
www.fluentusers.com

Store Separation
‹ Contours of
pressure
‹ Note partition
interface move.
z Dynamic
partitioning is
performed.

2 - 112 © Fluent Inc. 11/7/2005


Swimming Dolphin!
Flying Fly!

You might also like