mesh and normal to the elements ?.

Moderator: GiD Team

jackyjoy123
Posts: 1
Joined: Thu Apr 22, 2021 4:56 pm

mesh and normal to the elements ?.

Postby jackyjoy123 » Thu Apr 22, 2021 4:57 pm

Hello,

at this time, I export the informations from GiD via text file: geometry, mesh, an easy problem-tipe by which I add informations such as materials, ports, analysis parameters; but I would like to export also the normals to the mesh elements: how I can do this without .bas file and TCL commands?

thanks
jackyjoy
User avatar
escolano
Posts: 1705
Joined: Thu Sep 18, 2014 3:31 pm

Re: mesh and normal to the elements ?.

Postby escolano » Thu Apr 22, 2021 6:50 pm

Why do you forbid all possible solutions using .bas or .tcl?
If do you already have a problemtype, you can for example add a <problemtype>.bas template with a content as simple as this

*loop elems
*elemsnum *elemsnormal
*end elems

And when calculating it will be written a file named <modelname>.dat

with the information you want (the element id and its normal).
This is assuming that the mesh only has surface elements (triangles, quadrilateral), it they could be other types can filter the loop only to this types

*set elems(triangle)
*add elems(quadrilateral)
*loop elems
*elemsnum *elemsnormal
*end elems


And as you pointed it is also possible to do something similar with some Tcl scripting (for more complicated cases)

Note: If you don't want to add this template to your problemtuype, can also copy it to <GiD>/templates, with name ElementNormals.bas and it wil appear in the menu Files->Export->Using template this new option, to export this file, without load any problemtype.

Return to “Mesh”

Who is online

Users browsing this forum: No registered users and 1 guest