How to Create a GiD Problem Type

Moderator: GiD Team

Chambernan
Posts: 23
Joined: Tue Mar 22, 2022 3:13 pm

Re: How to Create a GiD Problem Type

Post by Chambernan »

2.PNG
2.PNG (114.55 KiB) Viewed 18524 times
Hello! Thank you. Just like the figure, I want to set the condition by choose the line "AB", but it seems that only one element can be selected at once. In .cnd,

Code: Select all

CONDITION: Line-Data
CONDTYPE: over lines
CONDMESHTYPE: over face elements
QUESTION: Boundary or not
VALUE: 0
END CONDITION


What's more. For two-dimensional models, is it not possible to set boundaries over elements?
1.PNG
1.PNG (81.9 KiB) Viewed 18524 times
In .bas,

Code: Select all

*Set Cond Surface-Data *elems
/discrete-element boundary *nelem
*loop elems
*Cond(1)    *\
*end elems
User avatar
escolano
Posts: 1918
Joined: Sun Sep 05, 1982 10:51 pm

Re: How to Create a GiD Problem Type

Post by escolano »

I repeat the same again, the normal way is to assign data to geometry, not to mesh!!
usual_assing_data_on_geometry.png
usual_assing_data_on_geometry.png (67.73 KiB) Viewed 18521 times
then generate the mesh. You can see drawing the condition by colors that the correct faces of the triangles are marked (note that they don't exists line elements, only triangle elements
mesh_inherit_data.png
mesh_inherit_data.png (84.29 KiB) Viewed 18521 times
You can also directly assign to mesh faces, but is harder (but you can use all selection options)
manual_mesh_assign_data_unrecommended.png
manual_mesh_assign_data_unrecommended.png (94.21 KiB) Viewed 18521 times
And about the other comment: for a 2D model with triangles must not define a condition
CONDTYPE: over surfaces
CONDMESHTYPE: over face elements
Do you want to select the whole triangles themselves, must be 'over body elements' not 'over face elements' !!
(and the loop in the .bas to write it must be off course according to the kind of data)

It has sense to define a condition
CONDTYPE: over surfaces
CONDMESHTYPE: over face elements
if do you have a volume model, with tetrahedra, hexahedra, prisms or pyramids, and you are not also explicitly generating the boundary surface elements (triangles or quadrilaterals) and whan't to attach the condition data to a face of a volume element (face 1 to 4 or a tetra, 1 to 6 of an hexa, etc.)
And in a volume mesh will be much better to assign data to geometric surfaces, do it manually on all mesh elements could be a nightmare.
Chambernan
Posts: 23
Joined: Tue Mar 22, 2022 3:13 pm

Re: How to Create a GiD Problem Type

Post by Chambernan »

Thanks for your help solved my problem! The reason that I assign data to mesh is that the mesh is imported from Abaqus to GID, so there is no geometry file here.
Post Reply