Main Content

Rigid Assembly of Model Components

This example shows how to specify rigid physical coupling between the components of a structural model. Consider a structure that consists of two square plates connected with pillars at each vertex as depicted in the figure below. The lower plate is connected rigidly to the ground while the pillars are connected rigidly to each vertex of the square plates.

For more information on sparse models, see Sparse Model Basics.

platePillarModel.mat contains the sparse matrices for pillar and plate model. Load the finite element model matrices contained in platePillarModel.mat and create the sparse second-order state-space model representing the above system.

load('platePillarModel.mat')
sys = ...
   mechss(M1,[],K1,B1,F1,'Name','Plate1') + ...
   mechss(M2,[],K2,B2,F2,'Name','Plate2') + ...
   mechss(Mp,[],Kp,Bp,Fp,'Name','Pillar3') + ...
   mechss(Mp,[],Kp,Bp,Fp,'Name','Pillar4') + ...
   mechss(Mp,[],Kp,Bp,Fp,'Name','Pillar5') + ...
   mechss(Mp,[],Kp,Bp,Fp,'Name','Pillar6')
Sparse continuous-time second-order model with 1 outputs, 1 inputs, and 5820 nodes.

Use "spy" and "showStateInfo" to inspect model structure. 
Type "properties('mechss')" for a list of model properties. 
Type "help mechssOptions" for available solver options for this model.

The resultant model sys has 5820 nodes where every node has two degrees of freedom (DoF) which are [q,q˙]q and q dot.

Use showStateInfo to examine the components of the mechss model object.

showStateInfo(sys)
The state groups are:

    Type        Name      Size
  ----------------------------
  Component    Plate1     2646
  Component    Plate2     2646
  Component    Pillar3     132
  Component    Pillar4     132
  Component    Pillar5     132
  Component    Pillar6     132

The named components are listed in the command window with their respective node sizes.

Now, load the interfaced node index data from nodeData.mat and use interface to create the physical connections between the two plates and the four pillars. nodes is a 6x7 cell array where the first two rows contain node index data for the first and second plate while the remaining four rows contain index data for the four pillars.

load('nodeData.mat','nodes')

Now, specify rigid couplings between the plates and the pillars.

for i=3:6
   sys = interface(sys,"Plate1",nodes{1,i},"Pillar"+i,nodes{i,1});
   sys = interface(sys,"Plate2",nodes{2,i},"Pillar"+i,nodes{i,2});
end

Specify rigid connection between the bottom plate and the ground.

sysCon = interface(sys,"Plate2",nodes{2,7})
Sparse continuous-time second-order model with 1 outputs, 1 inputs, and 5922 nodes.

Use "spy" and "showStateInfo" to inspect model structure. 
Type "properties('mechss')" for a list of model properties. 
Type "help mechssOptions" for available solver options for this model.

Notice that the model now contains 5922 nodes. The extra nodes are a result of the specific rigid interfaces.

interface uses 'dual assembly' formulation to connect the components. In the concept of dual assembly, the global set of degrees of freedom (DoFs) q is retained and the physical coupling is expressed as consistency and equilibrium constraints at the interface. For rigid connections, these constraints are of the form:

Bq=0,g=-BTλrigid connection constraints

where g is the vector of internal forces at the interface, and the matrix B is permutable to [I-I]. For a pair of matching nodes with indices ii, i2 where ii selects a node in the first component while i2 selects the matching node in the second component, Bq=0rigid connection constraint enforces consistency of displacements:

q(i1)=q(i2)consistency of displacements

while g=-BTλrigid constraint enforces equilibrium of the internal forces g at the interface:

g(i1)+g(i2)=0equilibrium of internal forces.

Combining these constrains with the uncoupled equations Mq¨+Cq˙+Kq=f+guncoupled equations leads to the following dual assembly model for the coupled system:

[M000][q¨λ]+[C000][q˙λ]+[KBTB0][qλ]=[f0]dual assembly matrix form

For more information, see interface.

Use showStateInfo to confirm the physical connections.

showStateInfo(sysCon)
The state groups are:

    Type            Name         Size
  -----------------------------------
  Component        Plate1        2646
  Component        Plate2        2646
  Component       Pillar3         132
  Component       Pillar4         132
  Component       Pillar5         132
  Component       Pillar6         132
  Interface    Plate1-Pillar3      12
  Interface    Plate2-Pillar3      12
  Interface    Plate1-Pillar4      12
  Interface    Plate2-Pillar4      12
  Interface    Plate1-Pillar5      12
  Interface    Plate2-Pillar5      12
  Interface    Plate1-Pillar6      12
  Interface    Plate2-Pillar6      12
  Interface    Plate2-Ground        6

You can use spy to visualize the sparse matrices in the final model. Choose between the matrices to be displayed using the display menu that can be accessed by right-clicking on the plot.

spy(sysCon)

Acknowledgements

The data set for this example was provided by Victor Dolk from ASML.

See Also

| | | |

Related Topics