Get the Id of a condition defined over nodes

Moderator: GiD Team

Post Reply
kstn
Posts: 40
Joined: Wed Jan 21, 2015 2:03 pm

Get the Id of a condition defined over nodes

Post by kstn »

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
User avatar
escolano
Posts: 1804
Joined: Sun Sep 05, 1982 10:51 pm

Re: Get the Id of a condition defined over nodes

Post by escolano »

you can assign to the surfaces a condition with a special question field #FUNC#(NumEntity)

Code: Select all

QUESTION: Tag#FUNC#(NumEntity)
VALUE: 0
STATE:HIDDEN
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

Code: Select all

GiD_Mesh get element <element_id> geometry_source
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'
Post Reply