[GiDlist] renumbering of mesh

Moderator: GiD Team

Post Reply
Andreas Friedberg

[GiDlist] renumbering of mesh

Post by Andreas Friedberg »

Hi Enrique,

thanks for your advice about the external mesher, everything works fine now. I have another question: Is it possible to renumber a mesh created with the gid-mesher through a tcl procedure in a specified way? I would like to use the gid mesher, but I need to assign the numbers of the nodes in a certain way, depending on the coordinates of the nodes (I only use structured 2D-meshes). Is that possible? I tried to do it with the command "renumber", but I can't control the assignement of the nodes numbering. Could I do that within a tcl procedure?

I have another question: what format does the preprocess mesh file (*.msh) of gid have? It is obviously not text-formatted as the postprocess mesh file (*.flavia.msh).

thanks for your response,

Andreas Friedberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030204/210adaef/attachment.htm
Enrique Escolano

[GiDlist] renumbering of mesh

Post by Enrique Escolano »

It not exist any tcl/GiD command to force a node number.
The automatic renumber set an automatic numeration finding a low matrix bandwidth for the analysis.

To force a "special numeration" it is possible to get from tcl a list with the nodes and elements of the GiD mesh:
set elems [.central.s info mesh elements linear]
set nodes [.central.s info mesh nodes]
Then renumber the tcl list of nodes with the own criteria, and write a mesh ASCII file in a temporary file,
# renumber ...
# set filename [file join $env(TMP) mymesh.tmp]
# if this filename exists, then use another name as mymesh-1.tmp, mymesh-2.tmp, etc.
# set fout [open $filename w]
# write the mesh ...
# close $filename
then delete the current mesh:
.central.s process escape escape escape escape meshing cancelmesh yes
Load this mesh file inside GiD, and delete the temporary file.
.central.s process escape escape escape escape files MeshRead "$filename"
file delete $filename

Note:
The preprocess ASCII mesh file format is similar as the postprocess mesh file. See help on Files-Import-GiD mesh
(GiD preprocess save the mesh files in binary format, but it can also read the ASCII format).
To save the preprocess mesh in ASCII format, can use Files-Export-GiD mesh

Regards

Enrique Escolano
----- Original Message -----
From: Andreas Friedberg
To: GiD mailinglist
Sent: Tuesday, February 04, 2003 9:52 PM
Subject: [GiDlist] renumbering of mesh


Hi Enrique,

thanks for your advice about the external mesher, everything works fine now. I have another question: Is it possible to renumber a mesh created with the gid-mesher through a tcl procedure in a specified way? I would like to use the gid mesher, but I need to assign the numbers of the nodes in a certain way, depending on the coordinates of the nodes (I only use structured 2D-meshes). Is that possible? I tried to do it with the command "renumber", but I can't control the assignement of the nodes numbering. Could I do that within a tcl procedure?

I have another question: what format does the preprocess mesh file (*.msh) of gid have? It is obviously not text-formatted as the postprocess mesh file (*.flavia.msh).

thanks for your response,

Andreas Friedberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030204/8cbeb8de/attachment.htm
VSayako Willy

[GiDlist] Question on nastran tcl file and Communicate with

Post by VSayako Willy »

Hi GiD team
Nastran.gid is another good example of creating tcl
file using inside GiD where I always learn from that
sources. May I ask you some questions as the
followings:

1. In nassection.tcl file I have cut off some data:

