x

ADONIS:
Version 3.90.9 (Released at 10/19/2024)
- Minor bugs in mesh generation module has been fixed.
- Gmsh is upgraded to version 4.13.1.

HYRCAN:
Version 2.0.18 (Released at 10/26/2024)
- Minor bug in translation has been fixed.
- Minor bug in geometry creation is fixed.


Use ADONIS javascript to extract mesh information(Read 12351 times)
Use ADONIS javascript to extract mesh information on: September 16, 2018, 11:23:54 pm
attached script file shows how to use scripting language to extract mesh information. a simple model is created and then the node position and element connectivity as well as element's material id have been stored in the text file.

Note: please make sure you use ADONIS 2.3.5 (latest version updated at 09/16/2018) in which couple of bugs regarding the scripting engine are fixed.
« Last Edit: September 16, 2018, 11:27:49 pm by Roozbeh »



Re: Use ADONIS javascript to extract mesh information Reply #1 on: September 19, 2018, 11:39:18 pm
Hi Roozbeh, when I create some rectangle, discretize it, and do nothing else (so I don't define materials and other things), I get an explosion with the attached script.

This is simply your script, without the first part (where you generate the model, materials, and so). Maybe we need some if statements in your script to make it more general in case materials are not defined? Or so?

Thank you, Dennis



Re: Use ADONIS javascript to extract mesh information Reply #2 on: September 20, 2018, 09:30:48 am
yes it's definitely a bug. will fix it ASAP. thanks