[GiDlist] selection

Moderator: GiD Team

Post Reply
Georg Haasemann

[GiDlist] selection

Post by Georg Haasemann »

Hi,
I have the following problem: I would like to obtain in a tcl-script the
numbers of some surfaces, which are located inside a specific geometric
domain. This is just like selecting some surfaces, but based on a
tcl-script. Is there any way to do that?

Furthermore, I can not define a batch-file. Each time I declare the
batch-file in Preference, I get the shell message:
"sh: Syntax error: Bad fd number"
Is this a bug?

Regards,
Georg
Ramon Gonzalez, Arturo

[GiDlist] GiDlist Digest, Vol 3, Issue 9. Numering nodes and

Post by Ramon Gonzalez, Arturo »

Enrique,

Thank you very much for your answer, but the problem is that I don't find where it is possible to change the variable "RenumberMethod".

Thank you very much again.

Regards.


Arturo Ramón González
Westinghouse Electric Spain
Dpto. Seguridad y Licenciamiento
Padilla 17, 28006 Madrid
Telf: (+34) 91 2106506
Fax: (+34) 91 2106540
E-mail: ramonga at westinghouse.com



----------------------------------------------------------------------

Message: 1
Date: Thu, 16 Sep 2010 11:49:23 -0400
From: "Ramon Gonzalez, Arturo" Ramonga at westinghouse.com
Subject: [GiDlist] Numering nodes and elements
To: "gidlist at listas.cimne.upc.edu" gidlist at listas.cimne.upc.edu
Message-ID:
DFB5BAD48C93D34E9EA3BD235CE76A4B01079EE091 at SWEC9980.w-intra.net
Content-Type: text/plain; charset="iso-8859-1"

Good afternoon,

When I generate a mesh with GID, automatically GID numbers the nodes and the elements. I have been looking for a option that allow me renumbering the nodes and elements in a way defined for me, but I don't find it. Is there any way to do that?

Regards.

Arturo Ram?n Gonz?lez
Westinghouse Electric Spain
Dpto. Seguridad y Licenciamiento
Padilla 17, 28006 Madrid
Telf: (+34) 91 2106506
Fax: (+34) 91 2106540
E-mail: ramonga at westinghouse.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20100916/eda27ae1/attachment.html

------------------------------

Message: 2
Date: Thu, 16 Sep 2010 19:17:22 +0200
From: "Enrique Escolano" escolano at cimne.upc.edu
Subject: Re: [GiDlist] Numering nodes and elements
To: gidlist at listas.cimne.upc.edu
Message-ID: 2FA02D517EE14F189FB491D5BA3F19BC at mediador
Content-Type: text/plain; charset="iso-8859-1"

The nodes renumeration algorithm can be set with the variable 'RenumberMethod'
Accepted values are:
-2 : Avoid nodes and elements renumeration, entities numbers are set increasingly when they are generated.
-1 : Avoid nodes renumeration, nodes numbers are set increasingly when they are generated
0 : Geometrical algorimth, ordered by the distance to some coordinate. It is the default value
1 : Reverse Cuthill-McKee algorimth, similar to the previous one, but following element's connectivities
2 : ordered following the XYZ axes, interesting for special cases with geometry aligned to the axes


As a trick, you can write a file with GiD mesh ASCII format with your own renumeration, and import this mesh with
Mescape Files MeshRead $filename
but the boundary conditions will be lost.

Maybe we could add for next versions a GiD-Tcl command to user-renumber nodes or elements without delete and create them again.
(something like: GiD_Mesh Renumber nodes|elements {{list of old id's} {list of new id's}} )

You can use our AfterMeshGeneration Tcl-GiD event to automatically invoke your own renumeration procedure:

The prototype of this event is this (See GiD Help on Tcl/Tk customization)

proc AfterMeshGeneration { fail } {
}


It exists also an AfterRenumber Tcl-GiD event to let you know the relation between old and new numbers when a renumbering
proc AfterRenumber { useof leveltype renumeration } {
}

AfterRenumber : will be called after renumber the geometry or the mesh (to update for example fields storing entity identifiers)

useof : could be GEOMETRYUSE or MESHUSE
leveltype: the kind of entity that was renumbered.
Geometry: must be ALL_LT.
Mesh: could be NODE_LT or ELEM_LT.
renumeration:
Geometry: four sublists with the old and new idenfiers for points, lines, surfaces and volumes.
Mesh: a sublist with the old and new identifiers for nodes or elements.

Regards

Enrique Escolano

----- Original Message -----
From: Ramon Gonzalez, Arturo
To: gidlist at listas.cimne.upc.edu
Sent: Thursday, September 16, 2010 5:49 PM
Subject: [GiDlist] Numering nodes and elements


Good afternoon,



When I generate a mesh with GID, automatically GID numbers the nodes and the elements. I have been looking for a option that allow me renumbering the nodes and elements in a way defined for me, but I don't find it. Is there any way to do that?



Regards.



Arturo Ram?n Gonz?lez
Westinghouse Electric Spain
Dpto. Seguridad y Licenciamiento
Padilla 17, 28006 Madrid
Telf: (+34) 91 2106506
Fax: (+34) 91 2106540
E-mail: ramonga at westinghouse.com





------------------------------------------------------------------------------


_______________________________________________
GiDlist mailing list
GiDlist at listas.cimne.upc.edu
http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20100916/b28076d9/attachment-0001.htm

------------------------------

_______________________________________________
GiDlist mailing list
GiDlist at listas.cimne.upc.edu
http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist


End of GiDlist Digest, Vol 3, Issue 9
*************************************
User avatar
escolano
Posts: 1959
Joined: Sun Sep 05, 1982 10:51 pm

[GiDlist] GiDlist Digest, Vol 3, Issue 9. Numering nodes and

