[GiDlist] (no subject)

I have tested with GiD 10.0.9 and it works well (write all nodes, not only
one)
I attach a very simple problemtype, with a .tcl file with the procedure and
a .bas template that use it to write nodes of quadrilaterals. Uncompress it
in your \problemetypes folder
and use it with an example that have some quadrilateral


----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, March 05, 2012 10:40 PM
Subject: Re: [GiDlist] Set Materials


Thank You for the update,

Is this new code (with the sublist being used instead of array) still
supposed to write the nodes? I tried it and it gave me just one single
number instead of the list of the nodes.

Thank You

On Thu, Mar 1, 2012 at 4:02 AM, Enrique Escolano escolano at cimne.upc.edu
wrote:
Password Alert! This message may contain a request for your password.
NEVER
SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For questions about
this alert, please contact the IT HelpDesk at 405-744-4357 or email
helpdesk at okstate.edu.


No, the password of versions 10.x is different of the passwords of version
9.x. Could try GiD 10.x with a trial one month password
You can restrict the use of GiD-Tcl commands to the ones available on GiD
9.0.2 (see Help-Customization-TclTk extension)
in this version you can’t use the -array flag of the command
GiD_Info Mesh Elements $element_type -array
but for example could use
GiD_Info Mesh Elements $element_type -sublist
this is the procedure modified to work also with your version:
proc Example_GetNodesOfElementType { element_type } {
set nodes

  • __ foreach item [GiD_Info Mesh Elements $element_type -sublist] {
    lappend nodes {*}[lrange $item 1 end-1]
    }
    set nodes [lsort -integer -unique $nodes]
    return $nodes
    }
    ----- Original Message -----
    From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
    To: gidlist at listas.cimne.upc.edu
    Sent: Wednesday, February 29, 2012 9:55 PM
    Subject: Re: [GiDlist] Set Materials
    Will I be able to use the version 10.2.1.d with my same software key?

On Tue, Feb 28, 2012 at 3:47 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
The problem is that your GiD version 9.0.2 is old, and the command
GiD_Info
Mesh of this versions don’t support the syntax -array I’ve used.
Download the last GiD developer version 10.2.1.d from our web
_http://www.gidhome.com/download/developer-versions_

----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 27, 2012 11:12 PM
Subject: Re: [GiDlist] Set Materials

Hello,
I use the exact same problem type that you emailed me, but still, I
get the error:
Error in base file C:/Program Files/GiD/GiD 9.0.2/problemtypes/FLODEF
V11.gid/FLODEF V11-z.bas at line number 2: Error in TCL expression:
'info Mesh Elements Elemtype ?first? ?last? ?-sublist? with
first,last0’
Do you know what the reason might be for this error?
Thank You,
Arash
On Tue, Feb 21, 2012 at 5:06 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
I attach a simple problemtype that works well

----- Original Message ----- From: “Farzam-Student,STW, Arash”
farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 20, 2012 7:58 PM
Subject: Re: [GiDlist] Set Materials

Yes, actually I have named it the same. I just wrote problem type in
the email for avoiding confusion. But still, I get the same error.
Thanks,
Arash
On Mon, Feb 20, 2012 at 12:35 PM, Enrique Escolano
escolano at cimne.upc.edu wrote:
In order to be automatically sourced by GiD, the name of the tcl file
must
be "FLODEF V11.tcl "
(the same as the problemtype and .tcl extension)
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 20, 2012 7:08 PM
Subject: Re: [GiDlist] Set Materials

