[GiDlist] Obtain mesh information

Moderator: GiD Team

Post Reply
Rodrigo Augusto

[GiDlist] Obtain mesh information

Post by Rodrigo Augusto »

Hi,

How can I do to get an information about the ElemenType passing with
argument the element number using tcl routines?

thanks

--
Rodrigo Alves Augusto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20090127/4bddcb89/attachment.htm
User avatar
escolano
Posts: 1922
Joined: Sun Sep 05, 1982 10:51 pm

[GiDlist] Obtain mesh information

Post by escolano »

You can use the "GiD_Info list_entities" command, e.g
GiD_Info list_entities -more elements $num
return something like this
"ELEMENTS
Num: 1 HigherEntity: 0 conditions: 0 material: 0
LAYER: Layer0
1 15793 16486 16720
Type=Triangle Nnode=3 Volume=5.66137e-007"
then you can find for example with a regexp the string after "Type="
regexp {Type=([A-Za-z]+)} [GiD_Info list_entities -more elements $num] {} elemtype

Since the last beta version 9.1.0b you can also use the Tcl command "GiD_Mesh get", that return the information more clean, as a tcl list. e.g.
GiD_Mesh get element $num
return something like "Layer0 Triangle 3 15793 16486 16720"
to get the element type (Triangle) use
set elemtype [lindex [GiD_Mesh get element $num] 1]

----- Original Message -----
From: Rodrigo Augusto
To: gidlist at gid.cimne.upc.edu
Sent: Tuesday, January 27, 2009 5:14 PM
Subject: [GiDlist] Obtain mesh information


Hi,

How can I do to get an information about the ElemenType passing with argument the element number using tcl routines?

thanks

--
Rodrigo Alves Augusto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20090127/5bbd15ea/attachment.htm
Rodrigo Augusto

[GiDlist] Obtain mesh information

Post by Rodrigo Augusto »

Thanks,
The function GiD_mesh works very fine and useful.
But now ,I have one mores question. Is there some tcl routine to obtain if
the mesh is structured or unstructured? This information is useful to speed
up my finite element code.

Thanks again

2009/1/27 Enrique Escolano escolano at cimne.upc.edu

You can use the "GiD_Info list_entities" command, e.g
GiD_Info list_entities -more elements $num
return something like this
"ELEMENTS
Num: 1 HigherEntity: 0 conditions: 0 material: 0
LAYER: Layer0
1 15793 16486 16720
Type=Triangle Nnode=3 Volume=5.66137e-007"
then you can find for example with a regexp the string after "Type="
regexp {Type=([A-Za-z]+)} [GiD_Info list_entities -more elements $num] {}
elemtype

Since the last beta version 9.1.0b you can also use the Tcl command
"GiD_Mesh get", that return the information more clean, as a tcl list.
e.g.
GiD_Mesh get element $num
return something like "Layer0 Triangle 3 15793 16486 16720"
to get the element type (Triangle) use
set elemtype [lindex [GiD_Mesh get element $num] 1]


----- Original Message -----
*From:* Rodrigo Augusto rod.augusto at gmail.com
*To:* gidlist at gid.cimne.upc.edu
*Sent:* Tuesday, January 27, 2009 5:14 PM
*Subject:* [GiDlist] Obtain mesh information

Hi,

How can I do to get an information about the ElemenType passing with
argument the element number using tcl routines?

thanks

--
Rodrigo Alves Augusto




--
Rodrigo Alves Augusto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20090128/0e42255a/attachment.htm
User avatar
escolano
Posts: 1922
Joined: Sun Sep 05, 1982 10:51 pm

[GiDlist] Obtain mesh information

Post by escolano »

Gid nodes or elements not contain any flag storing how they were created (structured, unstructured, semi-structured)
The information is contained in the geometric source entities.

As you know you can apply a condition with a field #FUNC#(NumEntity) to know the number of geometric entity parent of each element,
Then you can use GiD_Info list_entities to ask for the geometry information,
e.g. to ask for the surface number 257
-np- WarnWinText [GiD_Info list_entities surfaces 257]
will return a string like this
NURBSURFACE
Num: 257 HigherEntity: 0 conditions: 0 material: 0
LAYER: Layer0
Meshing Info: (num=1,NOE=1) Elemtype=0 IsStructured=1 Meshing=Default size=0
NumLines: 5
Line: 742 Orientation: SAME1ST
Line: 730 Orientation: SAME1ST
...

