[GiDlist] Repeat in reading condition in Tcl

Moderator: GiD Team

Post Reply
Andrea Calaon

[GiDlist] Repeat in reading condition in Tcl

Post by Andrea Calaon »

Hi everyone,
I'm using the Tcl command recommended by Enrique in a recent mail:

set res [.central.s info conditions Contour_Line mesh]

to get the list of elements which have the condition:

BOOK: Automatic
NUMBER: 14 CONDITION: Contour_Line
CONDTYPE: over lines
CONDMESHTYPE: over face elems
QUESTION: ForSpectralElements
VALUE: 0
STATE: HIDDEN
END CONDITION

assigned.
I would like the list corresponding to the elements listed by a .bas like this:

*set elems(All)
*Set cond Contour_Line *elems *CanRepeat
*set elems(triangle)
*add elems(quadrilateral)
*loop elems *OnlyInCond
*ElemsNum *localnodes
*end

But when I look at the list directly in GiD using the very useful command line:

-np- WarnWinText [.central.s info conditions Contour_Line mesh]

I get a list in which some elements that should be repeated two times appears one time only or not at
all.
The strange thing is that SOME elements surrounded by two lines with the condition Contour_Line
applied appear in the list correctly twice. Am I missing something in the Tcl command to have the effect
of "*CanRepeat"?

Thanks for any help

Kind Regards

P.S. I'm no receiving the mail of the GiD mail list since February 13th. Is it possible to have the mail
sent as before?

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
Enrique Escolano

[GiDlist] Repeat in reading condition in Tcl

Post by Enrique Escolano »

Can you send a sample (so small as possible) with this problem?

Enrique Escolano

----- Original Message -----
From: "Andrea Calaon" andrea at beasy.com
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, February 20, 2004 5:45 PM
Subject: [GiDlist] Repeat in reading condition in Tcl


Hi everyone,
I'm using the Tcl command recommended by Enrique in a recent mail:

set res [.central.s info conditions Contour_Line mesh]

to get the list of elements which have the condition:

BOOK: Automatic
NUMBER: 14 CONDITION: Contour_Line
CONDTYPE: over lines
CONDMESHTYPE: over face elems
QUESTION: ForSpectralElements
VALUE: 0
STATE: HIDDEN
END CONDITION

assigned.
I would like the list corresponding to the elements listed by a .bas like
this:

*set elems(All)
*Set cond Contour_Line *elems *CanRepeat
*set elems(triangle)
*add elems(quadrilateral)
*loop elems *OnlyInCond
*ElemsNum *localnodes
*end

But when I look at the list directly in GiD using the very useful command
line:

-np- WarnWinText [.central.s info conditions Contour_Line mesh]

I get a list in which some elements that should be repeated two times
appears one time only or not at
all.
The strange thing is that SOME elements surrounded by two lines with the
condition Contour_Line
applied appear in the list correctly twice. Am I missing something in the
Tcl command to have the effect
of "*CanRepeat"?

Thanks for any help

Kind Regards

P.S. I'm no receiving the mail of the GiD mail list since February 13th.
Is it possible to have the mail
sent as before?

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

_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

Post Reply