Антон Кавалеров (Siemens, R&D Engineer) @ Moscow Python Meetup 58
"Автоматизация процессов проектирования в машиностроении (CAD/CAE) с использованием Python".
Видео: http://www.moscowpython.ru/meetup/58/engineering-python/
Engineering withPythonAnton Kavalerov, Corporate TechnologyUnrestricted © Siemens AG 2018Instagram:@closiusant.kav[email protected]
View Slide
Unrestricted © Siemens AG2018Page 2 CT RussiaDevelopment worldEnterpriseEntertainment Science• Banks• Factories• Shopping centers• Government• Engineering centers• Accounting• …• Games• Social networks• Mobile entertainment apps• …• Institutes• Research• …external customer(s)external environmentinternal customer(s)internal environment
Unrestricted © Siemens AG2018Page 3 CT RussiaDev worlds comparisonENTERPRISE ENTERTAINMENTArchitectureLegacy codeVersion controlDeveloper requirementsUsersProblem resolvingDocumentationTestingOld, hard to update Fresh, easier to updateMany, in different languages/styles Normal, style is taken into accountClosed repositories Open/Closed repos. Open sourceAddition skills, narrow area of expertise Programmer skills onlySpecialists, experienced Ordinary peopleVery few info stackowerflow.comVery bad, python doc PerfectSpecialists, experienced, couple of users Unit tests, special testers
Unrestricted © Siemens AG2018Page 4 CT RussiaTask management, development processhttps://everhour.com/blog/best-asana-integrations/Scrum dev process:Weekly meetings in Circuit (some sort of Skype). Developers and testers.• Everybody tells what is done for last week• Team-lead gives new tasks for a next week• Resolving problems if exist
Unrestricted © Siemens AG2018Page 5 CT RussiaWhy Python?• Simple syntax• Rapid prototyping• Big community• Many frameworks• Many integrations, bindings
Unrestricted © Siemens AG2018Page 6 CT RussiaEngineering softwarePDMCADCAECAMCreate modelAnalyze modelManufactureProduct Data Management
Unrestricted © Siemens AG2018Page 7 CT RussiaWhere is help?https://community.plm.automation.siemens.com/t5/NX-Programming-Customization-Forum/bd-p/NX-Programming-CustomizationJournalingPython dock & Documentation & Examples
Unrestricted © Siemens AG2018Page 8 CT RussiaFrameworksPyQtctypes
Unrestricted © Siemens AG2018Page 9 CT RussiaEXAMPLES
Unrestricted © Siemens AG2018Page 10 CT RussiaSimple automationThe algorithm for creation a triangular pattern of holes, limited by the outer and inner circles and thetolerance of these circles. For heat exchangers design
Unrestricted © Siemens AG2018Page 11 CT RussiaGas Turbinehttps://energyeducation.ca
Unrestricted © Siemens AG2018Page 12 CT RussiaHTC tool for 3D thermal conditionCAD - CFD part simple model CAE - CFD optimized meshRESULTS - HTC forthermal–structural stepTemperature Field at Steady State
Unrestricted © Siemens AG2018Page 13 CT RussiaDesign process for sophisticated 3D-models is the step-by-step process. During this process some part of modelhas to be changed to other variant of topology. Moreoveruser has to manage all reference names are included tothe model.Almost each complicated 3D-modle can be split bysimple parts. These parts can be once created, added tospecial library and reused when required.Reusable toot helps to manage this process.Technical objectives / Focused Area• All 3D-models and assemblies have been built in SiemensNX• Any design processCustomer benefits• Automatic assembling of complicated 3D-model by partsfrom reusable library• Easy to change some parts of complicated 3D-model• Minimize time of design processHighlights and results• CAD software Siemens NX• Written in Python 3Reusable tool and libraryhttps://aviation.stackexchange.com/questions/34378/where-does-turbine-vane-and-blade-cooling-air-come-from
Unrestricted © Siemens AG2018Page 14 CT RussiaParameterized 3D-model is the main input for optimization calculation. One of themain problem is to create 3D-model where all combinations of parameters (withsome limits for each parameter) can be build correct.This tool helps to test 3D-model and defined combinations of parameters set.Also preliminary calculation (before optimization) allows to reduce the number ofoptimization iterations.Technical objectives / Focused Area• All 3D-models and assemblies have been built in Siemens NX• Any optimization analysisCustomer benefits• Automatic detection which parameters interrupt building process for currentparameters set• Performance optimization• Minimize time & costs of design optimization stepsHighlights and results• CAD software Siemens NX• Written in Python 3The tool for testing 3D model for robust parameterization
Unrestricted © Siemens AG2018Page 15 CT RussiaVisual representation of phase distribution in Laser Metal Deposited workpiece:Heat treatment has a strong impact on the phase composition of treated part.Modeling of phase transformation might replace resource-consumingexperiments and give insight into spatial distribution of formed phases within theheat treated part.Phase Transformation Model: calculation and visualizationLaser Metal Deposition (LMD)
Unrestricted © Siemens AG2018Page 16 CT RussiaContinuous Cooling Transformation (CCT) phase diagram1% of austenite hasturned into martensite90% of austenite hasturned into martensiteRaw data recognitionMathematicApplication (Temperatures / Phase fraction %)
Unrestricted © Siemens AG2018Page 17 CT RussiaData translation from Ansys into PythonANSYS result file (.rth )Fortran ( .exe ).rth => .binPython.bin => calculation
Unrestricted © Siemens AG2018Page 18 CT RussiaSample Design Rule: Trapped SupportTest case: Internal chamber of atomizerAreas withtrapped supportsInput:• Areas in need of support (single or a list of areas)• SLM build orientation (vector)Output:• Surfaces which need supports should be highlighted in green• Surfaces with trapped supports should be highlighted in redThe preparation of 3D-model for 3D printing is sophisticated process.There are some design rules (min diameter of holes, min fillet, areas to besupported, …) that have to be taking into account.One of design rules is “finding trapped supports”. Trapped supports aresupports that are enclosed either completely or partially within desirablegeometry such that they cannot be removed by post processes. The scripthas to highlight the areas of part, which require supports during additivemanufacturing process, as well as highlight surfaces for which support canbe trapped.
Unrestricted © Siemens AG2018Page 19 CT RussiaDrone inspection
Unrestricted © Siemens AG2018Page 20 CT RussiaHow to develop you skills?https://pythonworld.ru/Invent your projectImplement and finishhttps://www.youtube.com/user/sentdexhttps://pythonprogramming.net
Unrestricted © Siemens AG2018Page 21 CT RussiaContact informationAnton Kavalerov“Siemens” LLC, Corporate Technology115093, Russia, Moscow,Dubininskaya st., 96, room 409Tel.: +7-968-793 2175[email protected]