Post by escolano »

You can write in the command line
escape Utilities Variables
and pick the right mouse button to see the variables in the contextual menu

escape Utilities Variables RenuberMethod 0

Note: from Tcl can set/ask a the value of GiD variables with the command
GiD_Set varname ?value?, e.g
GiD_Set RenuberMethod 0

But probably any of our node numbering algorithm will exactly fit your
requirements.
Off course your solver can internally do its own renumbering.

----- Original Message -----
From: "Ramon Gonzalez, Arturo" Ramonga at westinghouse.com
To: gidlist at listas.cimne.upc.edu
Sent: Friday, September 17, 2010 1:56 PM
Subject: Re: [GiDlist] GiDlist Digest, Vol 3,Issue 9. Numering nodes and
elements



Enrique,

Thank you very much for your answer, but the problem is that I don't find
where it is possible to change the variable "RenumberMethod".

Thank you very much again.

Regards.


Arturo Ramón González
Westinghouse Electric Spain
Dpto. Seguridad y Licenciamiento
Padilla 17, 28006 Madrid
Telf: (+34) 91 2106506
Fax: (+34) 91 2106540
E-mail: ramonga at westinghouse.com



----------------------------------------------------------------------

Message: 1
Date: Thu, 16 Sep 2010 11:49:23 -0400
From: "Ramon Gonzalez, Arturo" Ramonga at westinghouse.com
Subject: [GiDlist] Numering nodes and elements
To: "gidlist at listas.cimne.upc.edu" gidlist at listas.cimne.upc.edu
Message-ID:
DFB5BAD48C93D34E9EA3BD235CE76A4B01079EE091 at SWEC9980.w-intra.net
Content-Type: text/plain; charset="iso-8859-1"

Good afternoon,

When I generate a mesh with GID, automatically GID numbers the nodes and the
elements. I have been looking for a option that allow me renumbering the
nodes and elements in a way defined for me, but I don't find it. Is there
any way to do that?

Regards.

Arturo Ram?n Gonz?lez
Westinghouse Electric Spain
Dpto. Seguridad y Licenciamiento
Padilla 17, 28006 Madrid
Telf: (+34) 91 2106506
Fax: (+34) 91 2106540
E-mail: ramonga at westinghouse.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20100916/eda27ae1/attachment.html

------------------------------

Message: 2
Date: Thu, 16 Sep 2010 19:17:22 +0200
From: "Enrique Escolano" escolano at cimne.upc.edu
Subject: Re: [GiDlist] Numering nodes and elements
To: gidlist at listas.cimne.upc.edu
Message-ID: 2FA02D517EE14F189FB491D5BA3F19BC at mediador
Content-Type: text/plain; charset="iso-8859-1"

The nodes renumeration algorithm can be set with the variable
'RenumberMethod'
Accepted values are:
-2 : Avoid nodes and elements renumeration, entities numbers are set
increasingly when they are generated.
-1 : Avoid nodes renumeration, nodes numbers are set increasingly when they
are generated
0 : Geometrical algorimth, ordered by the distance to some coordinate. It
is the default value
1 : Reverse Cuthill-McKee algorimth, similar to the previous one, but
following element's connectivities
2 : ordered following the XYZ axes, interesting for special cases with
geometry aligned to the axes


As a trick, you can write a file with GiD mesh ASCII format with your own
renumeration, and import this mesh with
Mescape Files MeshRead $filename
but the boundary conditions will be lost.

Maybe we could add for next versions a GiD-Tcl command to user-renumber
nodes or elements without delete and create them again.
(something like: GiD_Mesh Renumber nodes|elements {{list of old id's} {list
of new id's}} )

You can use our AfterMeshGeneration Tcl-GiD event to automatically invoke
your own renumeration procedure:

The prototype of this event is this (See GiD Help on Tcl/Tk customization)

proc AfterMeshGeneration { fail } {
}


It exists also an AfterRenumber Tcl-GiD event to let you know the relation
between old and new numbers when a renumbering
proc AfterRenumber { useof leveltype renumeration } {
}

AfterRenumber : will be called after renumber the geometry or the mesh (to
update for example fields storing entity identifiers)

useof : could be GEOMETRYUSE or MESHUSE
leveltype: the kind of entity that was renumbered.
Geometry: must be ALL_LT.
Mesh: could be NODE_LT or ELEM_LT.
renumeration:
Geometry: four sublists with the old and new idenfiers for points, lines,
surfaces and volumes.
Mesh: a sublist with the old and new identifiers for nodes or elements.

Regards

Enrique Escolano

----- Original Message -----
From: Ramon Gonzalez, Arturo
To: gidlist at listas.cimne.upc.edu
Sent: Thursday, September 16, 2010 5:49 PM
Subject: [GiDlist] Numering nodes and elements


Good afternoon,



When I generate a mesh with GID, automatically GID numbers the nodes and
the elements. I have been looking for a option that allow me renumbering the
nodes and elements in a way defined for me, but I don't find it. Is there
any way to do that?



Regards.



Arturo Ram?n Gonz?lez
Westinghouse Electric Spain
Dpto. Seguridad y Licenciamiento
Padilla 17, 28006 Madrid
Telf: (+34) 91 2106506
Fax: (+34) 91 2106540
E-mail: ramonga at westinghouse.com





------------------------------------------------------------------------------


_______________________________________________
GiDlist mailing list
GiDlist at listas.cimne.upc.edu
http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20100916/b28076d9/attachment-0001.htm

------------------------------

_______________________________________________
GiDlist mailing list
GiDlist at listas.cimne.upc.edu
http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist


End of GiDlist Digest, Vol 3, Issue 9
*************************************

_______________________________________________
GiDlist mailing list
GiDlist at listas.cimne.upc.edu
http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist
Post Reply