and you can use a regexp command to filter the information that you want

----- Original Message -----
From: Rodrigo Augusto
To: gidlist at gid.cimne.upc.edu
Sent: Wednesday, January 28, 2009 8:01 PM
Subject: Re: [GiDlist] Obtain mesh information


Thanks,
The function GiD_mesh works very fine and useful.
But now ,I have one mores question. Is there some tcl routine to obtain if the mesh is structured or unstructured? This information is useful to speed up my finite element code.

Thanks again


2009/1/27 Enrique Escolano escolano at cimne.upc.edu

You can use the "GiD_Info list_entities" command, e.g
GiD_Info list_entities -more elements $num
return something like this
"ELEMENTS
Num: 1 HigherEntity: 0 conditions: 0 material: 0
LAYER: Layer0
1 15793 16486 16720
Type=Triangle Nnode=3 Volume=5.66137e-007"
then you can find for example with a regexp the string after "Type="
regexp {Type=([A-Za-z]+)} [GiD_Info list_entities -more elements $num] {} elemtype

Since the last beta version 9.1.0b you can also use the Tcl command "GiD_Mesh get", that return the information more clean, as a tcl list. e.g.
GiD_Mesh get element $num
return something like "Layer0 Triangle 3 15793 16486 16720"
to get the element type (Triangle) use
set elemtype [lindex [GiD_Mesh get element $num] 1]

----- Original Message -----
From: Rodrigo Augusto
To: gidlist at gid.cimne.upc.edu
Sent: Tuesday, January 27, 2009 5:14 PM
Subject: [GiDlist] Obtain mesh information


Hi,

How can I do to get an information about the ElemenType passing with argument the element number using tcl routines?

thanks

--
Rodrigo Alves Augusto




--
Rodrigo Alves Augusto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20090129/3a6c0636/attachment.htm
Rodrigo Augusto

[GiDlist] Obtain mesh information

Post by Rodrigo Augusto »

Hi, thanks again,

what do they mean (num=1; NOE=1) on line "Meshing info"

Thanks
2009/1/29 Enrique Escolano escolano at cimne.upc.edu

Gid nodes or elements not contain any flag storing how they were created
(structured, unstructured, semi-structured)
The information is contained in the geometric source entities.

As you know you can apply a condition with a field #FUNC#(NumEntity) to know
the number of geometric entity parent of each element,
Then you can use GiD_Info list_entities to ask for the geometry
information,
e.g. to ask for the surface number 257
-np- WarnWinText [GiD_Info list_entities surfaces 257]
will return a string like this
NURBSURFACE
Num: 257 HigherEntity: 0 conditions: 0 material: 0
LAYER: Layer0
Meshing Info: (num=1,NOE=1) Elemtype=0 IsStructured=1 Meshing=Default
size=0
NumLines: 5
Line: 742 Orientation: SAME1ST
Line: 730 Orientation: SAME1ST
...

and you can use a regexp command to filter the information that you want


----- Original Message -----
*From:* Rodrigo Augusto rod.augusto at gmail.com
*To:* gidlist at gid.cimne.upc.edu
*Sent:* Wednesday, January 28, 2009 8:01 PM
*Subject:* Re: [GiDlist] Obtain mesh information

Thanks,
The function GiD_mesh works very fine and useful.
But now ,I have one mores question. Is there some tcl routine to obtain if
the mesh is structured or unstructured? This information is useful to speed
up my finite element code.

Thanks again

2009/1/27 Enrique Escolano escolano at cimne.upc.edu

You can use the "GiD_Info list_entities" command, e.g
GiD_Info list_entities -more elements $num
return something like this
"ELEMENTS
Num: 1 HigherEntity: 0 conditions: 0 material: 0
LAYER: Layer0
1 15793 16486 16720
Type=Triangle Nnode=3 Volume=5.66137e-007"
then you can find for example with a regexp the string after "Type="
regexp {Type=([A-Za-z]+)} [GiD_Info list_entities -more elements $num] {}
elemtype

Since the last beta version 9.1.0b you can also use the Tcl command
"GiD_Mesh get", that return the information more clean, as a tcl list.
e.g.
GiD_Mesh get element $num
return something like "Layer0 Triangle 3 15793 16486 16720"
to get the element type (Triangle) use
set elemtype [lindex [GiD_Mesh get element $num] 1]


