Can define a condition, with an special field #MAT# , pointing to a material that store the common properties.
some like this:
*.cnd
CONDITION:MyCond
CONDTYPE: over surfaces
CONDMESHTYPE: over body elements
QUESTION:Property#MAT#(Properties)
VALUE:Table
END CONDITION
Then the condition window at run time show a menu with the current available materials of the book named “Properties”
*.mat
BOOK: Properties
MATERIAL: Template
QUESTION:Type
VALUE:Template
STATE:hidden
QUESTION:Prop1
VALUE:0.0
QUESTION:Prop2
VALUE:0.0
…
END MATERIAL
This special auxiliar materials are located in a separated book (named Properties), and must not be assigned by the user to geometrical entities, draw, or unassigned.
Also the user must not delete the material named Template, used to create derivated materials, with this fields but other specific values
*.tcl
proc InitGIDProject { dir } {
…
ChangeDataBehaviour
}
proc ChangeDataBehaviour { } {
GiD_DataBehaviour materials Properties hide {assign draw unassign} ;#hide some buttons for all materials of this book
GiD_DataBehaviour material Template hide {delete} ;#avoid to delete the template material
}
*.bas
*set cond MyCond *elems
*loop elems *onlyincond
*elemsnum *cond(Property)
*end elems
*loop materials *NotUsed
*#use the first material hidden field to identify the type
*if(strcmp(matprop(Type),“Template”)==0)
*# write the material name
*MatProp(0)
*# write material field values
*MatProp(Prop1) *MatProp(Prop2) …
*endif
*end materials
Can see for example the problemtype nastran 3.0 (can get it directly from Data-problemtype-Internet retrieve)
Best regards
Enrique Escolano
----- Original Message -----
From: Daniel Marceau
To: gidlist at gatxan.cimne.upc.es
Sent: Thursday, August 11, 2005 6:32 AM
Subject: [GiDlist] large set of information in condition
Hi,
I would like to include geometrical property as a condition in my GiD interface. The problem is that this geometrical property include approx 21 data:
identifier
prop1 to prop19
In this way, the corresponding generated file is very large due to the repeated information as:
elem1 prop1…prop19
elem2 prop1…prop19
elem3 prop1…prop19
…
elemn prop1…prop19
There is any way to write the information using the identifier included in my geometrical property in the style:
elem1 identifier
elem2 identifier
elem3 identifier
…
elemn identifier
with the corresponding geometrical property defined elsewhere ?
Thanks
Daniel Marceau
-------------- next part --------------
An HTML attachment was scrubbed…
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20050811/5a4a5b5f/attachment.htm