<< dfemtruss_smw FEMTruss femtruss >>

FEMTruss >> FEMTruss > femmode

femmode

computes the modes of a structure

Calling Sequence

[Umod,T_period,Phi] = femmode(ffd,K,M,Log,nbmodes,varargin)

Parameters

ffd

a function which returns the parameters of a structure. Must have the following prototype:

[t,p,e,A,E,rho,F] = ffd(varargin(1))

The varargin(1) parameters is optional.

K

The stiffness matrix (computed via a call to femtruss)

M

The mass matrix (computed via a call to femtruss)

Log

if %T then we print some intermediate messages

nbmodes

the number of modes to be computed

varargin

some optional parameters sent to ffd

Umod

the vectors of deformations for each mode. A vector of size npoints x nbmodes.

T_period

the period of the computed modes. A vector of size nbmodes.

Phi

the eigen modes of the structure. A vector of size npoints x nbmodes.

Description

Compute the modes of a structure.

Examples

[t,p,e,A,E,rho,F] = build_fem_test('bridge2d');

[U,P,R,K,M]= femtruss(build_fem_test, %F, 'bridge2d');

[Umod,T_period,Phi]= femmode(build_fem_test, K, M, %F, 3, test_name);

for i=1:size(Phi,2)
  printf('printing mode %d\n',i);
  scf();
  plotdeforme(real(matrix(Phi(:,i),size(p,1),size(p,2))),p,t,1);
end

See Also

Authors


<< dfemtruss_smw FEMTruss femtruss >>