Get a trace of all degrees of freedom in a shape.
t=alldof(s)
ALLDOF returns a coordinate trace t containing all degrees of freedom in the imat_shp s. The coordinate trace will be in the order of the nodes in s. If s contains more than one shape, then the coordinate trace will be taken from s(1).
>> s=readunv('/ms5/examples/tda/air_test_shapes.unv')
Universal file written in MM units, converting to SI
Read 10x1 imat_shp
s =
10x1 IMAT Shape
with the following attributes:
Row Frequency Damping NumberNodes
--- ------------------- ------------------- -------------------
1 100.334 0.00777494 30
2 146.458 0.00738474 30
3 296.134 0.00306095 30
4 296.721 0.00344297 30
5 405.738 0.00250777 30
6 474.503 0.00189975 30
7 487.771 0.00192485 30
8 521.287 0.00290228 30
9 582.747 0.00147384 30
10 851.518 0.00138781 30
>> s(1).node'
ans =
Columns 1 through 12
1 2 3 4 5 6 7 8 9 10 11 12
Columns 13 through 24
13 14 15 16 17 18 19 20 21 22 23 24
Columns 25 through 30
25 26 27 28 29 30
>> s(1).doftype
ans =
3DOF
>> t=alldof(s)
t =
'1X+'
'1Y+'
'1Z+'
'2X+'
'2Y+'
'2Z+'
'3X+'
'3Y+'
'3Z+'
'4X+'
'4Y+'
'4Z+'
'5X+'
'5Y+'
'5Z+'
'6X+'
'6Y+'
'6Z+'
...
'28X+'
'28Y+'
'28Z+'
'29X+'
'29Y+'
'29Z+'
'30X+'
'30Y+'
'30Z+'
>>