[GiDlist] Modify Mesh Command

Hi,

I would like to customize the mesh menu. For example, I have a condition
applied on surfaces that defines the groups of elements in the project. And,
I want to add in this condition the information about the shape of finite
element (Quadrilateral or Triangle) , the size and if the mesh in this group
will be structured or unstructured. As shown bellow

NUMBER: 2 CONDITION: Surface_FEGroup
CONDTYPE: over surfaces
CONDMESHTYPE: over body elements
TITLE: GROUP
QUESTION: FEGroup
VALUE:1
QUESTION: Element_Number#FUNC#(NumEntity)
VALUE: 0
STATE:HIDDEN
TITLE: MESH
QUESTION:TYPE_OF_ELEMENT#CB#(QUADRILATERAL,TRIANGLE)
VALUE:TRIANGLE
QUESTION:STRUCTURED?#CB#(1,0)
VALUE:0
QUESTION:MESH_SIZE
VALUE:0.5
END CONDITION


How can I do to open a window dialog an transfered this condition directly
to the mesh generator?

Rodrigo Alves Augusto

thanks
-------------- next part --------------
An HTML attachment was scrubbed…
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20090128/23ab86f5/attachment.htm

I think that is not a good idea to create a condition window alternative to our standard method to assing/draw meshing information (element type, sizes, structuration)
for example, for structured entities is necessary to select more information (divisions in each direction)


I think that instead to define this kind of condition, you can classify your groups of entities in different layers, and assign meshing info easily to the entities of this layers (the drawback is that an entity can only belong to one layer)

Note: when selecting it’s possible to specify the enties of ‘yourlayer’ with
layer:yourlayer

In any case, if do you want to do it, you can use our ‘BeforeMeshGeneration’ Tcl event, that will be invoked just before meshing,

This is the prototype that you could implement in Tcl:

proc BeforeMeshGeneration { elementsize } {
…body…
}

you can use “GiD_Info Conditions” commands to ask GiD for the applied condition values, and then use GiD_Process commands to set the meshing information on the geometry in the standard way.


----- Original Message -----
From: Rodrigo Augusto
To: gidlist at gid.cimne.upc.edu
Sent: Wednesday, January 28, 2009 9:38 PM
Subject: [GiDlist] Modify Mesh Command


Hi,

I would like to customize the mesh menu. For example, I have a condition applied on surfaces that defines the groups of elements in the project. And, I want to add in this condition the information about the shape of finite element (Quadrilateral or Triangle) , the size and if the mesh in this group will be structured or unstructured. As shown bellow

NUMBER: 2 CONDITION: Surface_FEGroup
CONDTYPE: over surfaces
CONDMESHTYPE: over body elements
TITLE: GROUP
QUESTION: FEGroup
VALUE:1
QUESTION: Element_Number#FUNC#(NumEntity)
VALUE: 0
STATE:HIDDEN
TITLE: MESH
QUESTION:TYPE_OF_ELEMENT#CB#(QUADRILATERAL,TRIANGLE)
VALUE:TRIANGLE
QUESTION:STRUCTURED?#CB#(1,0)
VALUE:0
QUESTION:MESH_SIZE
VALUE:0.5
END CONDITION


How can I do to open a window dialog an transfered this condition directly to the mesh generator?

Rodrigo Alves Augusto

thanks
-------------- next part --------------
An HTML attachment was scrubbed…
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20090129/500713d6/attachment.htm