I have the condition which will transfer the information to the mesh nodes:
CONDITION: Distributed_Surface_Load
CONDTYPE: over surfaces
CONDMESHTYPE: over nodes
I can only iterate over nodes that are defined with Distributed_Surface_Load on it, but I do not know which surface entity that these nodes belong to. Can I get that information without defining additional tag for the condition?
*set cond Distributed_Surface_Load *nodes *canRepeat
*loop nodes *OnlyInCond*\
*end nodes
Example condition with the tag which is not a preference:
CONDITION: Distributed_Surface_Load
CONDTYPE: over surfaces
CONDMESHTYPE: over nodes
QUESTION: Tag
VALUE: 1
HELP: User set a tag for the condition to identify the surface it applies to
Get the Id of a condition defined over nodes
Moderator: GiD Team
Re: Get the Id of a condition defined over nodes
you can assign to the surfaces a condition with a special question field #FUNC#(NumEntity)
That will be automatically filled when generate the mesh with the source surface number
https://gidsimulation.atlassian.net/wik ... +file+.cnd
note the extra state: hidden to not show to the users this special question.
Ans since GiD 15.1.5d developer the mesh has a pointer to its geometrical entity, then it is not necessary this special #FUNC#(NumEntity) question.
Can know the geometry of an element with this Tcl command
Cannot ask the geometry of a node, because a node can belong to multiple entities
but can also ask for the element's nodes, to know the list of 'nodes of a surface'
Code: Select all
QUESTION: Tag#FUNC#(NumEntity)
VALUE: 0
STATE:HIDDEN
https://gidsimulation.atlassian.net/wik ... +file+.cnd
note the extra state: hidden to not show to the users this special question.
Ans since GiD 15.1.5d developer the mesh has a pointer to its geometrical entity, then it is not necessary this special #FUNC#(NumEntity) question.
Can know the geometry of an element with this Tcl command
Code: Select all
GiD_Mesh get element <element_id> geometry_source
but can also ask for the element's nodes, to know the list of 'nodes of a surface'