JavaScript for Oasys PRIMER and D3PLOT
Duration: 1 Day
This course aims to familiarise attendees with the JavaScript language and teach them to write JavaScripts for Oasys PRIMER and Oasys D3PLOT. No previous experience of JavaScript is required but it is strongly recommended that attendees have some experience of programming or scripting in other languages.
The possible applications of JavaScript in Oasys software include the following (not all of these are covered in the course):
Oasys PRIMER:
- Creating a simple mesh, or test models with standard loading
- Data checking or correcting
- Geometric morphing functions
- Input or output translators, special-format spotweld or connections files
- Automating routine tasks
Oasys D3PLOT:
- Generating your own data components for plotting, calculated from any information already contained in the model or from external files
Course Outline:
- Introduction –
- Aims of this course
- Which Oasys products have JavaScript?
- What is JavaScript?
- Examples of use of JavaScript
- PRIMER JavaScript – Part 1
- D3PLOT JavaScripts
- Running an existing JavaScript, plotting the data
- The process of writing and debugging scripts
- Writing JavaScripts to calculate new data
- PRIMER JavaScripts – Part 2
- Guidance on Core JavaScript capabilities
- How to use the Oasys JavaScript extensions in PRIMER
- Accessing, modifying and creating keyword data
- Reading and writing external files
- Interacting with PRIMER – picking and selecting
- GUI: Using ready-made windows
- Using command-line commands
- Common errors and how to avoid them
- PRIMER JavaScripts – Part 3
- Using Sets
- Functions within a script
- GUI: create your own menus
- Other topics
[back to course list]
|