Top Banner
Adaptive Meshing using STAR-CCM+ Weekly meeting – 05.12.2010 Victor Pépin
15

Adaptive Meshing using STAR-CCM+ Weekly meeting – 05.12.2010 Victor Pépin.

Jan 02, 2016

Download

Documents

Liliana Ford
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Adaptive Meshing using STAR-CCM+ Weekly meeting – 05.12.2010 Victor Pépin.

Adaptive Meshingusing STAR-CCM+

Weekly meeting – 05.12.2010

Victor Pépin

Page 2: Adaptive Meshing using STAR-CCM+ Weekly meeting – 05.12.2010 Victor Pépin.

Plan

Curriculum Problem Software presentation Solution Results Next steps

Page 3: Adaptive Meshing using STAR-CCM+ Weekly meeting – 05.12.2010 Victor Pépin.

Curriculum

Student at Ecole Centrale Paris French engineering school Non-specialized school 6 months internship in Manchester

• February to mid-July

Page 4: Adaptive Meshing using STAR-CCM+ Weekly meeting – 05.12.2010 Victor Pépin.

Problem

How to improve the use of computation resources over the geometry of the simulation ?

Particularly, how to share resources relevantly, depending on the interest each area of the simulation represents ?

A solution : adaptive meshing

Page 5: Adaptive Meshing using STAR-CCM+ Weekly meeting – 05.12.2010 Victor Pépin.

Software presentation

Star-CCM+, v4.04.011 (CD-Adapco) Allows the use of macros, written in Java A macro is a list of instructions, forming

an algorithm It interacts with the software via the user

interface The software is seen like a “black box”

Page 6: Adaptive Meshing using STAR-CCM+ Weekly meeting – 05.12.2010 Victor Pépin.

Example of macro instructions

// Define the simulation as a variableSimulation simulation_0 = getActiveSimulation();// Define the Stopping Criterion as a variableStepStoppingCriterion stepStoppingCriterion_0 = ((StepStoppingCriterion) simulation_0. getSolverStoppingCriterionManager(). getSolverStoppingCriterion("Maximum Steps"));// Set the value of the Stopping Criterion to 1000stepStoppingCriterion_0.setMaximumNumberSteps(1000);// Run the simulationsimulation_0.getSimulationIterator().run();

Page 7: Adaptive Meshing using STAR-CCM+ Weekly meeting – 05.12.2010 Victor Pépin.

Solution Scheme 1/2

Choose a quantity of interest, which will be the criterion of your refinement: e.g. velocity

Launch the simulation with a coarse mesh Export a table containing the velocity in each

cell of the mesh Consider each cell, and compare its velocity

with a reference velocity• Vref = Vmin + percentage x (Vmax – Vmin)

Page 8: Adaptive Meshing using STAR-CCM+ Weekly meeting – 05.12.2010 Victor Pépin.

Solution 2/2 If V > Vref :

• Create a box (Volume Shape), centred on the cell, whose size is approximately the size of the cell

• Add the Volume Shape to a Source Volume Set a smaller base size for the mesh upon the

Source Volume Re-mesh the simulation Run the simulation Repeat the process

Page 9: Adaptive Meshing using STAR-CCM+ Weekly meeting – 05.12.2010 Victor Pépin.

Results 1/3

2D lid-driven cavity test case Re = 50 Steady state of the flow

Page 10: Adaptive Meshing using STAR-CCM+ Weekly meeting – 05.12.2010 Victor Pépin.

Results 1/3

Page 11: Adaptive Meshing using STAR-CCM+ Weekly meeting – 05.12.2010 Victor Pépin.

2D turbulent lid-driven cavity Re = 15 000 Establishing flow The mesh follows the flow

Results 2/3

Page 12: Adaptive Meshing using STAR-CCM+ Weekly meeting – 05.12.2010 Victor Pépin.

3D cylinder Re = 10 Flow entering the pipe on the left

Results 3/3

Page 13: Adaptive Meshing using STAR-CCM+ Weekly meeting – 05.12.2010 Victor Pépin.

Other features of the macro Adapt easily to any case (shape,

boundaries, type of mesh…) Take user-defined field functions as a

criterion for mesh refinement• Gradients,

• Convergence between 2 times steps…

Refine the mesh considering several field functions

Page 14: Adaptive Meshing using STAR-CCM+ Weekly meeting – 05.12.2010 Victor Pépin.

Next steps

Measure the gains and loss of accuracy Measure the benefits in terms of time,

and memory

Page 15: Adaptive Meshing using STAR-CCM+ Weekly meeting – 05.12.2010 Victor Pépin.

The end

Thank you for listening !