Set of common physical data of a vertex, which are applicable to all kind of problems.
Details
The LabelVertex object represents very general physical data applicable to a vertex
label. When you need to change physical parameters for the vertex label, you get the LabelVertexobject using the Content property of the Label object, modify the LabelVertexobject using
its properties and then put it back in the Label object assigning your LabelVertexto the Content property of your Label object. Please see the example for Label object
The exact type of the LabelVertexobject you get by the Label.Content property
depends upon the problem type as show in the table:
Each LabelVertex's subtype inherits all the methods and properties of the basic LabelObject
type listed above.
Generally a vertex cannot have more than one boundary condition defined. Alternative types
returned by the ConditonType property are:
qfDirichlet - the vertex has a prescribed value of the potential;
qfLoading - the value of the normal component of the potential gradient is defined;
If you set the boundary condition type for a vertex several times, only the last setting is
remembered.
The following example iterates through vertex labels in the document and sets the same value as
a Dirichlet condition to all Dirichlet vertices, and zero as a concentrated loading for other
vertices:
Dim lb As QuickField.Label
For Each lb In prb.DataDoc.Labels(qfVertex)
Dim vertexData As LabelVertex
Set vertexData = lb.Content
With vertexData
If .ConditionType = qfDirichlet Then
.Dirichlet = 200
Else
.Loadings = 0
End If
End With
lb.Content = vertexData
Next