PHP Classes

PHP Truss 3D Class: Analyse pin truss using the finite element method

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 67 All time: 10,332 This week: 65Up
Version License PHP version Categories
truss3dclass 1.0.2Custom (specified...5Algorithms, PHP 5, Physics


This class can analyse pin truss using the finite element method.

It can read a CSV file with values of pin truss and performs analysis of the parameters of the three dimensional structure.

The class can display on a Web page the nodal displacements, element forces and the reaction.

Innovation Award
PHP Programming Innovation award nominee
September 2020
Number 6
A pin truss is a piece that can be used to join different parts of a physical object like for instance a piece of furniture.

Ideally, to make the piece of furniture hold itself with robustness, it is necessary to perform calculations to design the pin truss.

This class uses the finite element method to perform such calculations to give an idea of the robustness of a given pin truss.

Manuel Lemos
Picture of Win Aung Cho
  Performance   Level  
Name: Win Aung Cho is available for providing paid consulting. Contact Win Aung Cho .
Classes: 11 packages by
Country: Myanmar Myanmar
Age: 60
All time rank: 25094 in Myanmar Myanmar
Week rank: 258 Up2 in Myanmar Myanmar Up
Innovation award
Innovation award
Nominee: 3x


    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Truss3D Analysis</title>
.fixedheadertable {
  width: 100%;
  max-height: 60%;
  overflow: scroll;

table {
  position: relative;
  border: 1px solid #ddd;
  border-collapse: collapse;

td, th {
  white-space: nowrap;
  border: 1px solid #ddd;
  padding: 5px;

th {
  background-color: #eee;
  position: -webkit-sticky;
  position: sticky;
  top: -1px;
  z-index: 2;
  text-align: center;
th:first-of-type {
  left: 0;
  z-index: 3;

tbody tr td:first-of-type {
  background-color: #eee;
  position: -webkit-sticky;
  position: sticky;
  left: -1px;
  text-align: left;
.hover {
  background: yellow;

$t1 = new Truss3D();

"<h2>Create model assigning variables</h3>";
//Create model assigning variables

"<h2>Create model from csv </h3>";
//Create model from csv




# Truss3DClass PHP Class for analysing 3 dimensional pin truss by using FEM # Truss3DClass ## Class Inheritance * [FEMSolver] * -> [Truss3D] * [FEMSolver] is base class and includes several matrix operation for the standard FEM solutions. * [Truss3D] is a class for the FEM solution process and include data structure of 3 dimensional pin jointed truss. * Solution process run for the loaded truss to analyse deformations, reactions and element forces. * Multiple load cases will be solved simultaneously. * Html result tables are generated during the process. * Model of 3d truss can be generated within class by assigning values to variables. * Or model can be created by loading CSV file. * Model csv file is very simple comma separated text file in-wich the properties of FEM element, boundary conditions and loads are written. # Technical Reference ## Assumptions 1. Structure behave as a linear system. 2. Stress and strain inside of the nembers are small enough to be in the range of elastic portion. 3. Displacements of joints/nodes are small enough sothat secondary effects will be negalected. 4. Members are large enough to prevent bucklings. ## FEM model Each element/member connected to 2 joints/nodes. Joint has 3 degrees of freedom, ux, uy and uz. where 1. ux is translation along x axis. 2. uy is translation along y axis. 3. uz is translation along z axis. Element move linearly respectively to the end nodes. Pin-jointed truss can be idealized as a Pintruss3D. ## Applicable field It can solve structural mechanic problems such as bridges, transmission tower, trustal elevated tower for supporting storage tank. Many material such as steel, alluminium and wood can be assigned with the appropriate physical properties parameter. ## Contact * This class is free for the educational use as long as maintain this header together with this class. * Author: Win Aung Cho * Contact * version 1.0 * Date: 30-9-2020 *

  Files folder image Files  
File Role Description
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file Doc. Documentation
Accessible without login Plain text file truss3dclass.csv Data Auxiliary data
Plain text file truss3dclass.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:10,332
This week:65Up