[GiDlist] Access to local coordinates in Tcl
Posted: Wed Feb 18, 2004 7:10 pm
Hello everyone,
I would like to have access to local coordinates in the Tcl
scripts. Is there any way to do it?
Short explanation.
I need to know the local coordinates of the nodes of 2D
elements which lay on the lines boundary of the surface
hosting the element (not the best explanation
). So first
I need to have the list of the 2D elements with one side
on the surface boundary, and then, for each one of those
elements, the set of local coordinates corresponding to
the nodes on the boundary side/s.
I could use a code similar to the following:
In the .cnd file:
NUMBER:
CONDITION: Line_BC
CONDTYPE: over Lines
CONDMESHTYPE: over face elems
State: Hidden
VALUE:
END CONDITION
In the .bas file:
*set elems(All)
*Set cond Line_BC *elems *CanRepeat
*set elems(triangle)
*add elems(quadrilateral)
*loop elems *OnlyInCond
*ElemsNum *localnodes
*end
and then read the file in Tcl, store the data and use them
inside the Tcl procedure. But it would be easier to do it
directly in Tcl.
Thanks for any suggestion
Best regards,
Andrea
P.S. Sorry for any error in the formatting of this message,
but the mail program I have to use is not doing what it
should ...
Andrea Calaon
Ashurst Lodge, Ashurst
Southampton, Hampshire
SO40 7AA, UK
Tel. office: +44 23 80 293 223
Fax office: +44 23 80 292 853
Mobile: +44 7766 488 225
E-mail: andrea at beasy.com
I would like to have access to local coordinates in the Tcl
scripts. Is there any way to do it?
Short explanation.
I need to know the local coordinates of the nodes of 2D
elements which lay on the lines boundary of the surface
hosting the element (not the best explanation
). So first
I need to have the list of the 2D elements with one side
on the surface boundary, and then, for each one of those
elements, the set of local coordinates corresponding to
the nodes on the boundary side/s.
I could use a code similar to the following:
In the .cnd file:
NUMBER:
CONDITION: Line_BC
CONDTYPE: over Lines
CONDMESHTYPE: over face elems
State: Hidden
VALUE:
END CONDITION
In the .bas file:
*set elems(All)
*Set cond Line_BC *elems *CanRepeat
*set elems(triangle)
*add elems(quadrilateral)
*loop elems *OnlyInCond
*ElemsNum *localnodes
*end
and then read the file in Tcl, store the data and use them
inside the Tcl procedure. But it would be easier to do it
directly in Tcl.
Thanks for any suggestion
Best regards,
Andrea
P.S. Sorry for any error in the formatting of this message,
but the mail program I have to use is not doing what it
should ...
Andrea Calaon
Ashurst Lodge, Ashurst
Southampton, Hampshire
SO40 7AA, UK
Tel. office: +44 23 80 293 223
Fax office: +44 23 80 292 853
Mobile: +44 7766 488 225
E-mail: andrea at beasy.com