No BSD License
-
C=coef(f)
Coefficient matrix of constraint and linear objective functions
-
S=stress(X)
-
X=linsystem(Xf)
solve linear equation system
-
[index]=feeldof(nd,nnel,ndof)
-
[k]=fetruss(el,leng,area,c,s)
-
[kk,ff]=feaplyc(kk,ff,bcdof,b...
Apply boundary conditions
-
[kk]=feasmbl(kk,k,index)
-
fln=linear(f,Xo)
Linearize the constraints
-
FEMTRUSS.m
-
FullyStressDesign.m
-
SequentialLinearProgramming.m
-
View all files
from
Optimize Truss by FSD and SLP
by Nguyen Quoc Duan
Optimize Truss by Fully Stress Design and Sequential Linear Programming
|
| [k]=fetruss(el,leng,area,c,s)
|
function [k]=fetruss(el,leng,area,c,s)
%--------------------------------------------------------------
% Purpose:
% Compute stiffness matrices for the 2-d truss element
% nodal dof {u_1 v_1 u_2 v_2}
%
% Synopsis:
% [k]=fetruss(el,leng,area,c,s)
%
% Variable Description:
% k - element stiffness matrix (size of 4x4)
% el - elastic modulus ( E )
% leng - element length
% area - area of truss cross-section
%----------------------------------------------------------------
% syms X1 X2 X3
k=(area*el/leng)*[c*c c*s -c*c -c*s;...
c*s s*s -c*s -s*s;...
-c*c -c*s c*c c*s;...
-c*s -s*s c*s s*s];
|
|
Contact us at files@mathworks.com