----- Original Message -----
*From:* Rodrigo Augusto rod.augusto at gmail.com
*To:* gidlist at gid.cimne.upc.edu
*Sent:* Tuesday, January 27, 2009 5:14 PM
*Subject:* [GiDlist] Obtain mesh information

Hi,

How can I do to get an information about the ElemenType passing with
argument the element number using tcl routines?

thanks

--
Rodrigo Alves Augusto




--
Rodrigo Alves Augusto




--
Rodrigo Alves Augusto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20090130/9e2f535a/attachment.htm
User avatar
escolano
Posts: 1922
Joined: Sun Sep 05, 1982 10:51 pm

[GiDlist] Obtain mesh information

Post by escolano »

This information is not relevant for you,
num is an internal number of the "meshing information" and NOE is the number of entities sharing this information.
----- Original Message -----
From: Rodrigo Augusto
To: gidlist at gid.cimne.upc.edu
Sent: Friday, January 30, 2009 12:57 PM
Subject: Re: [GiDlist] Obtain mesh information


Hi, thanks again,

what do they mean (num=1; NOE=1) on line "Meshing info"

Thanks

2009/1/29 Enrique Escolano escolano at cimne.upc.edu

Gid nodes or elements not contain any flag storing how they were created (structured, unstructured, semi-structured)
The information is contained in the geometric source entities.

As you know you can apply a condition with a field #FUNC#(NumEntity) to know the number of geometric entity parent of each element,
Then you can use GiD_Info list_entities to ask for the geometry information,
e.g. to ask for the surface number 257
-np- WarnWinText [GiD_Info list_entities surfaces 257]
will return a string like this
NURBSURFACE
Num: 257 HigherEntity: 0 conditions: 0 material: 0
LAYER: Layer0
Meshing Info: (num=1,NOE=1) Elemtype=0 IsStructured=1 Meshing=Default size=0
NumLines: 5
Line: 742 Orientation: SAME1ST
Line: 730 Orientation: SAME1ST
...

and you can use a regexp command to filter the information that you want

----- Original Message -----
From: Rodrigo Augusto
To: gidlist at gid.cimne.upc.edu
Sent: Wednesday, January 28, 2009 8:01 PM
Subject: Re: [GiDlist] Obtain mesh information


Thanks,
The function GiD_mesh works very fine and useful.
But now ,I have one mores question. Is there some tcl routine to obtain if the mesh is structured or unstructured? This information is useful to speed up my finite element code.

Thanks again


2009/1/27 Enrique Escolano escolano at cimne.upc.edu

You can use the "GiD_Info list_entities" command, e.g
GiD_Info list_entities -more elements $num
return something like this
"ELEMENTS
Num: 1 HigherEntity: 0 conditions: 0 material: 0
LAYER: Layer0
1 15793 16486 16720
Type=Triangle Nnode=3 Volume=5.66137e-007"
then you can find for example with a regexp the string after "Type="
regexp {Type=([A-Za-z]+)} [GiD_Info list_entities -more elements $num] {} elemtype

Since the last beta version 9.1.0b you can also use the Tcl command "GiD_Mesh get", that return the information more clean, as a tcl list. e.g.
GiD_Mesh get element $num
return something like "Layer0 Triangle 3 15793 16486 16720"
to get the element type (Triangle) use
set elemtype [lindex [GiD_Mesh get element $num] 1]

----- Original Message -----
From: Rodrigo Augusto
To: gidlist at gid.cimne.upc.edu
Sent: Tuesday, January 27, 2009 5:14 PM
Subject: [GiDlist] Obtain mesh information


Hi,

How can I do to get an information about the ElemenType passing with argument the element number using tcl routines?

thanks

--
Rodrigo Alves Augusto




--
Rodrigo Alves Augusto




--
Rodrigo Alves Augusto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20090130/3acedfc7/attachment.htm
Smith, Mark

[GiDlist] boundary layer meshing

Post by Smith, Mark »

Hi GiD team
Is there a tutorial or example of how to use the boundary layer feature in meshing for arbitrary 3D geometry for CFD problems?
How do you mix hexahedra and tet meshes? is there an automatic way of bridging between them with prism and pyramid elements as I seem unable to have some parts as structured mesh & other parts unstructured.
Are there any plans for full automatic hexahedral meshing?
GiD 9.04 on winXP

Regards
mark