namespace eval sections (
variable section type ""
.......
variable
variable section_data {

R0lGODlhGAAYAKEAADMzMwAAAL6NkMzMzCH+Dk1hZGUgd2l0aCBHSU1QACH5

BAEKAAMALAAAAAAYABgAAAJJnI+py+3fgJwy0KuA2Lx7AWTfyIXJRWKO1EnQ

Wb6LJgSyCN5wrh+02Rv8goYhMbAB9mi8G6uknFFSFBzpExVeR9nLxOJ1EceP
AgA7
}
What kind of data as shown above? Any reasons? does
each char stands for something? I'm not familiar with
this kind of input data. would you please clarify.

2. Can you give more information about
"TKWIDGET:xxxxxxx:ComunicateWithGiD" and Proc to
communicate with GiD...Should we keep the same format
and order while writing this Proc?

Best regards.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
Aleix Valls

[GiDlist] Question on nastran tcl file and Communicate with

Post by Aleix Valls »

Hi,

1- This data is a *.gif image in base64 format. If you take a look at
the following line you will see:

variable section [image create photo -data[set section_data]]

With this command we will save "section_data" image in variable
"section" in appropriate format to use like an icon for button section
in property window.
2- More information about TKWIDGET in the attachment

Aleix

Nastran interface developer.

-----Mensaje original-----
De: gidlist-admin at gatxan.cimne.upc.es
[mailto:gidlist-admin at gatxan.cimne.upc.es] En nombre de VSayako Willy
Enviado el: miércoles, 05 de febrero de 2003 5:50
Para: gidlist at gatxan.cimne.upc.es
Asunto: [GiDlist] Question on nastran tcl file and Communicate with GiD


Hi GiD team
Nastran.gid is another good example of creating tcl
file using inside GiD where I always learn from that
sources. May I ask you some questions as the
followings:

1. In nassection.tcl file I have cut off some data:

namespace eval sections (
variable section type ""
.......
variable
variable section_data {

R0lGODlhGAAYAKEAADMzMwAAAL6NkMzMzCH+Dk1hZGUgd2l0aCBHSU1QACH5

BAEKAAMALAAAAAAYABgAAAJJnI+py+3fgJwy0KuA2Lx7AWTfyIXJRWKO1EnQ

Wb6LJgSyCN5wrh+02Rv8goYhMbAB9mi8G6uknFFSFBzpExVeR9nLxOJ1EceP
AgA7
}
What kind of data as shown above? Any reasons? does
each char stands for something? I'm not familiar with
this kind of input data. would you please clarify.

2. Can you give more information about
"TKWIDGET:xxxxxxx:ComunicateWithGiD" and Proc to
communicate with GiD...Should we keep the same format
and order while writing this Proc?

Best regards.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TkWidteg.pdf
Type: application/pdf
Size: 121141 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030205/2707f6ae/attachment.pdf
Pablo Perez del Castillo

[GiDlist] localnodes

Post by Pablo Perez del Castillo »

Hello
I would like to get connectivities with local nodes, so i try with
conditions over surfaces like:
NUMBER: 2 CONDITION: Surface_Sail
CONDTYPE: over surfaces
CONDMESHTYPE: over body elements
QUESTION: Local_Axes#LA#(-Default-,-Automatic-)
VALUE: -Default-
CANREPEAT: No
END CONDITION
And in the bas file:

*set cond Surface_Sail *elems
*loop elems *OnlyInCond
*elemsnum *localnodes
*end
but Gid tell me "there is no numface"
What is wrong?
Advanced thanks
Pablo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030206/8e24fd58/attachment.htm
Enrique Escolano

[GiDlist] localnodes

Post by Enrique Escolano »

localnodes, is a order to list only the local nodes numeration of a element face with this condition, not all the element conectivities.

For example, to assign a condition over some "edges" of the surface elements
(the "edges" located over a line) then instead
CONDTYPE: over surfaces
CONDMESHTYPE: over body elements
use
CONDTYPE: over lines
CONDMESHTYPE: over face elements


Note: the automatic local axes for this boundary line are different as the local axes for the surface.

Enrique
----- Original Message -----
From: Pablo Perez del Castillo
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, February 07, 2003 1:26 AM
Subject: [GiDlist] localnodes


Hello
I would like to get connectivities with local nodes, so i try with conditions over surfaces like:
NUMBER: 2 CONDITION: Surface_Sail
CONDTYPE: over surfaces
CONDMESHTYPE: over body elements
QUESTION: Local_Axes#LA#(-Default-,-Automatic-)
VALUE: -Default-
CANREPEAT: No
END CONDITION
And in the bas file:
*set cond Surface_Sail *elems
*loop elems *OnlyInCond
*elemsnum *localnodes
*end
but Gid tell me "there is no numface"
What is wrong?
Advanced thanks
Pablo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030206/807a8756/attachment.htm
Pablo Perez del Castillo

[GiDlist] localnodes

Post by Pablo Perez del Castillo »

so, i can not get local nodes numeration in every element, is it?

Enrique Escolano escribió:

localnodes, is a order to list only the local nodes numeration of a
element face with this condition, not all the element conectivities.
For example, to assign a condition over some "edges" of the surface
elements(the "edges" located over a line) then insteadCONDTYPE: over
surfacesCONDMESHTYPE: over body elements
useCONDTYPE: over linesCONDMESHTYPE: over face elements Note: the
automatic local axes for this boundary line are different as the local
axes for the surface. Enrique

----- Original Message -----
From:Pablo Perez del Castillo
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, February 07, 2003 1:26 AM
Subject: [GiDlist] localnodes
Hello
I would like to get connectivities with local nodes, so i
try with conditions over surfaces like:
NUMBER: 2 CONDITION: Surface_Sail
CONDTYPE: over surfaces
CONDMESHTYPE: over body elements
QUESTION: Local_Axes#LA#(-Default-,-Automatic-)
VALUE: -Default-
CANREPEAT: No
END CONDITION
And in the bas file:

*set cond Surface_Sail *elems
*loop elems *OnlyInCond
*elemsnum *localnodes
*end
but Gid tell me "there is no numface"
What is wrong?
Advanced thanks
Pablo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030206/323c7477/attachment.htm
Enrique Escolano

[GiDlist] localnodes

Post by Enrique Escolano »

The local numeration for a triangle of 3 nodes is foreach element: 1 2 3 constant!!
the order *localnodes with a condition over face elements, returns for example 1 2, 2 3, or 3 1 to indicate a "edge"
*globalnodes returns the label number of this localnodes, for example 274 589, 589 948, 948 274

Enrique
----- Original Message -----
From: Pablo Perez del Castillo
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, February 07, 2003 5:34 AM
Subject: Re: [GiDlist] localnodes


so, i can not get local nodes numeration in every element, is it?
Enrique Escolano escribió:

localnodes, is a order to list only the local nodes numeration of a element face with this condition, not all the element conectivities. For example, to assign a condition over some "edges" of the surface elements(the "edges" located over a line) then insteadCONDTYPE: over surfacesCONDMESHTYPE: over body elements
useCONDTYPE: over linesCONDMESHTYPE: over face elements Note: the automatic local axes for this boundary line are different as the local axes for the surface. Enrique
----- Original Message -----
From:Pablo Perez del Castillo
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, February 07, 2003 1:26 AM
Subject: [GiDlist] localnodes
Hello
I would like to get connectivities with local nodes, so i try with conditions over surfaces like:
NUMBER: 2 CONDITION: Surface_Sail
CONDTYPE: over surfaces
CONDMESHTYPE: over body elements
QUESTION: Local_Axes#LA#(-Default-,-Automatic-)
VALUE: -Default-
CANREPEAT: No
END CONDITION
And in the bas file:
*set cond Surface_Sail *elems
*loop elems *OnlyInCond
*elemsnum *localnodes
*end
but Gid tell me "there is no numface"
What is wrong?
Advanced thanks
Pablo

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