steelnodes
v1.0.11
Published
Textual structural modelling and analysis using stiffness matrix method
Downloads
4
Maintainers
Readme
Welcome to SteelNodes!
This is still under development project. It analyses 2D structures under nodal loads to find the displacements and loads in members. The proposed units are Kilo-newton,meter but you can use any units as long as you use them in all your entries. Remember all areas,lengths,inertia .. shall be in the same unit ie : m.
Create your jst file
jst file will include your structure, for Example :
UNIT METER-KN
JOINT COORDINATES
1 0 0 0; 2 -240 -180 0; 3 240 0 0;
MEMBER INCIDENCES
1 1 2; 2 1 3;
PROPERTIES
1 12 29000 600;
ASSIGN PROPERTY
1 TO 2 1;
RESTRAINTS
2 0 0 0;3 0 0 0;
NODE LOAD
1 0 -30 -1200;
END
JOINT COORDINATES: sequence ,x,y,z note that z shall be always the same ,as 3D analysis is not supported.
MEMBER INCIDENCES: sequence ,first node number,second node number note sequence shall start by 1.
ROPERTIES: member,Section Area,Elastic modulus,Moment of Inertia
ASSIGN PROPERTY: member number,property number ;
RESTRAINTS: Node Number , restraint condition at x,restraint condition at y,restraint condition at z note : restraint conditions are 1 for free and 0 for fixed.
NODE LOAD:
Node Number , force load at x,force load at y,applied moment.
You may use "TO" to assign more than one member to the same property. Use commas and semicolon exactly as shown in the example above , don't forget semicolons at the end of each entry.
Installation
npm i steelnodes
Usage ; test.js
var path=__dirname;
var jstFile=path+"/"+process.argv[2];
var steelnodes = require("steelnodes");
var fs = require('fs');
var txt=fs.readFileSync(jstFile,{encoding:"utf8"});
steelnodes(txt);
in command line :
node test.js example.jst