Please be advised that this email may contain confidential information.
If you are not the intended recipient, please do not read, copy or
re-transmit this email. If you have received this email in error,
please notify us by email by replying to the sender and by telephone
(call us collect at +1 202-828-0850) and delete this message and any
attachments. Thank you in advance for your cooperation and assistance.

In addition, Danaher and its subsidiaries disclaim that the content of
this email constitutes an offer to enter into, or the acceptance of,
any
contract or agreement or any amendment thereto; provided that the
foregoing disclaimer does not invalidate the binding effect of any
digital or other electronic reproduction of a manual signature that is
included in any attachment to this email.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3235 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20090828/dc9fb74b/attachment.bin
User avatar
abelcs
Posts: 146
Joined: Mon Oct 13, 2014 9:14 am

[GiDlist] boundary layer meshing

Post by abelcs »

Dear Mark,

By now there is no tutorial for the boundary layer meshing. However, it is
very simple to use: The only thing you have to do is select 'Mesh-Boundary
layer-2D or 3D', and select the entities. For 3d, for example, first of all
you have to select the volumes into which the boundary layer mesh has to
"grow", and then the surfaces from which it should grow.

By the moment the 3d bundary layer meshes are only available for tetrahedra
volume meshes (no connection between hexas and tetras), and for linear
elements (not quadratic ones).

2D boundary layer mesher is available from the oficial version 9.0.x, and 3D
is only available from the 9.2.xb beta versions (all of them downladable
from the web site).

Kind regards,

ABEL

_________________________________
Abel Coll Sans - Civil Engineer
CIMNE - International Center for Numerical Methods in Engineering
Ofice c-2, C1 building - Campus Nord UPC
Gran Capità s/n, 08034 Barcelona
T: 34 - 93 401 74 03 Fax: 34 - 93 40 65 17
_____



AVISO IMPORTANTE

Los datos de carácter personal contenidos en el mensaje, se registrarán en
un fichero para facilitar la gestión de las comunicaciones de CIMNE. Se
pueden ejercitar los derechos de acceso, rectificación, cancelación y
oposición por escrito, dirigiéndose a nuestras oficinas de CIMNE, Gran
Capitán s/n, Edificio C1 - Campus Norte UPC, 08034 Barcelona, España.

AVÍS IMPORTANT

Les dades de caràcter personal contingudes en aquest missatge es registraran
en un fitxer per facilitar la gestió de les comunicacions del CIMNE. Es
poden exercir els drets d'accés, rectificació, cancel·lació i oposició, per
escrit a les nostres oficines del CIMNE, Gran Capità s/n, Edifici C1, Campus
Nord UPC, 08034 Barcelona, Espanya.

IMPORTANT NOTICE

All personal data contained in this mail will be processed confidentially
and stored in a file property of CIMNE in order to manage corporate
communications. You may exercise the right of access, rectification,
deletion and objection by letter sent to CIMNE, Gran Capitán, Edificio C1 -
Campus Norte UPC, 08034 Barcelona, Spain.

_____





_____

De: gidlist-admin at gatxan.cimne.upc.edu.gid.cimne.upc.edu
[mailto:gidlist-admin at gatxan.cimne.upc.edu.gid.cimne.upc.edu] En nombre de
Smith, Mark
Enviado el: viernes, 28 de agosto de 2009 20:28
Para: gidlist at gatxan.cimne.upc.edu
Asunto: [GiDlist] boundary layer meshing


Hi GiD team
Is there a tutorial or example of how to use the boundary layer feature in
meshing for arbitrary 3D geometry for CFD problems?
How do you mix hexahedra and tet meshes? is there an automatic way of
bridging between them with prism and pyramid elements as I seem unable to
have some parts as structured mesh & other parts unstructured.
Are there any plans for full automatic hexahedral meshing?
GiD 9.04 on winXP

Regards
mark

Please be advised that this email may contain confidential information.
If you are not the intended recipient, please do not read, copy or
re-transmit this email. If you have received this email in error,
please notify us by email by replying to the sender and by telephone
(call us collect at +1 202-828-0850) and delete this message and any
attachments. Thank you in advance for your cooperation and assistance.

In addition, Danaher and its subsidiaries disclaim that the content of
this email constitutes an offer to enter into, or the acceptance of,
any
contract or agreement or any amendment thereto; provided that the
foregoing disclaimer does not invalidate the binding effect of any
digital or other electronic reproduction of a manual signature that is
included in any attachment to this email.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20090831/fe8140ac/attachment.htm
Post Reply