imat_shp/list


Purpose

List the nodes and shape coefficients of an imat_shp object.

Syntax

list(s)
list(s,format)
list(s,nodelist)
list(s,nodelist,format)
data=list(s,...)

Description

When applied to an imat_shp object s, the LIST function lists the nodes and shape coefficients in tabular form. It will provide the shape number, frequency, damping, and IDLine 1 before listing the shape coefficients. It will loop through all shapes provided. If the number format is long and the shape has 6 DOF per node, or for Complex shapes with 6 DOF per node, the shape coefficients will be listed on two lines. The first line contains the translational DOF and the second line contains the rotational DOF.

An optional string argument may be supplied to override the default number format setting. Valid options are 'long' and 'short'. A node list may also be supplied. This must be a numeric vector. The subset of nodes matching nodes provided in the node list will be printed for each shape. If no nodes match, a warning message will be printed.

DATA is an optional output cell array the same size as S containing the nodes and shape coefficients listed for each shape.

Examples

>> s=imat_shp(1);
>> s.shape=[1:9]*(1+1/9);
>> s.node=100:100:300

s =
IMAT Shape with the following attributes:
Frequency           Damping             NumberNodes
------------------- ------------------- -------------------
1                   0.01                3

>> list(s)

Shape 1 - 1.000000 Hz, 1.000000 %Cr damping
ID Line 1:
      Node       Disp-X       Disp-Y       Disp-Z
-------------------------------------------------
       100       1.1111       2.2222       3.3333
       200       4.4444       5.5556       6.6667
       300       7.7778       8.8889           10

>> list(s,[100 300])

Shape 1 - 1.000000 Hz, 1.000000 %Cr damping
ID Line 1:

      Node       Disp-X       Disp-Y       Disp-Z
-------------------------------------------------
      100        1.1111       2.2222       3.3333
      300        7.7778       8.8889           10

>> format long
>> list(s)

Shape 1 - 1.000000 Hz, 1.000000 %Cr damping
ID Line 1:

      Node                 Disp-X                 Disp-Y                 Disp-Z
--------------------------------------------------------------------------------
       100       1.11111111111111       2.22222222222222       3.33333333333333
       200       4.44444444444444       5.55555555555556       6.66666666666667
       300       7.77777777777778       8.88888888888889                     10

>> s.doftype='6dof';
>> list(s)

Shape 1 - 1.000000 Hz, 1.000000 %Cr damping
ID Line 1:

      Node                 Disp-X                 Disp-Y                 Disp-Z
                            Rot-X                  Rot-Y                  Rot-Z
--------------------------------------------------------------------------------
       100       1.11111111111111       2.22222222222222       3.33333333333333
                                0                      0                      0
       200       4.44444444444444       5.55555555555556       6.66666666666667
                                0                      0                      0
       300       7.77777777777778       8.88888888888889                     10
                               0                       0                      0

>>

See Also

imat_shp