system dynamics simulation with simpack and dymola ... · valentin keppler, martin herrmann, sven...

40
SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA: MILLING MACHINE 3DEXPERIENCE CONFERENCE DARMSTADT, 2019-11-20 VALENTIN KEPPLER, MARTIN HERRMANN, SVEN REINSTÄDLER, ROBIN BOTH, THORSTEN KROLL

Upload: others

Post on 20-Jul-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA: MILLING MACHINE

3DEXPERIENCE CONFERENCE DARMSTADT, 2019-11-20VALENTIN KEPPLER, MARTIN HERRMANN,

SVEN REINSTÄDLER, ROBIN BOTH, THORSTEN KROLL

Page 2: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

AGENDA

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

POC: SIMULATION OF A MILLING MACHINE

SYSTEM DYNAMICS SIMULATION

• OVERVIEW

• TOOLS: SIMPACK & DYMOLA

• INTERFACE FMI

THE MODEL IN DETAIL

RESULTS

CONCLUSION AND OUTLOOK

Page 3: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

THE MILLING MACHINE

overview, description, data, purpose

Page 4: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

CAD-DATA PROVIDED BY TU DORTMUND

Many thanks for the support toand the BERGER Group

Institute of Machining TechnologyTU Dortmund University

data by: CAD

Page 5: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

MACHINE DYNAMICS SIMULATION?

machine performance:

1. positioning: moving one or more axes of the machine

2. milling: cutting forces acting between cutting tool and workpiece during continuous repositioning

focus on the positioning performance (no cutting forces yet!)undisturbed positioning

follow up: repositioning feed motion during milling processdisturbed positioning

• motivation: today customers request short positioning times (increase efficiency) faster positioning

• but: positioning process shall be stable (especially during feed motion)

• risk: instable positioning may damage workpiece (costs!)

Page 6: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

MILLING MACHINE

• machine bed

• actuators, ball-screw-spindles

• linear guides

MECHANICS

image: BSSimage: LIN

very low damping in linear guides and ball-screw-spindles!

Page 7: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

SYSTEM DYNAMICS SIMULATION

system dynamics, multidomain simulation, tools, standards

Page 8: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

SYSTEM DYNAMICS – SIMULATION DRIVEN ENGINEERING

multidomain simulation complex interaction of connected systems

increasing importance of system dynamics simulation as „simple“ mechanical models get superseded by mechatronic systems

Simulation:

• native implementation of all components in one simulation tool

• co-simulation of different sub-models in different simulation packages

Page 9: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

TOOLS & INTERFACES WE USED FOR SIMULATION

Simpack:

• multibody dynamics

• mechanical parts (machine bed, ball-screw-spindles, linear guides)

• force & torque elements

Abaqus:

• modal analysis of machine bed

• generation of input for flexible body input in Simpack

Dymola:

• control elements

FMI: Functional Mockup Interface

• co-simulation of Simpack (mechanics) and a Dymola FMU (actuator control)

Page 10: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

DYMOLA

• Dymola is a modeling and simulation environment based on the open Modelica modeling language.

