Yes, you can use if statements of some condition field, but to use some
*cond(your_field) command you must before use *set cond xxx and do the loop
*onlyincond (that will loop only in the nodes with this condition applied)
e.g.
*set cond your_condition
*loop nodes *onlyincond
*if(cond(your_field,int)==1)
THE NODE *nodesnum HAS APPLIED A CONDITION your_condition with value
equal to 1
*endif
*end nodes
Note that inside the *if is not necessary the asterisk for *cond(), and in
this case I also specificied the ,int parameter to say that this field must
be considered as an integer
De: gidlist-bounces at listas.cimne.upc.edu
[mailto:gidlist-bounces at listas.cimne.upc.edu] En nombre de David R. José
Enviado el: martes, 4 de marzo de 2014 15:34
Para: gidlist at listas.cimne.upc.edu
Asunto: [GiDlist] Vectors and matrices
Dear Mr. Escolano, thanks for your reply.
I’ll look into tcl/tk programming.
In an unrelated issue: can an “if” statement be triggered by the existence
of a condition?
Say, for example, I loop around the nodes and if a node has a condition,
then the “if” is triggered.
Something like:
*loop nodes
*if ( “condition of node constraint exists on that node” )
…
*end nodes
Thanks in advance.
From: gidlist-request at listas.cimne.upc.edu
Subject: GiDlist Digest, Vol 44, Issue 1
To: gidlist at listas.cimne.upc.edu
Date: Tue, 4 Mar 2014 12:00:01 +0100
Send GiDlist mailing list submissions to
gidlist at listas.cimne.upc.edu
To subscribe or unsubscribe via the World Wide Web, visit
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_
or, via email, send a message with subject or body ‘help’ to
gidlist-request at listas.cimne.upc.edu
You can reach the person managing the list at
gidlist-owner at listas.cimne.upc.edu
When replying, please edit your Subject line so it is more specific
than “Re: Contents of GiDlist digest…”
Today’s Topics:
1. Vectors and matrices (David R. Jos?)
2. Re: Vectors and matrices (Enrique Escolano)
----------------------------------------------------------------------
Message: 1
Date: Mon, 3 Mar 2014 19:17:56 -0300
From: David R. Jos? c1b3rz at hotmail.com
Subject: [GiDlist] Vectors and matrices
To: “gidlist at listas.cimne.upc.edu” gidlist at listas.cimne.upc.edu
Message-ID: BAY169-W1072C4D572370CBB27AE242C48F0 at phx.gbl
Content-Type: text/plain; charset=“iso-8859-1”
Hello.Is there a way to deal with vectors and matrices to store and print
data when dealing with the .bas file?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed…
URL:
http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20140303/15818bde/
attachment.html
------------------------------
Message: 2
Date: Tue, 4 Mar 2014 11:40:04 +0100
From: “Enrique Escolano” escolano at cimne.upc.edu
Subject: Re: [GiDlist] Vectors and matrices
To: gidlist at listas.cimne.upc.edu
Message-ID: 00c001cf3796$1a69ff10$4f3dfd30$@cimne.upc.edu
Content-Type: text/plain; charset=“iso-8859-1”
No, the .bas language doesn?t support any kind of array.
To do complicated thinks you can invoke from the .bas file a Tcl command
*tcl(procedure_name). The value returned by the procedure is directly
printed to the output file.
Tcl/Tk is a full and powerful scripting language with all you can need
(also
arrays off course). You can find information about it in the GiD help, and
in Internet.
You can see the Tcl documentation for example from the RamDebugger Help
(Data-Problemtype-Debugger, or press F11 to open it)
This documentation (Html format) is locally stored at C:\Program
Files\GiD\GiD 11.1.8d\scripts\ramdebugger\help
Enrique Escolano
De: gidlist-bounces at listas.cimne.upc.edu
[mailto:gidlist-bounces at listas.cimne.upc.edu] En nombre de David R. Jos?
Enviado el: lunes, 3 de marzo de 2014 23:18
Para: gidlist at listas.cimne.upc.edu
Asunto: [GiDlist] Vectors and matrices
Hello.
Is there a way to deal with vectors and matrices to store and print data
when dealing with the .bas file?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed…
URL:
http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20140304/e2989d61/
attachment-0001.htm
------------------------------
GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_
End of GiDlist Digest, Vol 44, Issue 1
**************************************
-------------- next part --------------
An HTML attachment was scrubbed…
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20140304/d19ad4bd/attachment-0001.htm