PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 68 All time: 10,325 This week: 39Up
Version License PHP version Categories
truss3dclass 1.0.2Custom (specified...5Algorithms, PHP 5, Physics
Description 

Author

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: 25004 in Myanmar Myanmar
Week rank: 200 Up2 in Myanmar Myanmar Up
Innovation award
Innovation award
Nominee: 3x

Example



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

table {
  position: relative;
  border: 1px solid #ddd;
  border-collapse: collapse;
    text-decoration:none;
}

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;
}
</style>
    </head>
    <body>
<?php
include("truss3dclass.php");

$t1 = new Truss3D();

echo
"<h2>Create model assigning variables</h3>";
//Create model assigning variables
$t1->Init();
echo
$t1->Process();

echo
"<h2>Create model from csv </h3>";
//Create model from csv
$t1->readCSV("truss3dclass.csv");
echo
$t1->Process();

?>

    </body>
</html>


Details

# 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 winaungcho@gmail.com * version 1.0 * Date: 30-9-2020 *

  Files folder image Files (5)  
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 README.md Doc. Documentation
Accessible without login Plain text file truss3dclass.csv Data Auxiliary data
Plain text file truss3dclass.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:68
This week:0
All time:10,325
This week:39Up