• Modelica: an object-oriented, declarative, multi-domain modeling language for component-orientedmodeling of complex systems (https://en.wikipedia.org/wiki/Modelica)

Why choosing Dymola FMI for co-simulation?

1. good support for FMI in Simpack

2. extendable by inheritance (object oriented)

3. huge number of libraries for different purposes available

Page 11: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

FMI

Functional Mock-up Interface (FMI) is a tool independent standard to support both model exchange and co-simulation of dynamic models using a combination of xml-files and compiled C-code.

FUNCTIONAL MOCK-UP INTERFACE

Page 12: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

THE MILLING MACHINE MODEL

data conversion, reduction of model details, SIMPACK model, Dymola Model

Page 13: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

STARTING WITH CAD-DATA

• (really) many parts (screws and nuts)

• German umlauts

FIRST APPROACH: IMPORT BY CATSIM

Page 14: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

DATA FILTERING

Page 15: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

VORHER

before

Page 16: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

after

Page 17: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

PREPARATION IN CATIA BEFORE THE EXPORT OF SIMPACK MODEL

• all bodies will be exported connected to the inertial system

• there is no suitable joint marker definition between the bodies reflecting the kinematics

• setting the joint markers will be cumbersome in Simpack

do this before export to Simpack:

1. CATIA supports „point in the center of circles“ set a point where the joint marker shall be located in the Simpack model

2. CATIA can place an axis system on these points set an axis system in CATIA and a marker will be available on that body in Simpack model

Page 18: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

HOW WE MODELED THE BALL-SCREW-SPINDLE

modelled as idealized screw joint

Page 19: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

HOW WE MODELED THE LINEAR GUIDES

• in the rigid body model we initially just modeled the effect of these guides by a suitable constraint between machine bed and y-z sled

• as a result of this constraint the state of the screw joint was set to dependent

Page 20: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

USE A FLEXIBLE BODY FOR MACHINE BED

optimize for meshing

prepare nodes for linear guides

….

PREPARATION OF MODEL IN ABAQUS CAE

Page 21: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

WORK TO DO

Page 22: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

GENERATE THE MARKERS AT THE NODES

generate the markers at the nodes

Page 23: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

REFINEMENT OF THE LINEAR GUIDES

• normal forces between fixed markers on the sled and moved markers on the bed

• stick slip elements to apply friction / damping to the system (accounts for normal force)

ADD FORCE ELEMENTS FOR GUIDES

Page 24: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

ADDING FLEXIBILITY AND CLEARANCE TO THE BALL-SCREW-NUT

later the spindle shall be replaced by a beam element and a more realistic elastic coupling between spindle and nut will be implemented

Page 25: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

SPINDLE TORQUE CONTROL BY DYMOLA MODEL

position controller

velocity controllervoltage / currentcontroll & motor

Page 26: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

TRANSLATE THE DYMOLA MODEL TO A FUNCTIONAL MOCK-UP UNIT

Page 27: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

IMPORT THE DYMOLA FMU IN SIMPACK

• use control element 238 to import the generated FMU

• there can exist multiple instances of this FMU (we use the same FMU for both spindle torques)

• the gui parameters are defined in the FMU (in the xml-file) along with their names

• an appropriate communication step size has to be defined!

• no need to run Dymola gui – the FMU dll will be loaded by the solver at begin of integration

• debug output is possible

Page 28: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

RESULTS

control parameters, mechanical damping, elasticity, process stability

Page 29: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

EXAMPLE FOR STABLE POSITIONING (RIGID MODEL)

Page 30: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

EXAMPLE FOR STABLE POSITIONING (FLEXIBLE MODEL)

Page 31: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

COMPARE DIFFERENT MILLING PATHS

Page 32: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

FAST CIRCLE POSITIONING

Page 33: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

Page 34: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

Page 35: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

POSITIONING ERROR: ANALYZE PARAMETER SENSITIVITY

circle profile:

• low jerk

• good positioning performance

rectangular profile:

• high jerk

• poorer positioning performance

rectangular profile:

• slower speed

• lower mass & inertia for motors

Page 36: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

CONCLUSION AND OUTLOOK

project status, weaknesses and missing elements, future model enhancements

Page 37: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

CONCLUSION

already quite good results for this POC:

• a chain of tools of the DS portfolio has been successfully deployed to simulate the system dynamics of machine positioning

• model can be applied to analyze system dynamics (positioning controll) wrt. controll parameters and mechanical parameters

work to do:

• some model parameters have to be determined by supplier data sheet or additional measurement to increase prediction capabilities

• some elements should be modelled in more detail e.g. ball-screw-spindles in Simpack or motor control in Dymola

• missing: good path encoder, jerk filter

• simple „in the loop“ cutting force model should be developed to allow for milling process stability analysis

Page 38: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

THANK YOU FOR YOUR INTEREST

VALENTIN KEPPLERDr. rer. nat. Dipl.-Phys.

+49 711 78 25 – [email protected]

CENIT AGIndustriestrasse 52-5470565 Stuttgartwww.cenit.com

Page 39: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

CITATIONS AND CC-A ATTRIBUTIONS & LINKS

Page 40: SYSTEM DYNAMICS SIMULATION WITH SIMPACK AND DYMOLA ... · valentin keppler, martin herrmann, sven reinstÄdler, robin both, thorsten kroll. agenda 3dexperience conference - design,

3DEXPERIENCE Conference - Design, Modeling & Simulation - Darmstadt 2019

LITERATURE, CC-ATTRIBUTIONS AND LINKS

• CAD: Machine model by kind permission of „Institute of Machining TechnologyTU Dortmund University“ and BERGER Group

• BSS: https://upload.wikimedia.org/wikipedia/commons/7/7f/GearBoxRotLinScrew.gif CC-A by: W.Rebel

• LIN: https://commons.wikimedia.org/wiki/File:Linear_Bearing_Guide_way.jpg - CC-A - by Zdenek Vlasic

• FMI: https://fmi-standard.org/assets/images/fmi-illustration-1920.png https://fmi-standard.org/downloads/ see: FMI/FMU Logo and FMI Office Templates Terms and Conditions (February, 2017)