[GiDlist] entities references

Moderator: GiD Team

Post Reply
Zoubir Khatir

[GiDlist] entities references

Post by Zoubir Khatir »

I am using GID for Boundary Element Analysis and
I tried to associate each mesh element of the boundary (surface elements) to
the defined volume. exemple : surface element number x belongs to the
volume number y...

I tried to use the example from Advanced course documentation A2-Problem
type details.doc,
see the chapter 5. "INSTRUCTION *tcl IN THE .bas FILE" for my own problem.


I create a projectname.tcl file :

proc InitGIDProject { dir } {
}
proc EndGIDProject {} {
}
proc NumVolumes { } {
set a [.central.s info list_entities Status]
regexp -nocase {number of volumes: ([0-9]+)} $a none num
return $num
}
proc WriteAllVolumesInfo { } {
return [.central.s info list_entities Volumes 1:[NumVolumes]]
}
proc WriteVolumeInfo { num } {
return [.central.s info list_entities Volumes $num]
}


a condition in the projectname.cnd file :

NUMBER: 1 CONDITION: Volume_Id
CONDTYPE: over surfaces
CONDMESHTYPE: over face elems
QUESTION: Num_Entity#FUNC#(NumEntity)
VALUE: 0
STATE: HIDDEN
END CONDITION


and instructions in the projectname.bas file :

*set cond Volume_Id *elems *CanRepeat
*loop elems *OnlyInCond
*elemsnum *elemsconec *Cond(Num_Entity,int)
*end elemsn


Can you tell me what is wrong... because it does not work !!!
Thank you for your help.



Zoubir Khatir,
Laboratoire des Technologies Nouvelles (LTN)

INRETS, 2. Av. Malleret-Joinville, 94114 Arcueil Cedex
Tel: (33).01.47.40.73.34 Fax:(33).01.45.47.56.06 mail: khatir at inrets.fr
web: www.inrets.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020315/6eb54235/attachment.htm
Enrique Escolano

[GiDlist] entities references

Post by Enrique Escolano »

1) You must apply the condition Volume_Id over the geometric entities (surfaces??) and remesh.

2) The condition is defined in projectname.cnd over surfaces, not over volumes, !!
the field #FUNC#(NumEntity) store the number of parent surface.

A triangle element is not created from a volume, it is created from a surface. (as it is the volume associated to a triangle of a common surface to two volumes? )

Only a tetrahedra or hexahedra can be associated to a volume.

Enrique Escolano
----- Original Message -----
From: Zoubir Khatir
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, March 15, 2002 6:56 PM
Subject: Re: [GiDlist] entities references


I am using GID for Boundary Element Analysis and
I tried to associate each mesh element of the boundary (surface elements) to
the defined volume. exemple : surface element number x belongs to the volume number y...

I tried to use the example from Advanced course documentation A2-Problem type details.doc,
see the chapter 5. "INSTRUCTION *tcl IN THE .bas FILE" for my own problem.


I create a projectname.tcl file :

proc InitGIDProject { dir } {
}
proc EndGIDProject {} {
}
proc NumVolumes { } {
set a [.central.s info list_entities Status]
regexp -nocase {number of volumes: ([0-9]+)} $a none num
return $num
}
proc WriteAllVolumesInfo { } {
return [.central.s info list_entities Volumes 1:[NumVolumes]]
}
proc WriteVolumeInfo { num } {
return [.central.s info list_entities Volumes $num]
}


a condition in the projectname.cnd file :

NUMBER: 1 CONDITION: Volume_Id
CONDTYPE: over surfaces
CONDMESHTYPE: over face elems
QUESTION: Num_Entity#FUNC#(NumEntity)
VALUE: 0
STATE: HIDDEN
END CONDITION


and instructions in the projectname.bas file :

*set cond Volume_Id *elems *CanRepeat
*loop elems *OnlyInCond
*elemsnum *elemsconec *Cond(Num_Entity,int)
*end elemsn


Can you tell me what is wrong... because it does not work !!!
Thank you for your help.



Zoubir Khatir,
Laboratoire des Technologies Nouvelles (LTN)

INRETS, 2. Av. Malleret-Joinville, 94114 Arcueil Cedex
Tel: (33).01.47.40.73.34 Fax:(33).01.45.47.56.06 mail: khatir at inrets.fr
web: www.inrets.fr


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020315/004f378e/attachment.htm
Post Reply