Automation with Ansys Discovery Scripting
In this training course, you will learn to control Ansys Discovery via the script language Python: from geometry to simulation. This training is offered as a 2-day course.
Duration
2 days
Prerequisites
Programming knowledge in Python, Basic knowledge of Ansys Discovery
Software used
Ansys Discovery
- Record your own macros and adapt them to your needs
- Parameterize models via script for design studies
- Create your own buttons and input masks
- Automate pre- & post-processing and avoid errors in model construction
Description
With Ansys Discovery, you can quickly and intuitively prepare geometries for FEM and CFD simulation, as well as perform them. Sometimes, however, the standard functionalities are no longer sufficient (e.g. user-specific files control geometry generation and simulation setup, or time-consuming, repetitive and therefore error-prone routine tasks). For such tasks, Discovery offers tools to automate and standardize your workflow via Python. The recording function integrated in the program allows you to create macros quickly and easily. To adapt these to your own needs, a deeper background knowledge of the programming interface is required. This will be taught in the training using practical examples.
This training is aimed at designers, computational engineers and programmers who want to adapt Ansys Discovery processes to their customer-specific requirements. The focus is on typical automation tasks and programming concepts that are relevant for subsequent simulations in Ansys Discovery or Ansys Workbench.
Were you looking for the SpaceClaim Scripting training? No problem. The Discovery Scripting API is a further development of the SpaceClaim Scripting API. The Discovery scripts for geometry preparation are largely compatible with SpaceClaim. Nevertheless, we recommend switching to Ansys Discovery and would be happy to advise you on this.
Detailed agenda for this 2-day training
Day 1
01 Recording and debugging scripts
- Repetition of important Python commands
- Record, play and debug scripts
- Where can I find help documents?
- Workshop: Construction of a disc spring – from sketch to finished component
02 Customization of the structure tree
- Object hierarchy of the structure tree
- Relationship between document object, topology and geometry
- Reading object properties
- Attributes, identifiers and update states
- Workshop: Rule-based sorting and renaming of components
03 Creating shells, beams and freeform surfaces
- Deriving mid-surfaces
- Creating geometries according to analytical functions
- Designing splines and NURBS curves
- Assigning individual profiles to beams
- Workshop: Create cooling channel geometry of an E-machine
04 Geometry editing with user-defined presets
- Working with selections
- Creating named selections
- Workshop: Automated defeaturing – finding and removing holes
- Creating Patterns Workshop: Assembling a Laptop Keyboard
Day 2
05 Working with the dialog tools
- Programming prompts
- Creating dialog and message boxes
- Reading information from files
- Writing your own log files
- Workshop: Equipping a hydraulic cylinder with a variable number of disk springs
06 Speed up design studies with script parameters
- Creating and using script parameters
- Parameter control at the workbench level
- Run Discovery scripts in batch model
- Workshop: Parameterizing the cooling channel geometry of an e-machine
- Outlook: Connection of Ansys Discovery to Ansys optiSlang
07 Automating simulation setup
- Overview of scripting options in Explore/Refine mode
- Creating and assigning materials
- Setting boundary conditions
- Automatically adjusting meshing and solver settings
- Workshop: Automated simulation setup using a hydraulic gripper as an example
08 Standardize result evaluations
- Starting the solver
- Customizing legend and other plot options
- Setting alignment, exporting images
- Creating and evaluating monitor points
- Workshop: Customize result display at the push of a button
- Outlook: Automated report generation in PowerPoint format
Your Trainers
Susanne Haase
Dario Rüegg
Vincent Constantin
Josselin Guedon
Placement in the CADFEM Learning Pathway
Participant data
Additional information
Commentary
Whether eLearning, classroom courses, live online training or customized workshops - together we identify the best option for you.
Do you have questions on the training?
If you book through your university, you will receive a 50% discount on the stated fee on training courses and eLearning courses.
For more information on the validity and how booking with the code ACADEMIC50 works, please visit our page on training for academic users.
Straight after you sign up, an automatic confirmation of receipt will be sent to the email addresses you provided. Once you have successfully verified the data you provided, you will receive your personalized sign-up confirmation, containing further information on course fees, the billing address, etc., by email within two to three working days.
As soon as the minimum number of attendees has been reached, you will receive a final training confirmation containing further information. If you have booked an on-site training, we recommend that you wait until you have received this final confirmation before booking your travel and accommodation.
If the minimum number of attendees is not reached, we reserve the right to cancel the training seven days before it is due to start at the latest. We are happy to inform you on changing your booking to an alternative date. Please note that we accept no liability for hotel or travel bookings that attendees have already made.
Usually the training courses start at 9:00 am and end at 5:00 pm of the respective local time. The actual course times will be stated in the booking confirmation. Please note that, depending on the training host, there may be a possible time shift between your and the provider's local time. Therefore all local times are provided with the valid time shift to Greenwich Mean Time (GMT).