首页 > 解决方案 > 八度 - 未定义

问题描述

我在运行 Octave 函数 (ODE) 时遇到问题,我已经尝试过针对此问题的现有解决方案,但没有任何效果

错误是:

错误:'formStiffness3Dframe' 在第 31 行第 13 列附近未定义

% clear memory
clear all
% E; modulus of elasticity
% I: second moment of area
% L: length of bar
E=210e6; A=0.02;
Iy=10e-5; Iz=20e-5; J=5e-5; G=84e6;
% generation of coordinates and connectivities
nodeCoordinates=[0 0 0; 3 0 0; 0 0 -3; 0 -4 0];
xx=nodeCoordinates(:,1);
yy=nodeCoordinates(:,2);
zz=nodeCoordinates(:,3);
elementNodes=[1 2;1 3;1 4];
numberNodes=size(nodeCoordinates,1);
numberElements=size(elementNodes,1);
% for structure:
% displacements: displacement vector
% force : force vector
% stiffness: stiffness matrix
% GDof: global number of degrees of freedom
GDof=6*numberNodes;
U=zeros(GDof,1);
force=zeros(GDof,1);
stiffness=zeros(GDof,GDof);
%force vector
force(1)=-10;
force(3)=20;
% stiffness matrix
[stiffness]=formStiffness3Dframe(GDof,numberElements,elementNodes,numberNodes,nodeCoordinates,E,A,Iz,Iy,G,J);

标签: octave

解决方案


推荐阅读