0% found this document useful (0 votes)
66 views

72 Bar Truss Matlab Code

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views

72 Bar Truss Matlab Code

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

DOCUMENTATION Matlab_Abaqus_72_Bar_Truss file:///C:/Users/pc/Dropbox/Public/PUBLISHED MATLAB CODE/Matl...

DOCUMENTATION Matlab_Abaqus_72_Bar_Truss

Contents
1. Introduction
2. The 72-bar truss optimization problem
3. Setup all files and folders
4. Package files
5. Supplementary files
6. Demonstration of the solution of the 72-bar truss problem

1. Introduction
Matlab_Abaqus_72_Bar_Truss is a Matlab source code which is used to find the optimum design of a 72-bar truss, described in
section 2. It is developed by George Papazafeiropoulos ([email protected]) as an illustration of how
Abaqus2Matlab (http://www.abaqus2matlab.com/) can be used for solving optimization problems. It is written in MATLAB
programming language and is available as source code distributed under a BSD-style license (see License.txt which is included
in the package folder).

2. The 72-bar truss optimization problem


Matlab_Abaqus_72_Bar_Truss tries to solve the following problem:

Consider a 72 bar space truss shown in the following figure with the following structural characteristics: Modulus of Elasticity E =
10,000 ksi, material weight rho = 0.1 lb/in^3. The structural members are divided into 16 groups. The design variables are the
cross section areas of the members in each group, which must be higher or equal than 0.1 in^2. The constraints are imposed on
stresses and displacements. The maximum displacement of the uppermost nodes is not allowed to exceed 0.25 in in the x and y
directions. The maximum and minimum allowable stresses are 25 ksi. The objective is to minimize the weight of the structure
under the specified constraints for both load cases simultaneously. Two load cases have been considered.

1 από 3 27/4/2020, 9:18 μ.μ.


DOCUMENTATION Matlab_Abaqus_72_Bar_Truss file:///C:/Users/pc/Dropbox/Public/PUBLISHED MATLAB CODE/Matl...

3. Setup all files and folders


All files and folders of Matlab_Abaqus_72_Bar_Truss package have to be setup in the current folder of Matlab, which must be
the Matlab_Abaqus_72_Bar_Truss folder. This folder should be placed in the Abaqus working directory to avoid confusion with
the Abaqus files generated during the optimization process, although this is not mandatory. In any case, the files generated in
Abaqus runs will be placed one level up (outside) from the source folder. This package was verified with Abaqus 2016.

3.1. Find the directory containing this file

S = mfilename('fullpath');
f = filesep;
ind4=strfind(S,f);
S1=S(1:ind4(end)-1);

3.2. Setup all files and folders inside the directory where Matlab_Abaqus_72_Bar_Truss is found

addpath(genpath(S1))
cd(S1)

2 από 3 27/4/2020, 9:18 μ.μ.


DOCUMENTATION Matlab_Abaqus_72_Bar_Truss file:///C:/Users/pc/Dropbox/Public/PUBLISHED MATLAB CODE/Matl...

4. Package files
The files and folders used in this package are the following:

4.1. A folder named source which contains the functions used in the optimization process which finds the optiimum design of
the 72-bar truss. A list of the functions used can be found here.

4.2. This script (Documentation.m).

4.3. The script "Truss72main.m" which when executed, the optimization problem is solved. The results of the solution can be
seen here.

5. Supplementary files
Except for the source code files and folders used in this package other supplementary files and folders are provided, which are
the following:

5.1. A folder named help which contains all the source codes which are published in the documentation.

5.2. A folder named html which contains all the html files of the documentation of this package, including the html file produced
by publishing the optimization problem of this package.

5.3. A file named "License.txt" in which the BSD-style license associated with Matlab_Abaqus_72_Bar_Truss is stated.

5.4. A file named "Version History.txt" in which the history of the various versions of this package is presented.

6. Demonstration of the solution of the 72-bar truss problem


The following actions are taken to solve the 72-bar truss optimization problem:

6.1. Ensure that Abaqus has been installed and that the license server has started successfully.

6.2. Place the folder of the package in the Abaqus working directory (usually C:\Temp). Usually, this step is not necessary, since
Abaqus can run from any directory. This action is suggested, however, to avoid confusion with the large number of files which
are created in each Abaqus run.

6.3. Open the file named "Documentation.m" in Matlab and run it (press F5)

6.4. Type "web('Documentation.html')" in the Matlab command window (then enter) to view the documentation of this package.

6.5. Open the file named "Truss72main.m" in Matlab and run it. The optimization process will go on until it terminates.

____________________________________________________
Copyright (c) 2019 by George Papazafeiropoulos
Captain, Infrastructure Engineer, Hellenic Air Force
Civil Engineer, M.Sc., Ph.D. candidate, NTUA
Email: [email protected]

Published with MATLAB® R2017b

3 από 3 27/4/2020, 9:18 μ.μ.

You might also like