Hello,
I made a .tcl file in my problem type containing:
proc Example_GetNodesOfElementType { element_type } {
set nodes

  • __ foreach item [lindex [lindex [GiD_Info Mesh Elements $element_type
    -array] 0] 2] {
    lappend nodes {*}$item
    }
    set nodes [lsort -integer -unique $nodes]
    return $nodes
    }
    and in my .bas file,
    I have written
    *tcl(Example_GetNodesOfElementType Hexahedra)
    *NodesNum *NodesCoord
    to get the nodal coordinates all hexahedra elements. It is not
    working
    and it gives the error:
    Error in base file C:/Program Files/GiD/GiD 9.0.2/problemtypes/FLODEF
    V11.gid/FLODEF V11-post.bas at line number 3: Error in TCL
    expression:
    ‘invalid command name “Example_GetNodesOfElement_Type”’
    I would be happy to have your comment.
    Thank You,
    Arash Farzam
    On Tue, Feb 14, 2012 at 4:22 AM, Enrique Escolano
    escolano at cimne.upc.edu wrote:
    No, you can’t do a loop on the nodes of a type of elements with
    simple
    .bas
    commands.
    you can do the loop on the elements of a type, and inside write all
    its
    nodes, but then you will obtain the list of nodes of this kind of
    element,
    but with repetitions.
    to do this kind of special thinks you must go to Tcl scripting
    level.
    You
    can define a tcl procedure (inside a problemtype.tcl file it is
    automatically sourced) that
    return what you want (the list of nodes of a type of element
    unrepeated)
    You can invoke this Tcl procedure from the .bas file, with a
    *tcl(your_procedure) command, then the value returned by the
    procedure
    is
    directly printed in the output file.
    This is an example of the procedure you need to write in your
    problemtype.tcl file
    proc Example_GetNodesOfElementType { element_type } {
    set nodes
    • __ foreach item [lindex [lindex [GiD_Info Mesh Elements $element_type
      -array] 0] 2] {
      lappend nodes {*}$item
      }
      set nodes [lsort -integer -unique $nodes]
      return $nodes
      }
      GiD_Info Mesh is a special GiD-Tcl command (you can see the its
      syntax
      at
      GiD Help (GiD Customization - Tcl/Tk extension)
      the rest is Tcl standard scripting language (can see documentation
      on
      Internet, and also in the help of Ramdebugger that is our Tcl/Tk
      editor
      and
      debugger), could open RamDebugger from the menu
      Data-Problemtype-Debugger…
      and in the .bas file you must write something like this:
      Hexahedra nodes:
      *tcl(Example_GetNodesOfElementType Hexahedra)
      Quadrilateral nodes:
      *tcl(Example_GetNodesOfElementType Quadrilateral)
      Note that I prefixed the Tcl procedure with ‘Example’, to avoid
      conflicts
      with other possible Tcl procedure that could use the same name
      GetNodesOfElementType
      I recommend you to use a prefix or namespace related with the name
      of
      your
      problemtype.

Note: you can obtain multiple .dat output files, writting multiple
.bas
templates. a increasing number if added to the name of each .dat
file
(and
templates are evaluated sorted alphabetically by its name)
Regards
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Tuesday, February 14, 2012 12:45 AM
Subject: Re: [GiDlist] Set Materials
Thank You very much,
I have another qustion. I have two types of elements, hexahedron and
rectangular. Can I set element type for each one and loop the nodes
of
each one? I want to have all the nodes of hexahedron elements only
in
one file and all the nodes of the rectangular elements only in
another
file.
Best Regards,
Arash
On Wed, Feb 1, 2012 at 4:37 AM, Enrique Escolano
escolano at cimne.upc.edu
wrote:
You can do two loops, and inside take in account only the kind of
material
you want
And you can have in the material a hidden field, named for example
‘class’,
to identify its category
MATERIAL:xxx
Question:class
Value:soil
State:hidden

END MATERIAL
*loop materials
*if(strcmp(Matprop(class),“soil”)==0)
write its properties
*endif
*end materials
*loop materials
*if(strcmp(Matprop(class),“concrete”)==0)
write its properties
*endif
*end materials
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Tuesday, January 31, 2012 10:05 PM
Subject: [GiDlist] Set Materials

Hello,
I have two kinds of materials in my code: soil materials and
concrete
materials. Is there a way to ask GiD to loop only soil materials
at
one stage and loop concrete materials at another time in the .bas
file
instead of having the command Loop materials which will cover all
soils and concretes? Can I use the set command to select only the
soil
/ concrete materials?
Thank You,
Arash


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist
-------------- next part --------------
A non-text attachment was scrubbed…
Name: Farzam.rar
Type: application/octet-stream
Size: 782 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20120306/4b91c0c5/attachment.obj

Hello,

Thank You for the problem type. It works on my system as well. It
lists the node numbers. Is there a way to add the nodal coordinates to
the node numbers as well? Like at each row, having a node number and
its coordinates, and having the next node number in the next row?

Best Regards,
Arash

On Tue, Mar 6, 2012 at 6:14 AM, Enrique Escolano escolano at cimne.upc.edu wrote:
Password Alert! This message may contain a request for your password. NEVER SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For questions about this alert, please contact the IT HelpDesk at 405-744-4357 or email helpdesk at okstate.edu.
----------------------------------------------------------------------
I have tested with GiD 10.0.9 and it works well (write all nodes, not only
one)
I attach a very simple problemtype, with a .tcl file with the procedure and
a .bas template that use it to write nodes of quadrilaterals. Uncompress it
in your \problemetypes folder
and use it with an example that have some quadrilateral

----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, March 05, 2012 10:40 PM
Subject: Re: [GiDlist] Set Materials

Thank You for the update,
Is this new code (with the sublist being used instead of array) still
supposed to write the nodes? I tried it and it gave me just one single
number instead of the list of the nodes.
Thank You
On Thu, Mar 1, 2012 at 4:02 AM, Enrique Escolano escolano at cimne.upc.edu
wrote:
Password Alert! This message may contain a request for your password.
NEVER
SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For questions about
this alert, please contact the IT HelpDesk at 405-744-4357 or email
helpdesk at okstate.edu.


No, the password of versions 10.x is different of the passwords of version
9.x. Could try GiD 10.x with a trial one month password
You can restrict the use of GiD-Tcl commands to the ones available on GiD
9.0.2 (see Help-Customization-TclTk extension)
in this version you can’t use the -array flag of the command
GiD_Info Mesh Elements $element_type -array
but for example could use
GiD_Info Mesh Elements $element_type -sublist
this is the procedure modified to work also with your version:
proc Example_GetNodesOfElementType { element_type } {
set nodes

  • __ foreach item [GiD_Info Mesh Elements $element_type -sublist] {
    lappend nodes {*}[lrange $item 1 end-1]
    }
    set nodes [lsort -integer -unique $nodes]
    return $nodes
    }
    ----- Original Message -----
    From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
    To: gidlist at listas.cimne.upc.edu
    Sent: Wednesday, February 29, 2012 9:55 PM
    Subject: Re: [GiDlist] Set Materials
    Will I be able to use the version 10.2.1.d with my same software key?

On Tue, Feb 28, 2012 at 3:47 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
The problem is that your GiD version 9.0.2 is old, and the command
GiD_Info
Mesh of this versions don’t support the syntax -array I’ve used.
Download the last GiD developer version 10.2.1.d from our web
_http://www.gidhome.com/download/developer-versions_

----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 27, 2012 11:12 PM
Subject: Re: [GiDlist] Set Materials

Hello,
I use the exact same problem type that you emailed me, but still, I
get the error:
Error in base file C:/Program Files/GiD/GiD 9.0.2/problemtypes/FLODEF
V11.gid/FLODEF V11-z.bas at line number 2: Error in TCL expression:
'info Mesh Elements Elemtype ?first? ?last? ?-sublist? with
first,last0’
Do you know what the reason might be for this error?
Thank You,
Arash
On Tue, Feb 21, 2012 at 5:06 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
I attach a simple problemtype that works well

----- Original Message ----- From: “Farzam-Student,STW, Arash”
farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 20, 2012 7:58 PM
Subject: Re: [GiDlist] Set Materials

Yes, actually I have named it the same. I just wrote problem type in
the email for avoiding confusion. But still, I get the same error.
Thanks,
Arash
On Mon, Feb 20, 2012 at 12:35 PM, Enrique Escolano
escolano at cimne.upc.edu wrote:
In order to be automatically sourced by GiD, the name of the tcl file
must
be "FLODEF V11.tcl "
(the same as the problemtype and .tcl extension)
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 20, 2012 7:08 PM
Subject: Re: [GiDlist] Set Materials

Hello,
I made a .tcl file in my problem type containing:
proc Example_GetNodesOfElementType { element_type } {
set nodes

  • __ foreach item [lindex [lindex [GiD_Info Mesh Elements $element_type
    -array] 0] 2] {
    lappend nodes {*}$item
    }
    set nodes [lsort -integer -unique $nodes]
    return $nodes
    }
    and in my .bas file,
    I have written
    *tcl(Example_GetNodesOfElementType Hexahedra)
    *NodesNum *NodesCoord
    to get the nodal coordinates all hexahedra elements. It is not
    working
    and it gives the error:
    Error in base file C:/Program Files/GiD/GiD 9.0.2/problemtypes/FLODEF
    V11.gid/FLODEF V11-post.bas at line number 3: Error in TCL
    expression:
    ‘invalid command name “Example_GetNodesOfElement_Type”’
    I would be happy to have your comment.
    Thank You,
    Arash Farzam
    On Tue, Feb 14, 2012 at 4:22 AM, Enrique Escolano
    escolano at cimne.upc.edu wrote:
    No, you can’t do a loop on the nodes of a type of elements with
    simple
    .bas
    commands.
    you can do the loop on the elements of a type, and inside write all
    its
    nodes, but then you will obtain the list of nodes of this kind of
    element,
    but with repetitions.
    to do this kind of special thinks you must go to Tcl scripting
    level.
    You
    can define a tcl procedure (inside a problemtype.tcl file it is
    automatically sourced) that
    return what you want (the list of nodes of a type of element
    unrepeated)
    You can invoke this Tcl procedure from the .bas file, with a
    *tcl(your_procedure) command, then the value returned by the
    procedure
    is
    directly printed in the output file.
    This is an example of the procedure you need to write in your
    problemtype.tcl file
    proc Example_GetNodesOfElementType { element_type } {
    set nodes
    • __ foreach item [lindex [lindex [GiD_Info Mesh Elements $element_type
      -array] 0] 2] {
      lappend nodes {*}$item
      }
      set nodes [lsort -integer -unique $nodes]
      return $nodes
      }
      GiD_Info Mesh is a special GiD-Tcl command (you can see the its
      syntax
      at
      GiD Help (GiD Customization - Tcl/Tk extension)
      the rest is Tcl standard scripting language (can see documentation
      on
      Internet, and also in the help of Ramdebugger that is our Tcl/Tk
      editor
      and
      debugger), could open RamDebugger from the menu
      Data-Problemtype-Debugger…
      and in the .bas file you must write something like this:
      Hexahedra nodes:
      *tcl(Example_GetNodesOfElementType Hexahedra)
      Quadrilateral nodes:
      *tcl(Example_GetNodesOfElementType Quadrilateral)
      Note that I prefixed the Tcl procedure with ‘Example’, to avoid
      conflicts
      with other possible Tcl procedure that could use the same name
      GetNodesOfElementType
      I recommend you to use a prefix or namespace related with the name
      of
      your
      problemtype.

Note: you can obtain multiple .dat output files, writting multiple
.bas
templates. a increasing number if added to the name of each .dat
file
(and
templates are evaluated sorted alphabetically by its name)
Regards
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Tuesday, February 14, 2012 12:45 AM
Subject: Re: [GiDlist] Set Materials
Thank You very much,
I have another qustion. I have two types of elements, hexahedron and
rectangular. Can I set element type for each one and loop the nodes
of
each one? I want to have all the nodes of hexahedron elements only
in
one file and all the nodes of the rectangular elements only in
another
file.
Best Regards,
Arash
On Wed, Feb 1, 2012 at 4:37 AM, Enrique Escolano
escolano at cimne.upc.edu
wrote:
You can do two loops, and inside take in account only the kind of
material
you want
And you can have in the material a hidden field, named for example
‘class’,
to identify its category
MATERIAL:xxx
Question:class
Value:soil
State:hidden

END MATERIAL
*loop materials
*if(strcmp(Matprop(class),“soil”)==0)
write its properties
*endif
*end materials
*loop materials
*if(strcmp(Matprop(class),“concrete”)==0)
write its properties
*endif
*end materials
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Tuesday, January 31, 2012 10:05 PM
Subject: [GiDlist] Set Materials

Hello,
I have two kinds of materials in my code: soil materials and
concrete
materials. Is there a way to ask GiD to loop only soil materials
at
one stage and loop concrete materials at another time in the .bas
file
instead of having the command Loop materials which will cover all
soils and concretes? Can I use the set command to select only the
soil
/ concrete materials?
Thank You,
Arash


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_

Yes, in the tcl procedure you can ask GiD for the information you want, and
you could format it as you want.
the string returned by the tcl procedure invoked from the .bas file is
directly printed to the output file (in TCL could use \n for a carriage
return, like in C++)

I left to youthe thask of modify the Tcl procedure.
To know the GiD-Tcl command to ask the information you want have a look to
GiD help (about TCL/TK extension-Control funcions-Info function
for example in your GiD 9.0.2 could use the command “GiD_Info Coordinates”
(find its syntax in the help), with last GiD versions there are more GiD-Tcl
commands

Enrique

----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, March 12, 2012 6:21 PM
Subject: Re: [GiDlist] Set Materials


Hello,
Thank You for the problem type. It works on my system as well. It
lists the node numbers. Is there a way to add the nodal coordinates to
the node numbers as well? Like at each row, having a node number and
its coordinates, and having the next node number in the next row?
Best Regards,
Arash
On Tue, Mar 6, 2012 at 6:14 AM, Enrique Escolano escolano at cimne.upc.edu
wrote:
Password Alert! This message may contain a request for your password.
NEVER SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For questions
about this alert, please contact the IT HelpDesk at 405-744-4357 or email
helpdesk at okstate.edu.
----------------------------------------------------------------------
I have tested with GiD 10.0.9 and it works well (write all nodes, not
only
one)
I attach a very simple problemtype, with a .tcl file with the procedure
and
a .bas template that use it to write nodes of quadrilaterals. Uncompress
it
in your \problemetypes folder
and use it with an example that have some quadrilateral

----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, March 05, 2012 10:40 PM
Subject: Re: [GiDlist] Set Materials

Thank You for the update,
Is this new code (with the sublist being used instead of array) still
supposed to write the nodes? I tried it and it gave me just one single
number instead of the list of the nodes.
Thank You
On Thu, Mar 1, 2012 at 4:02 AM, Enrique Escolano escolano at cimne.upc.edu
wrote:
Password Alert! This message may contain a request for your password.
NEVER
SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For questions
about
this alert, please contact the IT HelpDesk at 405-744-4357 or email
helpdesk at okstate.edu.


No, the password of versions 10.x is different of the passwords of
version
9.x. Could try GiD 10.x with a trial one month password
You can restrict the use of GiD-Tcl commands to the ones available on
GiD
9.0.2 (see Help-Customization-TclTk extension)
in this version you can’t use the -array flag of the command
GiD_Info Mesh Elements $element_type -array
but for example could use
GiD_Info Mesh Elements $element_type -sublist
this is the procedure modified to work also with your version:
proc Example_GetNodesOfElementType { element_type } {
set nodes

  • __ foreach item [GiD_Info Mesh Elements $element_type -sublist] {
    lappend nodes {*}[lrange $item 1 end-1]
    }
    set nodes [lsort -integer -unique $nodes]
    return $nodes
    }
    ----- Original Message -----
    From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
    To: gidlist at listas.cimne.upc.edu
    Sent: Wednesday, February 29, 2012 9:55 PM
    Subject: Re: [GiDlist] Set Materials
    Will I be able to use the version 10.2.1.d with my same software key?

On Tue, Feb 28, 2012 at 3:47 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
The problem is that your GiD version 9.0.2 is old, and the command
GiD_Info
Mesh of this versions don’t support the syntax -array I’ve used.
Download the last GiD developer version 10.2.1.d from our web
_http://www.gidhome.com/download/developer-versions_

----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 27, 2012 11:12 PM
Subject: Re: [GiDlist] Set Materials

Hello,
I use the exact same problem type that you emailed me, but still, I
get the error:
Error in base file C:/Program Files/GiD/GiD 9.0.2/problemtypes/FLODEF
V11.gid/FLODEF V11-z.bas at line number 2: Error in TCL expression:
'info Mesh Elements Elemtype ?first? ?last? ?-sublist? with
first,last0’
Do you know what the reason might be for this error?
Thank You,
Arash
On Tue, Feb 21, 2012 at 5:06 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
I attach a simple problemtype that works well

----- Original Message ----- From: “Farzam-Student,STW, Arash”
farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 20, 2012 7:58 PM
Subject: Re: [GiDlist] Set Materials

Yes, actually I have named it the same. I just wrote problem type in
the email for avoiding confusion. But still, I get the same error.
Thanks,
Arash
On Mon, Feb 20, 2012 at 12:35 PM, Enrique Escolano
escolano at cimne.upc.edu wrote:
In order to be automatically sourced by GiD, the name of the tcl
file
must
be "FLODEF V11.tcl "
(the same as the problemtype and .tcl extension)
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 20, 2012 7:08 PM
Subject: Re: [GiDlist] Set Materials

Hello,
I made a .tcl file in my problem type containing:
proc Example_GetNodesOfElementType { element_type } {
set nodes

  • __ foreach item [lindex [lindex [GiD_Info Mesh Elements $element_type
    -array] 0] 2] {
    lappend nodes {*}$item
    }
    set nodes [lsort -integer -unique $nodes]
    return $nodes
    }
    and in my .bas file,
    I have written
    *tcl(Example_GetNodesOfElementType Hexahedra)
    *NodesNum *NodesCoord
    to get the nodal coordinates all hexahedra elements. It is not
    working
    and it gives the error:
    Error in base file C:/Program Files/GiD/GiD
    9.0.2/problemtypes/FLODEF
    V11.gid/FLODEF V11-post.bas at line number 3: Error in TCL
    expression:
    ‘invalid command name “Example_GetNodesOfElement_Type”’
    I would be happy to have your comment.
    Thank You,
    Arash Farzam
    On Tue, Feb 14, 2012 at 4:22 AM, Enrique Escolano
    escolano at cimne.upc.edu wrote:
    No, you can’t do a loop on the nodes of a type of elements with
    simple
    .bas
    commands.
    you can do the loop on the elements of a type, and inside write
    all
    its
    nodes, but then you will obtain the list of nodes of this kind of
    element,
    but with repetitions.
    to do this kind of special thinks you must go to Tcl scripting
    level.
    You
    can define a tcl procedure (inside a problemtype.tcl file it is
    automatically sourced) that
    return what you want (the list of nodes of a type of element
    unrepeated)
    You can invoke this Tcl procedure from the .bas file, with a
    *tcl(your_procedure) command, then the value returned by the
    procedure
    is
    directly printed in the output file.
    This is an example of the procedure you need to write in your
    problemtype.tcl file
    proc Example_GetNodesOfElementType { element_type } {
    set nodes
    • __ foreach item [lindex [lindex [GiD_Info Mesh Elements $element_type
      -array] 0] 2] {
      lappend nodes {*}$item
      }
      set nodes [lsort -integer -unique $nodes]
      return $nodes
      }
      GiD_Info Mesh is a special GiD-Tcl command (you can see the its
      syntax
      at
      GiD Help (GiD Customization - Tcl/Tk extension)
      the rest is Tcl standard scripting language (can see documentation
      on
      Internet, and also in the help of Ramdebugger that is our Tcl/Tk
      editor
      and
      debugger), could open RamDebugger from the menu
      Data-Problemtype-Debugger…
      and in the .bas file you must write something like this:
      Hexahedra nodes:
      *tcl(Example_GetNodesOfElementType Hexahedra)
      Quadrilateral nodes:
      *tcl(Example_GetNodesOfElementType Quadrilateral)
      Note that I prefixed the Tcl procedure with ‘Example’, to avoid
      conflicts
      with other possible Tcl procedure that could use the same name
      GetNodesOfElementType
      I recommend you to use a prefix or namespace related with the name
      of
      your
      problemtype.

Note: you can obtain multiple .dat output files, writting multiple
.bas
templates. a increasing number if added to the name of each .dat
file
(and
templates are evaluated sorted alphabetically by its name)
Regards
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Tuesday, February 14, 2012 12:45 AM
Subject: Re: [GiDlist] Set Materials
Thank You very much,
I have another qustion. I have two types of elements, hexahedron
and
rectangular. Can I set element type for each one and loop the
nodes
of
each one? I want to have all the nodes of hexahedron elements only
in
one file and all the nodes of the rectangular elements only in
another
file.
Best Regards,
Arash
On Wed, Feb 1, 2012 at 4:37 AM, Enrique Escolano
escolano at cimne.upc.edu
wrote:
You can do two loops, and inside take in account only the kind of
material
you want
And you can have in the material a hidden field, named for
example
‘class’,
to identify its category
MATERIAL:xxx
Question:class
Value:soil
State:hidden

END MATERIAL
*loop materials
*if(strcmp(Matprop(class),“soil”)==0)
write its properties
*endif
*end materials
*loop materials
*if(strcmp(Matprop(class),“concrete”)==0)
write its properties
*endif
*end materials
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Tuesday, January 31, 2012 10:05 PM
Subject: [GiDlist] Set Materials

Hello,
I have two kinds of materials in my code: soil materials and
concrete
materials. Is there a way to ask GiD to loop only soil materials
at
one stage and loop concrete materials at another time in the
.bas
file
instead of having the command Loop materials which will cover
all
soils and concretes? Can I use the set command to select only
the
soil
/ concrete materials?
Thank You,
Arash


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_

Hello,

Thanks for the information. All the explanation I found about the tcl
command was a two line explanation without any examples, and I could
not figure out how the GiD_Info Coordinates command works to modify my
tcl procedure. I tried a few syntaxes but they did not work. Do you
have any examples of this I can study to find out how to use it?

Thank You,
Arash

On Thu, Mar 15, 2012 at 4:25 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
Password Alert! This message may contain a request for your password. NEVER SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For questions about this alert, please contact the IT HelpDesk at 405-744-4357 or email helpdesk at okstate.edu.
----------------------------------------------------------------------
Yes, in the tcl procedure you can ask GiD for the information you want, and
you could format it as you want.
the string returned by the tcl procedure invoked from the .bas file is
directly printed to the output file (in TCL could use \n for a carriage
return, like in C++)
I left to youthe thask of modify the Tcl procedure.
To know the GiD-Tcl command to ask the information you want have a look to
GiD help (about TCL/TK extension-Control funcions-Info function
for example in your GiD 9.0.2 could use the command “GiD_Info Coordinates”
(find its syntax in the help), with last GiD versions there are more GiD-Tcl
commands
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, March 12, 2012 6:21 PM
Subject: Re: [GiDlist] Set Materials

Hello,
Thank You for the problem type. It works on my system as well. It
lists the node numbers. Is there a way to add the nodal coordinates to
the node numbers as well? Like at each row, having a node number and
its coordinates, and having the next node number in the next row?
Best Regards,
Arash
On Tue, Mar 6, 2012 at 6:14 AM, Enrique Escolano escolano at cimne.upc.edu
wrote:
Password Alert! This message may contain a request for your password.
NEVER SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For questions
about this alert, please contact the IT HelpDesk at 405-744-4357 or email
helpdesk at okstate.edu.
----------------------------------------------------------------------
I have tested with GiD 10.0.9 and it works well (write all nodes, not
only
one)
I attach a very simple problemtype, with a .tcl file with the procedure
and
a .bas template that use it to write nodes of quadrilaterals. Uncompress
it
in your \problemetypes folder
and use it with an example that have some quadrilateral

----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, March 05, 2012 10:40 PM
Subject: Re: [GiDlist] Set Materials

Thank You for the update,
Is this new code (with the sublist being used instead of array) still
supposed to write the nodes? I tried it and it gave me just one single
number instead of the list of the nodes.
Thank You
On Thu, Mar 1, 2012 at 4:02 AM, Enrique Escolano escolano at cimne.upc.edu
wrote:
Password Alert! This message may contain a request for your password.
NEVER
SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For questions
about
this alert, please contact the IT HelpDesk at 405-744-4357 or email
helpdesk at okstate.edu.


No, the password of versions 10.x is different of the passwords of
version
9.x. Could try GiD 10.x with a trial one month password
You can restrict the use of GiD-Tcl commands to the ones available on
GiD
9.0.2 (see Help-Customization-TclTk extension)
in this version you can’t use the -array flag of the command
GiD_Info Mesh Elements $element_type -array
but for example could use
GiD_Info Mesh Elements $element_type -sublist
this is the procedure modified to work also with your version:
proc Example_GetNodesOfElementType { element_type } {
set nodes

  • __ foreach item [GiD_Info Mesh Elements $element_type -sublist] {
    lappend nodes {*}[lrange $item 1 end-1]
    }
    set nodes [lsort -integer -unique $nodes]
    return $nodes
    }
    ----- Original Message -----
    From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
    To: gidlist at listas.cimne.upc.edu
    Sent: Wednesday, February 29, 2012 9:55 PM
    Subject: Re: [GiDlist] Set Materials
    Will I be able to use the version 10.2.1.d with my same software key?

On Tue, Feb 28, 2012 at 3:47 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
The problem is that your GiD version 9.0.2 is old, and the command
GiD_Info
Mesh of this versions don’t support the syntax -array I’ve used.
Download the last GiD developer version 10.2.1.d from our web
_http://www.gidhome.com/download/developer-versions_

----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 27, 2012 11:12 PM
Subject: Re: [GiDlist] Set Materials

Hello,
I use the exact same problem type that you emailed me, but still, I
get the error:
Error in base file C:/Program Files/GiD/GiD 9.0.2/problemtypes/FLODEF
V11.gid/FLODEF V11-z.bas at line number 2: Error in TCL expression:
'info Mesh Elements Elemtype ?first? ?last? ?-sublist? with
first,last0’
Do you know what the reason might be for this error?
Thank You,
Arash
On Tue, Feb 21, 2012 at 5:06 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
I attach a simple problemtype that works well

----- Original Message ----- From: “Farzam-Student,STW, Arash”
farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 20, 2012 7:58 PM
Subject: Re: [GiDlist] Set Materials

Yes, actually I have named it the same. I just wrote problem type in
the email for avoiding confusion. But still, I get the same error.
Thanks,
Arash
On Mon, Feb 20, 2012 at 12:35 PM, Enrique Escolano
escolano at cimne.upc.edu wrote:
In order to be automatically sourced by GiD, the name of the tcl
file
must
be "FLODEF V11.tcl "
(the same as the problemtype and .tcl extension)
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 20, 2012 7:08 PM
Subject: Re: [GiDlist] Set Materials

Hello,
I made a .tcl file in my problem type containing:
proc Example_GetNodesOfElementType { element_type } {
set nodes

  • __ foreach item [lindex [lindex [GiD_Info Mesh Elements $element_type
    -array] 0] 2] {
    lappend nodes {*}$item
    }
    set nodes [lsort -integer -unique $nodes]
    return $nodes
    }
    and in my .bas file,
    I have written
    *tcl(Example_GetNodesOfElementType Hexahedra)
    *NodesNum *NodesCoord
    to get the nodal coordinates all hexahedra elements. It is not
    working
    and it gives the error:
    Error in base file C:/Program Files/GiD/GiD
    9.0.2/problemtypes/FLODEF
    V11.gid/FLODEF V11-post.bas at line number 3: Error in TCL
    expression:
    ‘invalid command name “Example_GetNodesOfElement_Type”’
    I would be happy to have your comment.
    Thank You,
    Arash Farzam
    On Tue, Feb 14, 2012 at 4:22 AM, Enrique Escolano
    escolano at cimne.upc.edu wrote:
    No, you can’t do a loop on the nodes of a type of elements with
    simple
    .bas
    commands.
    you can do the loop on the elements of a type, and inside write
    all
    its
    nodes, but then you will obtain the list of nodes of this kind of
    element,
    but with repetitions.
    to do this kind of special thinks you must go to Tcl scripting
    level.
    You
    can define a tcl procedure (inside a problemtype.tcl file it is
    automatically sourced) that
    return what you want (the list of nodes of a type of element
    unrepeated)
    You can invoke this Tcl procedure from the .bas file, with a
    *tcl(your_procedure) command, then the value returned by the
    procedure
    is
    directly printed in the output file.
    This is an example of the procedure you need to write in your
    problemtype.tcl file
    proc Example_GetNodesOfElementType { element_type } {
    set nodes
    • __ foreach item [lindex [lindex [GiD_Info Mesh Elements $element_type
      -array] 0] 2] {
      lappend nodes {*}$item
      }
      set nodes [lsort -integer -unique $nodes]
      return $nodes
      }
      GiD_Info Mesh is a special GiD-Tcl command (you can see the its
      syntax
      at
      GiD Help (GiD Customization - Tcl/Tk extension)
      the rest is Tcl standard scripting language (can see documentation
      on
      Internet, and also in the help of Ramdebugger that is our Tcl/Tk
      editor
      and
      debugger), could open RamDebugger from the menu
      Data-Problemtype-Debugger…
      and in the .bas file you must write something like this:
      Hexahedra nodes:
      *tcl(Example_GetNodesOfElementType Hexahedra)
      Quadrilateral nodes:
      *tcl(Example_GetNodesOfElementType Quadrilateral)
      Note that I prefixed the Tcl procedure with ‘Example’, to avoid
      conflicts
      with other possible Tcl procedure that could use the same name
      GetNodesOfElementType
      I recommend you to use a prefix or namespace related with the name
      of
      your
      problemtype.

Note: you can obtain multiple .dat output files, writting multiple
.bas
templates. a increasing number if added to the name of each .dat
file
(and
templates are evaluated sorted alphabetically by its name)
Regards
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Tuesday, February 14, 2012 12:45 AM
Subject: Re: [GiDlist] Set Materials
Thank You very much,
I have another qustion. I have two types of elements, hexahedron
and
rectangular. Can I set element type for each one and loop the
nodes
of
each one? I want to have all the nodes of hexahedron elements only
in
one file and all the nodes of the rectangular elements only in
another
file.
Best Regards,
Arash
On Wed, Feb 1, 2012 at 4:37 AM, Enrique Escolano
escolano at cimne.upc.edu
wrote:
You can do two loops, and inside take in account only the kind of
material
you want
And you can have in the material a hidden field, named for
example
‘class’,
to identify its category
MATERIAL:xxx
Question:class
Value:soil
State:hidden

END MATERIAL
*loop materials
*if(strcmp(Matprop(class),“soil”)==0)
write its properties
*endif
*end materials
*loop materials
*if(strcmp(Matprop(class),“concrete”)==0)
write its properties
*endif
*end materials
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Tuesday, January 31, 2012 10:05 PM
Subject: [GiDlist] Set Materials

Hello,
I have two kinds of materials in my code: soil materials and
concrete
materials. Is there a way to ask GiD to loop only soil materials
at
one stage and loop concrete materials at another time in the
.bas
file
instead of having the command Loop materials which will cover
all
soils and concretes? Can I use the set command to select only
the
soil
/ concrete materials?
Thank You,
Arash


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_

You can use the the GiD_Info Coordinates command inside the
Example_GetNodesOfElementType procedure
to get the coordinates you want, and format this data as you want to return
the wanted string.
If you invoke a tcl command from our .bas template wiht *tcl then the value
returned by the procedure is the text that is printed to the output file.

Some information links:
-1: to know the syntax of the Tcl standard commands:
see html help included with ramdebugger (a Tcl/Tk editor and debugger
included with GiD) in the folder
…\scripts\ramdebugger\help\02TclTk\contents.html
(can see also online for example at:
http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm)

-2: to know the additional GiD commands : see Help "GiD customization -TCL
AND TK EXTENSION
(e.g. the GiD_Info Coordinates command )

-3: some GiD tutorials: http://www.gidhome.com/support/tutorials
e.g. have a look to the chapters 8 and 9 of the GiD Course 2004

There is a lot of information and tutorials about Tcl/Tk on the web, e.g.
follow this link: http://www.tcl.tk/doc

Enrique Escolano

----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Sunday, March 18, 2012 7:05 PM
Subject: Re: [GiDlist] Set Materials


Hello,

Thanks for the information. All the explanation I found about the tcl
command was a two line explanation without any examples, and I could
not figure out how the GiD_Info Coordinates command works to modify my
tcl procedure. I tried a few syntaxes but they did not work. Do you
have any examples of this I can study to find out how to use it?

Thank You,
Arash

On Thu, Mar 15, 2012 at 4:25 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
Password Alert! This message may contain a request for your password.
NEVER SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For questions
about this alert, please contact the IT HelpDesk at 405-744-4357 or email
helpdesk at okstate.edu.
----------------------------------------------------------------------
Yes, in the tcl procedure you can ask GiD for the information you want,
and
you could format it as you want.
the string returned by the tcl procedure invoked from the .bas file is
directly printed to the output file (in TCL could use \n for a carriage
return, like in C++)
I left to youthe thask of modify the Tcl procedure.
To know the GiD-Tcl command to ask the information you want have a look to
GiD help (about TCL/TK extension-Control funcions-Info function
for example in your GiD 9.0.2 could use the command “GiD_Info Coordinates”
(find its syntax in the help), with last GiD versions there are more
GiD-Tcl
commands
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, March 12, 2012 6:21 PM
Subject: Re: [GiDlist] Set Materials

Hello,
Thank You for the problem type. It works on my system as well. It
lists the node numbers. Is there a way to add the nodal coordinates to
the node numbers as well? Like at each row, having a node number and
its coordinates, and having the next node number in the next row?
Best Regards,
Arash
On Tue, Mar 6, 2012 at 6:14 AM, Enrique Escolano escolano at cimne.upc.edu
wrote:
Password Alert! This message may contain a request for your password.
NEVER SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For
questions
about this alert, please contact the IT HelpDesk at 405-744-4357 or
email
helpdesk at okstate.edu.
----------------------------------------------------------------------
I have tested with GiD 10.0.9 and it works well (write all nodes, not
only
one)
I attach a very simple problemtype, with a .tcl file with the procedure
and
a .bas template that use it to write nodes of quadrilaterals. Uncompress
it
in your \problemetypes folder
and use it with an example that have some quadrilateral

----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, March 05, 2012 10:40 PM
Subject: Re: [GiDlist] Set Materials

Thank You for the update,
Is this new code (with the sublist being used instead of array) still
supposed to write the nodes? I tried it and it gave me just one single
number instead of the list of the nodes.
Thank You
On Thu, Mar 1, 2012 at 4:02 AM, Enrique Escolano
escolano at cimne.upc.edu
wrote:
Password Alert! This message may contain a request for your password.
NEVER
SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For questions
about
this alert, please contact the IT HelpDesk at 405-744-4357 or email
helpdesk at okstate.edu.


No, the password of versions 10.x is different of the passwords of
version
9.x. Could try GiD 10.x with a trial one month password
You can restrict the use of GiD-Tcl commands to the ones available on
GiD
9.0.2 (see Help-Customization-TclTk extension)
in this version you can’t use the -array flag of the command
GiD_Info Mesh Elements $element_type -array
but for example could use
GiD_Info Mesh Elements $element_type -sublist
this is the procedure modified to work also with your version:
proc Example_GetNodesOfElementType { element_type } {
set nodes

  • __ foreach item [GiD_Info Mesh Elements $element_type -sublist] {
    lappend nodes {*}[lrange $item 1 end-1]
    }
    set nodes [lsort -integer -unique $nodes]
    return $nodes
    }
    ----- Original Message -----
    From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
    To: gidlist at listas.cimne.upc.edu
    Sent: Wednesday, February 29, 2012 9:55 PM
    Subject: Re: [GiDlist] Set Materials
    Will I be able to use the version 10.2.1.d with my same software key?

On Tue, Feb 28, 2012 at 3:47 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
The problem is that your GiD version 9.0.2 is old, and the command
GiD_Info
Mesh of this versions don’t support the syntax -array I’ve used.
Download the last GiD developer version 10.2.1.d from our web
_http://www.gidhome.com/download/developer-versions_

----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 27, 2012 11:12 PM
Subject: Re: [GiDlist] Set Materials

Hello,
I use the exact same problem type that you emailed me, but still, I
get the error:
Error in base file C:/Program Files/GiD/GiD
9.0.2/problemtypes/FLODEF
V11.gid/FLODEF V11-z.bas at line number 2: Error in TCL expression:
'info Mesh Elements Elemtype ?first? ?last? ?-sublist? with
first,last0’
Do you know what the reason might be for this error?
Thank You,
Arash
On Tue, Feb 21, 2012 at 5:06 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
I attach a simple problemtype that works well

----- Original Message ----- From: “Farzam-Student,STW, Arash”
farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 20, 2012 7:58 PM
Subject: Re: [GiDlist] Set Materials

Yes, actually I have named it the same. I just wrote problem type
in
the email for avoiding confusion. But still, I get the same error.
Thanks,
Arash
On Mon, Feb 20, 2012 at 12:35 PM, Enrique Escolano
escolano at cimne.upc.edu wrote:
In order to be automatically sourced by GiD, the name of the tcl
file
must
be "FLODEF V11.tcl "
(the same as the problemtype and .tcl extension)
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 20, 2012 7:08 PM
Subject: Re: [GiDlist] Set Materials

Hello,
I made a .tcl file in my problem type containing:
proc Example_GetNodesOfElementType { element_type } {
set nodes

  • __ foreach item [lindex [lindex [GiD_Info Mesh Elements $element_type
    -array] 0] 2] {
    lappend nodes {*}$item
    }
    set nodes [lsort -integer -unique $nodes]
    return $nodes
    }
    and in my .bas file,
    I have written
    *tcl(Example_GetNodesOfElementType Hexahedra)
    *NodesNum *NodesCoord
    to get the nodal coordinates all hexahedra elements. It is not
    working
    and it gives the error:
    Error in base file C:/Program Files/GiD/GiD
    9.0.2/problemtypes/FLODEF
    V11.gid/FLODEF V11-post.bas at line number 3: Error in TCL
    expression:
    ‘invalid command name “Example_GetNodesOfElement_Type”’
    I would be happy to have your comment.
    Thank You,
    Arash Farzam
    On Tue, Feb 14, 2012 at 4:22 AM, Enrique Escolano
    escolano at cimne.upc.edu wrote:
    No, you can’t do a loop on the nodes of a type of elements with
    simple
    .bas
    commands.
    you can do the loop on the elements of a type, and inside write
    all
    its
    nodes, but then you will obtain the list of nodes of this kind of
    element,
    but with repetitions.
    to do this kind of special thinks you must go to Tcl scripting
    level.
    You
    can define a tcl procedure (inside a problemtype.tcl file it is
    automatically sourced) that
    return what you want (the list of nodes of a type of element
    unrepeated)
    You can invoke this Tcl procedure from the .bas file, with a
    *tcl(your_procedure) command, then the value returned by the
    procedure
    is
    directly printed in the output file.
    This is an example of the procedure you need to write in your
    problemtype.tcl file
    proc Example_GetNodesOfElementType { element_type } {
    set nodes
    • __ foreach item [lindex [lindex [GiD_Info Mesh Elements
      $element_type
      -array] 0] 2] {
      lappend nodes {*}$item
      }
      set nodes [lsort -integer -unique $nodes]
      return $nodes
      }
      GiD_Info Mesh is a special GiD-Tcl command (you can see the its
      syntax
      at
      GiD Help (GiD Customization - Tcl/Tk extension)
      the rest is Tcl standard scripting language (can see
      documentation
      on
      Internet, and also in the help of Ramdebugger that is our Tcl/Tk
      editor
      and
      debugger), could open RamDebugger from the menu
      Data-Problemtype-Debugger…
      and in the .bas file you must write something like this:
      Hexahedra nodes:
      *tcl(Example_GetNodesOfElementType Hexahedra)
      Quadrilateral nodes:
      *tcl(Example_GetNodesOfElementType Quadrilateral)
      Note that I prefixed the Tcl procedure with ‘Example’, to avoid
      conflicts
      with other possible Tcl procedure that could use the same name
      GetNodesOfElementType
      I recommend you to use a prefix or namespace related with the
      name
      of
      your
      problemtype.

Note: you can obtain multiple .dat output files, writting
multiple
.bas
templates. a increasing number if added to the name of each .dat
file
(and
templates are evaluated sorted alphabetically by its name)
Regards
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Tuesday, February 14, 2012 12:45 AM
Subject: Re: [GiDlist] Set Materials
Thank You very much,
I have another qustion. I have two types of elements, hexahedron
and
rectangular. Can I set element type for each one and loop the
nodes
of
each one? I want to have all the nodes of hexahedron elements
only
in
one file and all the nodes of the rectangular elements only in
another
file.
Best Regards,
Arash
On Wed, Feb 1, 2012 at 4:37 AM, Enrique Escolano
escolano at cimne.upc.edu
wrote:
You can do two loops, and inside take in account only the kind
of
material
you want
And you can have in the material a hidden field, named for
example
‘class’,
to identify its category
MATERIAL:xxx
Question:class
Value:soil
State:hidden

END MATERIAL
*loop materials
*if(strcmp(Matprop(class),“soil”)==0)
write its properties
*endif
*end materials
*loop materials
*if(strcmp(Matprop(class),“concrete”)==0)
write its properties
*endif
*end materials
----- Original Message -----
From: “Farzam-Student,STW, Arash”
farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Tuesday, January 31, 2012 10:05 PM
Subject: [GiDlist] Set Materials

Hello,
I have two kinds of materials in my code: soil materials and
concrete
materials. Is there a way to ask GiD to loop only soil
materials
at
one stage and loop concrete materials at another time in the
.bas
file
instead of having the command Loop materials which will cover
all
soils and concretes? Can I use the set command to select only
the
soil
/ concrete materials?
Thank You,
Arash


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


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

Hi,
I am modifying the file according to the website and write
foreach item [GiD_Info Coordinates node_id [geometry|mesh]
$element_type -sublist] {

but it gives me the error
‘invalid command name “geometry|mesh”’
It did not work without the geometry|mesh either.

Sincerely,
Arash

On Mon, Mar 19, 2012 at 5:58 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
Password Alert! This message may contain a request for your password. NEVER SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For questions about this alert, please contact the IT HelpDesk at 405-744-4357 or email helpdesk at okstate.edu.
----------------------------------------------------------------------
You can use the the GiD_Info Coordinates command inside the
Example_GetNodesOfElementType procedure
to get the coordinates you want, and format this data as you want to return
the wanted string.
If you invoke a tcl command from our .bas template wiht *tcl then the value
returned by the procedure is the text that is printed to the output file.
Some information links:
-1: to know the syntax of the Tcl standard commands:
see html help included with ramdebugger (a Tcl/Tk editor and debugger
included with GiD) in the folder
…\scripts\ramdebugger\help\02TclTk\contents.html
(can see also online for example at:
http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm)
-2: to know the additional GiD commands : see Help "GiD customization -TCL
AND TK EXTENSION
(e.g. the GiD_Info Coordinates command )
_-3: some GiD tutorials: http://www.gidhome.com/support/tutorials_
e.g. have a look to the chapters 8 and 9 of the GiD Course 2004
There is a lot of information and tutorials about Tcl/Tk on the web, e.g.
_follow this link: http://www.tcl.tk/doc_
Enrique Escolano
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Sunday, March 18, 2012 7:05 PM
Subject: Re: [GiDlist] Set Materials

Hello,
Thanks for the information. All the explanation I found about the tcl
command was a two line explanation without any examples, and I could
not figure out how the GiD_Info Coordinates command works to modify my
tcl procedure. I tried a few syntaxes but they did not work. Do you
have any examples of this I can study to find out how to use it?
Thank You,
Arash
On Thu, Mar 15, 2012 at 4:25 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
Password Alert! This message may contain a request for your password.
NEVER SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For questions
about this alert, please contact the IT HelpDesk at 405-744-4357 or email
helpdesk at okstate.edu.
----------------------------------------------------------------------
Yes, in the tcl procedure you can ask GiD for the information you want,
and
you could format it as you want.
the string returned by the tcl procedure invoked from the .bas file is
directly printed to the output file (in TCL could use \n for a carriage
return, like in C++)
I left to youthe thask of modify the Tcl procedure.
To know the GiD-Tcl command to ask the information you want have a look to
GiD help (about TCL/TK extension-Control funcions-Info function
for example in your GiD 9.0.2 could use the command “GiD_Info Coordinates”
(find its syntax in the help), with last GiD versions there are more
GiD-Tcl
commands
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, March 12, 2012 6:21 PM
Subject: Re: [GiDlist] Set Materials

Hello,
Thank You for the problem type. It works on my system as well. It
lists the node numbers. Is there a way to add the nodal coordinates to
the node numbers as well? Like at each row, having a node number and
its coordinates, and having the next node number in the next row?
Best Regards,
Arash
On Tue, Mar 6, 2012 at 6:14 AM, Enrique Escolano escolano at cimne.upc.edu
wrote:
Password Alert! This message may contain a request for your password.
NEVER SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For
questions
about this alert, please contact the IT HelpDesk at 405-744-4357 or
email
helpdesk at okstate.edu.
----------------------------------------------------------------------
I have tested with GiD 10.0.9 and it works well (write all nodes, not
only
one)
I attach a very simple problemtype, with a .tcl file with the procedure
and
a .bas template that use it to write nodes of quadrilaterals. Uncompress
it
in your \problemetypes folder
and use it with an example that have some quadrilateral

----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, March 05, 2012 10:40 PM
Subject: Re: [GiDlist] Set Materials

Thank You for the update,
Is this new code (with the sublist being used instead of array) still
supposed to write the nodes? I tried it and it gave me just one single
number instead of the list of the nodes.
Thank You
On Thu, Mar 1, 2012 at 4:02 AM, Enrique Escolano
escolano at cimne.upc.edu
wrote:
Password Alert! This message may contain a request for your password.
NEVER
SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For questions
about
this alert, please contact the IT HelpDesk at 405-744-4357 or email
helpdesk at okstate.edu.


No, the password of versions 10.x is different of the passwords of
version
9.x. Could try GiD 10.x with a trial one month password
You can restrict the use of GiD-Tcl commands to the ones available on
GiD
9.0.2 (see Help-Customization-TclTk extension)
in this version you can’t use the -array flag of the command
GiD_Info Mesh Elements $element_type -array
but for example could use
GiD_Info Mesh Elements $element_type -sublist
this is the procedure modified to work also with your version:
proc Example_GetNodesOfElementType { element_type } {
set nodes

  • __ foreach item [GiD_Info Mesh Elements $element_type -sublist] {
    lappend nodes {*}[lrange $item 1 end-1]
    }
    set nodes [lsort -integer -unique $nodes]
    return $nodes
    }
    ----- Original Message -----
    From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
    To: gidlist at listas.cimne.upc.edu
    Sent: Wednesday, February 29, 2012 9:55 PM
    Subject: Re: [GiDlist] Set Materials
    Will I be able to use the version 10.2.1.d with my same software key?

On Tue, Feb 28, 2012 at 3:47 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
The problem is that your GiD version 9.0.2 is old, and the command
GiD_Info
Mesh of this versions don’t support the syntax -array I’ve used.
Download the last GiD developer version 10.2.1.d from our web
_http://www.gidhome.com/download/developer-versions_

----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 27, 2012 11:12 PM
Subject: Re: [GiDlist] Set Materials

Hello,
I use the exact same problem type that you emailed me, but still, I
get the error:
Error in base file C:/Program Files/GiD/GiD
9.0.2/problemtypes/FLODEF
V11.gid/FLODEF V11-z.bas at line number 2: Error in TCL expression:
'info Mesh Elements Elemtype ?first? ?last? ?-sublist? with
first,last0’
Do you know what the reason might be for this error?
Thank You,
Arash
On Tue, Feb 21, 2012 at 5:06 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
I attach a simple problemtype that works well

----- Original Message ----- From: “Farzam-Student,STW, Arash”
farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 20, 2012 7:58 PM
Subject: Re: [GiDlist] Set Materials

Yes, actually I have named it the same. I just wrote problem type
in
the email for avoiding confusion. But still, I get the same error.
Thanks,
Arash
On Mon, Feb 20, 2012 at 12:35 PM, Enrique Escolano
escolano at cimne.upc.edu wrote:
In order to be automatically sourced by GiD, the name of the tcl
file
must
be "FLODEF V11.tcl "
(the same as the problemtype and .tcl extension)
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 20, 2012 7:08 PM
Subject: Re: [GiDlist] Set Materials

Hello,
I made a .tcl file in my problem type containing:
proc Example_GetNodesOfElementType { element_type } {
set nodes

  • __ foreach item [lindex [lindex [GiD_Info Mesh Elements $element_type
    -array] 0] 2] {
    lappend nodes {*}$item
    }
    set nodes [lsort -integer -unique $nodes]
    return $nodes
    }
    and in my .bas file,
    I have written
    *tcl(Example_GetNodesOfElementType Hexahedra)
    *NodesNum *NodesCoord
    to get the nodal coordinates all hexahedra elements. It is not
    working
    and it gives the error:
    Error in base file C:/Program Files/GiD/GiD
    9.0.2/problemtypes/FLODEF
    V11.gid/FLODEF V11-post.bas at line number 3: Error in TCL
    expression:
    ‘invalid command name “Example_GetNodesOfElement_Type”’
    I would be happy to have your comment.
    Thank You,
    Arash Farzam
    On Tue, Feb 14, 2012 at 4:22 AM, Enrique Escolano
    escolano at cimne.upc.edu wrote:
    No, you can’t do a loop on the nodes of a type of elements with
    simple
    .bas
    commands.
    you can do the loop on the elements of a type, and inside write
    all
    its
    nodes, but then you will obtain the list of nodes of this kind of
    element,
    but with repetitions.
    to do this kind of special thinks you must go to Tcl scripting
    level.
    You
    can define a tcl procedure (inside a problemtype.tcl file it is
    automatically sourced) that
    return what you want (the list of nodes of a type of element
    unrepeated)
    You can invoke this Tcl procedure from the .bas file, with a
    *tcl(your_procedure) command, then the value returned by the
    procedure
    is
    directly printed in the output file.
    This is an example of the procedure you need to write in your
    problemtype.tcl file
    proc Example_GetNodesOfElementType { element_type } {
    set nodes
    • __ foreach item [lindex [lindex [GiD_Info Mesh Elements
      $element_type
      -array] 0] 2] {
      lappend nodes {*}$item
      }
      set nodes [lsort -integer -unique $nodes]
      return $nodes
      }
      GiD_Info Mesh is a special GiD-Tcl command (you can see the its
      syntax
      at
      GiD Help (GiD Customization - Tcl/Tk extension)
      the rest is Tcl standard scripting language (can see
      documentation
      on
      Internet, and also in the help of Ramdebugger that is our Tcl/Tk
      editor
      and
      debugger), could open RamDebugger from the menu
      Data-Problemtype-Debugger…
      and in the .bas file you must write something like this:
      Hexahedra nodes:
      *tcl(Example_GetNodesOfElementType Hexahedra)
      Quadrilateral nodes:
      *tcl(Example_GetNodesOfElementType Quadrilateral)
      Note that I prefixed the Tcl procedure with ‘Example’, to avoid
      conflicts
      with other possible Tcl procedure that could use the same name
      GetNodesOfElementType
      I recommend you to use a prefix or namespace related with the
      name
      of
      your
      problemtype.

Note: you can obtain multiple .dat output files, writting
multiple
.bas
templates. a increasing number if added to the name of each .dat
file
(and
templates are evaluated sorted alphabetically by its name)
Regards
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Tuesday, February 14, 2012 12:45 AM
Subject: Re: [GiDlist] Set Materials
Thank You very much,
I have another qustion. I have two types of elements, hexahedron
and
rectangular. Can I set element type for each one and loop the
nodes
of
each one? I want to have all the nodes of hexahedron elements
only
in
one file and all the nodes of the rectangular elements only in
another
file.
Best Regards,
Arash
On Wed, Feb 1, 2012 at 4:37 AM, Enrique Escolano
escolano at cimne.upc.edu
wrote:
You can do two loops, and inside take in account only the kind
of
material
you want
And you can have in the material a hidden field, named for
example
‘class’,
to identify its category
MATERIAL:xxx
Question:class
Value:soil
State:hidden

END MATERIAL
*loop materials
*if(strcmp(Matprop(class),“soil”)==0)
write its properties
*endif
*end materials
*loop materials
*if(strcmp(Matprop(class),“concrete”)==0)
write its properties
*endif
*end materials
----- Original Message -----
From: “Farzam-Student,STW, Arash”
farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Tuesday, January 31, 2012 10:05 PM
Subject: [GiDlist] Set Materials

Hello,
I have two kinds of materials in my code: soil materials and
concrete
materials. Is there a way to ask GiD to loop only soil
materials
at
one stage and loop concrete materials at another time in the
.bas
file
instead of having the command Loop materials which will cover
all
soils and concretes? Can I use the set command to select only
the
soil
/ concrete materials?
Thank You,
Arash


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_

The GiD Help said this about GiD_Info coordinates syntax:
GiD_Info Coordinates point_id|node_id [geometry|mesh]
This command returns the coordinates (x,y,z) of a given point or node.

a|b mean a “or” b
instead point_id you must use the ‘id number’ of the point or node
and you could also specity the word ‘geometry’ or ‘mesh’ to let know GiD if do you want the coordinates of a point or a node

To interactivelly test GiD-tcl commands I recommend you to do it in the lower command line, writting
-np-
(that mean “no process” followed of the Tcl command you want to evaluate)
you can use our tcl procedure “WarWinText” to show a message on a non-blocking messages window"

e.g. to know the coordinates of the geometric point number 4 write
-np- WarnWinText [GiD_Info Coordinates 4 geometry]

then you will obtain something like this:
{36.338099999999997 -20.782900000000001 -8.9378899999999994}

There are several Tcl bugs in your command:
foreach item [GiD_Info Coordinates node_id [geometry|mesh]
$element_type -sublist] {

1- is a Tcl command to evaluate a tcl expression. [geometry|mesh] will try to evaluate geometry|mesh as a tcl command that doesn’t exists
2- the carriage return is not valid here, it will raise another Tcl error that the “[” of the first line is not closed (it’s closed on the next line)
3-GiD_Info Coordinates don’t expect any parameter like "$element_type -sublist "
4-foreach item [GiD_Info Coordinates 4 geometry]
will do a loop on each list item of the GiD_Info Coordinates command, that returns a single list item {x y z} , then it will be a single iteration and $item will have the value “36.338099999999997 -20.782900000000001 -8.9378899999999994”

you can see a Tcl tutorial for example here http://www.tcl.tk/man/tcl8.5/tutorial/tcltutorial.html

Enrique

----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, March 19, 2012 11:22 PM
Subject: Re: [GiDlist] Set Materials


Hi,
I am modifying the file according to the website and write
foreach item [GiD_Info Coordinates node_id [geometry|mesh]
$element_type -sublist] {

but it gives me the error
‘invalid command name “geometry|mesh”’
It did not work without the geometry|mesh either.

Sincerely,
Arash

On Mon, Mar 19, 2012 at 5:58 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
Password Alert! This message may contain a request for your password. NEVER SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For questions about this alert, please contact the IT HelpDesk at 405-744-4357 or email helpdesk at okstate.edu.
----------------------------------------------------------------------
You can use the the GiD_Info Coordinates command inside the
Example_GetNodesOfElementType procedure
to get the coordinates you want, and format this data as you want to return
the wanted string.
If you invoke a tcl command from our .bas template wiht *tcl then the value
returned by the procedure is the text that is printed to the output file.
Some information links:
-1: to know the syntax of the Tcl standard commands:
see html help included with ramdebugger (a Tcl/Tk editor and debugger
included with GiD) in the folder
…\scripts\ramdebugger\help\02TclTk\contents.html
(can see also online for example at:
http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm)
-2: to know the additional GiD commands : see Help "GiD customization -TCL
AND TK EXTENSION
(e.g. the GiD_Info Coordinates command )
_-3: some GiD tutorials: http://www.gidhome.com/support/tutorials_
e.g. have a look to the chapters 8 and 9 of the GiD Course 2004
There is a lot of information and tutorials about Tcl/Tk on the web, e.g.
_follow this link: http://www.tcl.tk/doc_
Enrique Escolano
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Sunday, March 18, 2012 7:05 PM
Subject: Re: [GiDlist] Set Materials

Hello,
Thanks for the information. All the explanation I found about the tcl
command was a two line explanation without any examples, and I could
not figure out how the GiD_Info Coordinates command works to modify my
tcl procedure. I tried a few syntaxes but they did not work. Do you
have any examples of this I can study to find out how to use it?
Thank You,
Arash
On Thu, Mar 15, 2012 at 4:25 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
Password Alert! This message may contain a request for your password.
NEVER SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For questions
about this alert, please contact the IT HelpDesk at 405-744-4357 or email
helpdesk at okstate.edu.
----------------------------------------------------------------------
Yes, in the tcl procedure you can ask GiD for the information you want,
and
you could format it as you want.
the string returned by the tcl procedure invoked from the .bas file is
directly printed to the output file (in TCL could use \n for a carriage
return, like in C++)
I left to youthe thask of modify the Tcl procedure.
To know the GiD-Tcl command to ask the information you want have a look to
GiD help (about TCL/TK extension-Control funcions-Info function
for example in your GiD 9.0.2 could use the command “GiD_Info Coordinates”
(find its syntax in the help), with last GiD versions there are more
GiD-Tcl
commands
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, March 12, 2012 6:21 PM
Subject: Re: [GiDlist] Set Materials

Hello,
Thank You for the problem type. It works on my system as well. It
lists the node numbers. Is there a way to add the nodal coordinates to
the node numbers as well? Like at each row, having a node number and
its coordinates, and having the next node number in the next row?
Best Regards,
Arash
On Tue, Mar 6, 2012 at 6:14 AM, Enrique Escolano escolano at cimne.upc.edu
wrote:
Password Alert! This message may contain a request for your password.
NEVER SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For
questions
about this alert, please contact the IT HelpDesk at 405-744-4357 or
email
helpdesk at okstate.edu.
----------------------------------------------------------------------
I have tested with GiD 10.0.9 and it works well (write all nodes, not
only
one)
I attach a very simple problemtype, with a .tcl file with the procedure
and
a .bas template that use it to write nodes of quadrilaterals. Uncompress
it
in your \problemetypes folder
and use it with an example that have some quadrilateral

----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, March 05, 2012 10:40 PM
Subject: Re: [GiDlist] Set Materials

Thank You for the update,
Is this new code (with the sublist being used instead of array) still
supposed to write the nodes? I tried it and it gave me just one single
number instead of the list of the nodes.
Thank You
On Thu, Mar 1, 2012 at 4:02 AM, Enrique Escolano
escolano at cimne.upc.edu
wrote:
Password Alert! This message may contain a request for your password.
NEVER
SEND OR RESPOND TO E-MAIL REQUESTS FOR YOUR PASSWORD. For questions
about
this alert, please contact the IT HelpDesk at 405-744-4357 or email
helpdesk at okstate.edu.


No, the password of versions 10.x is different of the passwords of
version
9.x. Could try GiD 10.x with a trial one month password
You can restrict the use of GiD-Tcl commands to the ones available on
GiD
9.0.2 (see Help-Customization-TclTk extension)
in this version you can’t use the -array flag of the command
GiD_Info Mesh Elements $element_type -array
but for example could use
GiD_Info Mesh Elements $element_type -sublist
this is the procedure modified to work also with your version:
proc Example_GetNodesOfElementType { element_type } {
set nodes

  • __ foreach item [GiD_Info Mesh Elements $element_type -sublist] {
    lappend nodes {*}[lrange $item 1 end-1]
    }
    set nodes [lsort -integer -unique $nodes]
    return $nodes
    }
    ----- Original Message -----
    From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
    To: gidlist at listas.cimne.upc.edu
    Sent: Wednesday, February 29, 2012 9:55 PM
    Subject: Re: [GiDlist] Set Materials
    Will I be able to use the version 10.2.1.d with my same software key?

On Tue, Feb 28, 2012 at 3:47 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
The problem is that your GiD version 9.0.2 is old, and the command
GiD_Info
Mesh of this versions don’t support the syntax -array I’ve used.
Download the last GiD developer version 10.2.1.d from our web
_http://www.gidhome.com/download/developer-versions_

----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 27, 2012 11:12 PM
Subject: Re: [GiDlist] Set Materials

Hello,
I use the exact same problem type that you emailed me, but still, I
get the error:
Error in base file C:/Program Files/GiD/GiD
9.0.2/problemtypes/FLODEF
V11.gid/FLODEF V11-z.bas at line number 2: Error in TCL expression:
'info Mesh Elements Elemtype ?first? ?last? ?-sublist? with
first,last0’
Do you know what the reason might be for this error?
Thank You,
Arash
On Tue, Feb 21, 2012 at 5:06 AM, Enrique Escolano
escolano at cimne.upc.edu wrote:
I attach a simple problemtype that works well

----- Original Message ----- From: “Farzam-Student,STW, Arash”
farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 20, 2012 7:58 PM
Subject: Re: [GiDlist] Set Materials

Yes, actually I have named it the same. I just wrote problem type
in
the email for avoiding confusion. But still, I get the same error.
Thanks,
Arash
On Mon, Feb 20, 2012 at 12:35 PM, Enrique Escolano
escolano at cimne.upc.edu wrote:
In order to be automatically sourced by GiD, the name of the tcl
file
must
be "FLODEF V11.tcl "
(the same as the problemtype and .tcl extension)
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Monday, February 20, 2012 7:08 PM
Subject: Re: [GiDlist] Set Materials

Hello,
I made a .tcl file in my problem type containing:
proc Example_GetNodesOfElementType { element_type } {
set nodes

  • __ foreach item [lindex [lindex [GiD_Info Mesh Elements $element_type
    -array] 0] 2] {
    lappend nodes {*}$item
    }
    set nodes [lsort -integer -unique $nodes]
    return $nodes
    }
    and in my .bas file,
    I have written
    *tcl(Example_GetNodesOfElementType Hexahedra)
    *NodesNum *NodesCoord
    to get the nodal coordinates all hexahedra elements. It is not
    working
    and it gives the error:
    Error in base file C:/Program Files/GiD/GiD
    9.0.2/problemtypes/FLODEF
    V11.gid/FLODEF V11-post.bas at line number 3: Error in TCL
    expression:
    ‘invalid command name “Example_GetNodesOfElement_Type”’
    I would be happy to have your comment.
    Thank You,
    Arash Farzam
    On Tue, Feb 14, 2012 at 4:22 AM, Enrique Escolano
    escolano at cimne.upc.edu wrote:
    No, you can’t do a loop on the nodes of a type of elements with
    simple
    .bas
    commands.
    you can do the loop on the elements of a type, and inside write
    all
    its
    nodes, but then you will obtain the list of nodes of this kind of
    element,
    but with repetitions.
    to do this kind of special thinks you must go to Tcl scripting
    level.
    You
    can define a tcl procedure (inside a problemtype.tcl file it is
    automatically sourced) that
    return what you want (the list of nodes of a type of element
    unrepeated)
    You can invoke this Tcl procedure from the .bas file, with a
    *tcl(your_procedure) command, then the value returned by the
    procedure
    is
    directly printed in the output file.
    This is an example of the procedure you need to write in your
    problemtype.tcl file
    proc Example_GetNodesOfElementType { element_type } {
    set nodes
    • __ foreach item [lindex [lindex [GiD_Info Mesh Elements
      $element_type
      -array] 0] 2] {
      lappend nodes {*}$item
      }
      set nodes [lsort -integer -unique $nodes]
      return $nodes
      }
      GiD_Info Mesh is a special GiD-Tcl command (you can see the its
      syntax
      at
      GiD Help (GiD Customization - Tcl/Tk extension)
      the rest is Tcl standard scripting language (can see
      documentation
      on
      Internet, and also in the help of Ramdebugger that is our Tcl/Tk
      editor
      and
      debugger), could open RamDebugger from the menu
      Data-Problemtype-Debugger…
      and in the .bas file you must write something like this:
      Hexahedra nodes:
      *tcl(Example_GetNodesOfElementType Hexahedra)
      Quadrilateral nodes:
      *tcl(Example_GetNodesOfElementType Quadrilateral)
      Note that I prefixed the Tcl procedure with ‘Example’, to avoid
      conflicts
      with other possible Tcl procedure that could use the same name
      GetNodesOfElementType
      I recommend you to use a prefix or namespace related with the
      name
      of
      your
      problemtype.

Note: you can obtain multiple .dat output files, writting
multiple
.bas
templates. a increasing number if added to the name of each .dat
file
(and
templates are evaluated sorted alphabetically by its name)
Regards
Enrique
----- Original Message -----
From: “Farzam-Student,STW, Arash” farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Tuesday, February 14, 2012 12:45 AM
Subject: Re: [GiDlist] Set Materials
Thank You very much,
I have another qustion. I have two types of elements, hexahedron
and
rectangular. Can I set element type for each one and loop the
nodes
of
each one? I want to have all the nodes of hexahedron elements
only
in
one file and all the nodes of the rectangular elements only in
another
file.
Best Regards,
Arash
On Wed, Feb 1, 2012 at 4:37 AM, Enrique Escolano
escolano at cimne.upc.edu
wrote:
You can do two loops, and inside take in account only the kind
of
material
you want
And you can have in the material a hidden field, named for
example
‘class’,
to identify its category
MATERIAL:xxx
Question:class
Value:soil
State:hidden

END MATERIAL
*loop materials
*if(strcmp(Matprop(class),“soil”)==0)
write its properties
*endif
*end materials
*loop materials
*if(strcmp(Matprop(class),“concrete”)==0)
write its properties
*endif
*end materials
----- Original Message -----
From: “Farzam-Student,STW, Arash”
farzam at ostatemail.okstate.edu
To: gidlist at listas.cimne.upc.edu
Sent: Tuesday, January 31, 2012 10:05 PM
Subject: [GiDlist] Set Materials

Hello,
I have two kinds of materials in my code: soil materials and
concrete
materials. Is there a way to ask GiD to loop only soil
materials
at
one stage and loop concrete materials at another time in the
.bas
file
instead of having the command Loop materials which will cover
all
soils and concretes? Can I use the set command to select only
the
soil
/ concrete materials?
Thank You,
Arash


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_


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/20120319/312bb4f5/attachment-0001.htm