Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate from python2 to python3 #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

migrate from python2 to python3 #10

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jan 3, 2019

Thank you for this piece of software.

I migrated your code from python2 to python3. I checked on Debian and it was working correctly.

#8

@buddyd16
Copy link
Owner

buddyd16 commented Jan 9, 2019

Thank you for taking the time to make the changes to get these python 3 ready. I need to look into how the merging process works more.

Thanks again for your effort!

@ghost
Copy link
Author

ghost commented Jan 11, 2019

You're welcome. You can read the help manual here: https://help.github.com/articles/merging-a-pull-request/

After merging this pull request, you should also sync your local repository (on your machine) with this repo and after that you can be able to push your changes again to this remote repository (on github).

buddyd16 added a commit that referenced this pull request Feb 7, 2020
Function for the PCA stress-strain relationship defined in the PCA Notes to ACI 318-05

Revision to the phi factor calculation

Current version sums moments about the geometric center instead of the plastic center

Final P-M graph shows a comparison of all of the current stress-strain functions for P vs Mx for a 20"x30" section with F'c=5 ksi and an unbalanced reinforcement layout of (3)#10 top and (2)#10 bottom, the P-M curve does not align with vertical 0 axis because of the unbalanced layout.
drparks71 added a commit to drparks71/structural_engineering that referenced this pull request Apr 18, 2024
* added calc options to file menu

* font and padding

changes to font and padding to reduce overall window size

* fix div/0 error when solved in one iteration

the C stability curve relied on normalizing the data which caused a div/0 error when there was only 1 data point.

* Fixed End Forces

FEF for Point and Point Moments

will be useful for finite elements analysis for equivalent nodal forces

* complete fixed end forces

* code cleanup

udl and trap fixed end force function referenced fem[0] and fem[1] instead of fem[0][0] and fem[1][0] which isn't really an issue since the fem[i] is a 1d array with one value but it's cleaner to send just the value thru to the moment builder instead of the array.

* piecewise formula generation

* full beam piecewise formulas 

Generation of the full beam piecewise functions for shear, moment, EI*Slope and EI*Deflection

A evaluation function to return the V, M, EIS and EID values at a location given the peicewise functions
A helper function to evaluate a polynomial defined by a list of coefficients at an x location

* function for points of zero shear

function works for points of zero slope as well 

simplified the polyeval function

* beam piecewise formula reporting

added a tab to show the piecewise beam formulas

* removed print statements and constant shear in adajcent bay

removed print statements
revised root check to account for a constant value in an adjacent bounds

* clean up pin-pin and cant. fix for functions in simple

* imaginary root handling

remove imaginary roots where the imaginary component is greater than 1e-5

* piecewise functions for cantilevers

working on the piecewise functions for the cantilever load types.

* save and open functionality

added the ability to save and open files

* validation files using AISC beam examples

Validation files for use with the simple_beam program.
examples are from Table 3-23 in the 13th edition in the AISC manual of steel construction

* fix a possible div/0 error spot

root location check had an if statement that could result in a div/0 error.

* fixed d = 0 to d==0 in an if statement

fixed syntax for an if statement

* clear out loads on file open

remove current loads when opening a file

* # stations included

* include # of stations as part of the save file

* cantilever examples

* fixed-free ability

made it possible to enter 0 for the center span length the run analysis for fixed-free or free-fixed conditions

* Rename aisc_table_3_23_ex1.simpbm to aisc_table_3_23_ex01.simpbm

* Rename aisc_table_3_23_ex2.simpbm to aisc_table_3_23_ex02.simpbm

* Rename aisc_table_3_23_ex3.simpbm to aisc_table_3_23_ex03.simpbm

* Rename aisc_table_3_23_ex4.simpbm to aisc_table_3_23_ex04.simpbm

* Rename aisc_table_3_23_ex5.simpbm to aisc_table_3_23_ex05.simpbm

* Rename aisc_table_3_23_ex6.simpbm to aisc_table_3_23_ex06.simpbm

* Rename aisc_table_3_23_ex7.simpbm to aisc_table_3_23_ex07.simpbm

* Rename aisc_table_3_23_ex8.simpbm to aisc_table_3_23_ex08.simpbm

* Rename aisc_table_3_23_ex9.simpbm to aisc_table_3_23_ex09.simpbm

* Add files via upload

* Add files via upload

* better html export

added much more detail to the html export option. 

Originally only exported the v,m,s,d diagrams; now show input information, reactions, max/min moments, and max/min deflections.

* Add files via upload

* improved HTML output

objectively improved the HTML output with table styling and inclusion of the load input data

* include piecewise function in HTML output

helper function to generate an html table for load equations
include load equations in the simple beam html output

* better html formatting

reformatted html output to have all tables on the left and all diagrams on the right

* simple_beam output example

* Add files via upload

* html formatting

tweaking formatting on the html output

* 0 point unique list and html formatting

- the zero location function now returns a sorted unique list of locations
- changed some of the html output formatting

* simpler HTML output

* two methods for parabolic compression stress blocks

* testing things

- working on a function to get the concrete compressive force for a general closed polygon at a set neutral axis depth

* clelanup

- file cleanup
- removed the compression at slices function as the results were outside an acceptable level of error - 2-3%

* southern pine

-added the option to do southern pine...limited to standard stud sizes will not do the specific Cf factors for item 4"thick and 8"+ wide nor for items 12"+ wide.

* results scroll bar

add a vert scroll bar to the results text box

* Add files via upload

* clean up

-added some helper functions to make some of the code cleaner

* Add files via upload

* Add files via upload

* Add files via upload

* frame members graphs

* Add files via upload

* a much improved script for section properties

improved methods for section properties of solids or voids with a function for properties of a sections composed of many of the

* n multiplier for composite materials

* Add files via upload

* see description

- anticipate divide by zero potential and add a very small number to result so x/number is very large
- fixed vertex translation function so the rotation is defined at a point, previously was going to rotate about the x,y origin no matter what
- moved calculation of section props to a class function so it can be recalled after translation operations
- rebuild the x,y coordinate list in the class so it is no longer tied to the global list variables

* method for getting sub shapes over a cut line

* working function for the polygon slicing

previous function failed with several polygon shapes and orientations. current functions seems to be working

* more fixes to the slicing function

* Add files via upload

* Add files via upload

* plot marker size

* two voids

* Add files via upload

* cleanup

cleanup
added some more testing shapes in the section_props file now have a preset for and "H" and "X" shaped section

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Update LICENSE

* steel and whitney stress-strain functions

* Create .gitignore

* function for plastic center and uni-axial P-M curve

* prepping for load factoring/patterning

* Add files via upload

* Add files via upload

* chart the P-Mx Curve and the Stress-e Curves

* more detailed output

* typo's

* P-M Corrections and more backed development

working to get to a position to be able to perform the bi-axial column analysis

* Add files via upload

* Add files via upload

* Delete 2D_Frame_Moment_Distribution.py

file name was changed so the leading number is removed so it can work with imports in there modules

* Delete pin_pin_point_moment.py

file was a working file to test a function, the function has since been added to the pin-pin beam file.

* Delete testing_file.py

this was just a random file for me to quickly test some functions outside their respective .py files to reduce clutter in the host file. Removing from the repository to clean it up so only actual meaningful files are out here.

* Delete integration_test.py

another temporary testing file I was using, doesn't offer anything to the intent of the repository.

* Delete fixed_end_moments_from_end_slope.py

redundant file the method has been included in the pin-pin beam file.

* Delete load_combo_test.py

another testing file that didn't really work so removing it.

* Delete snow_drift by polygons.py

old file the latest version of this file was renamed to have all spaces replaced with  "_" in the name to make importing easier across operating systems.

* working on finishing the piecewise functions

working thru the piecewise functions for the rest of the cantilever load types

* finished fixed and forces and piecewise formulas

all the loading types now have the ability to return fixed end forces and full piecewise formulas.

* lots of progress

- support for left and right cantilevers added to the Fram
- ability to specify a hinge at the column beam joint

* right side cantilever

right side cantilever corrections

* more right side cantilever corrections

load calls were pointing to can't. left load types

* building GUI for 2D Frame

* Add files via upload

* building 2D Frame GUI

* correction to the bar force to be deducted in the compression zone

* frame 2D GUI progress

* progress

* more GUI development

* GUI Development

- plot slope diagram
- plot deflection diagram
- display moment distribution factors for i and j end of members

Canvas redraw time is slow right now so control over plot refresh and scaling has been turned over to the user rather than automated by the GUI.

NOTE: Load Combination and Patterning have not been implemented yet, as is the program solves for all loads input with a load factor of 1.

* charting functions

* plot load and load plot functions

- added charting functions to the pin-pin beam classes
- added load plotting to the 2D frame GUI

* utilize new chart functions

* corrected distribution factors

* fixed column shortening

column shortening moments were not being accounted for this has been corrected.

* cantilevers!

* Add files via upload

* Cant. Right UDL - Delta Fix

Right Cantilever UDL formula for deflection at points less than A was missing an additional x, should have been x^3

* Add files via upload

* canvas zoom and pan

* Add files via upload

* fix zoom on windows, better zoom centerpoint?, turn off columns

fixed graph zoom feature on windows machines
zoom is now fixed about the canvas center point
option to toggle the column charts on and off

* Add files via upload

* Add files via upload

* Update README.md

* Update README.md

* Add files via upload

* attempt at converting the Frame_2D program to metric

* Add files via upload

* Add files via upload

* forgot to convert area from mm^2 to m^2

* Add files via upload

* cantilever start delta

start deflections for the column shortening had the wrong conversion factor being aplpied

* Add files via upload

* Update README.md

* Update README.md

* Update README.md

* Add files via upload

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* html output had some references to ft

* load combination and patterning processing

* unique combinations

* Add files via upload

* Add files via upload

* Add files via upload

* Update README.md

* flipped i,j reporting text for columns

flipped the value reporting text so i is on the bottom line of text. In general i is always the bottom or left node and j is always the top or right node.

* columns down compressible option

option to toggle if the columns down are compressible or not. If the columns are compressible performs two passes on the moment distribution after pass one beam reactions on the columns are determined and the columns are shortened by PL/AE then the resulting fixed end moments created by the differential shortening of the columns are determined and another moment distribution pass is performed.

* better location for tension face toggle

move the toggle to show the moment diagram on the tension face to be right after the option to show the moment diagram instead of at the end of the option toggles.

* Add files via upload

* show reactions

the show reactions option on the graph is now functional.

* Add files via upload

* show stations option

* column shears and i reaction where opposite sign

Column shears and column i reactions did not follow the sign convention of everything else.

* Unit Rotation verification

Verification of the results for a unit rotation at the start or end of the beam. 
Basis for moment distribution factors

for Unit Rotation @ 0:  Ma = 4*E*I / L and Mb = 2*E*I / L  
for Unit Rotation @ L:  Ma = 2*E*I / L and Mb = 4*E*I / L

* Simple program to calculate Ka, Ca, Kb, and CB 

Calculates members end stiffness Ka, Kb and carry over factors Ca, Cb for a given set of segments with consistent E*I values in those segments.

* Update HardyColumn.py

* Delete LICENSE

* Create LICENSE

* Update Frame_2D_GUI.py

* license update

* license

* license update

* Update HardyColumn.py

* license update

* redundant file - method included in LoadTypes.py

* Update snow_drift_by_polygons.py

* license update

* License Update

* License Update

* Delete welds_gui.zip

* License Update

* Delete aisc_steel_shapes_historic.zip

* Delete aisc_steel_shapes.zip

* License Update

* License Update

* License Update

* speed up beam chart plots

pulled a function call out of the individual plots so it only needs to be called once in lieu of for every plot point.

* User Precision and first station plot fix

-Calculation Precision is now a user option
-When choosing to show the stations in the charts the very first station was being omitted this has been fixed.

* Non-Sway Reaction

As currently set up the Frame programs are assumed to be be non-sway. However the necessary restraining reaction was not listed when reactions were shown in the chart, this is now corrected and the non-sway reaction is shown. 

Simple check of sum of Fx in the older version would have shown a complimentary reaction at the beam line would be required to remain in equilibrium.

* Add files via upload

* charting speed up + improvement

- applied the same fix that was done for the beam charting to the column charting
- no longer need to chart shear, moment, slope, or deflection to have the reaction show the correct information

- initialized some values to 0 in the parent script as needed.

* non-sway reaction location 

force the non-sway reaction to always show at the right end of the beam line. Previous method showed the reaction adjacent to the last column up which could result in it showing up within the frame making it hard to discern.

* Reset end moments each time solve is clicked

When solve was clicked multiple times without first rebuilding the frame the stored node moments where not cleared so the results would increase by the final moments + the previous final moments.

* code for a recent post

* start of the class definitions for Timoshenko Beams

* Add files via upload

* point load fixed end forces

* stiffness and carry over factors

* PEP8 class names

* Add files via upload

* changed file name

* update and wrong conversion in the testing file

added a normalized plot of the cross section vertical axis rotation to the testing file and fixed the conversion of I from in^4 to ft^4.

* eng-tips post

* timoshenko derivation for trapezoidal loading

**incomplete**

* matrix formulation for constants

ready for implementation as python code and testing

* python implementation ready for testing

* fixed a sign error on w1

* testing

-something is off with the partial load case.

* testing

error seems to be in the flexural component, need to review the formulas and constants.

* correction, class, and more testing

- previous error was because d was being used in the compatibility equations when it should have been b, b is the load right end location.

- class creation to eventually copy into the TimoshenkoFormulas file

* theta for x>b wrong constant reference

fixed an incorrect constant reference

after 3 test cases results are in 5 figure agreement with commercial software

* Add files via upload

* Timoshenko formulas for a uniform load

* Add files via upload

* better formatting of license text in GUIs

* better formatting of license text in GUI

* better formatting of license text in GUI

* better formatting of license text in GUI

* better formatting of license text in GUI

* better formatting of license text in GUI

* Fixed end moment functions

General functions for fixed end moments added to TimoshenkoFormulas
Specific function for fixed end forces including end reaction added to timotrap

* GUI reference correction - Iy 

Value shown for Iy for W shapes in the strong axis flexural calculations referenced the wrong property value for display in the GUI. The correct value of Iy was being used in the underlying calculations.

* correction to plastic center calculation

* PCA Stress-Strain and various corrections

Function for the PCA stress-strain relationship defined in the PCA Notes to ACI 318-05

Revision to the phi factor calculation

Current version sums moments about the geometric center instead of the plastic center

Final P-M graph shows a comparison of all of the current stress-strain functions for P vs Mx for a 20"x30" section with F'c=5 ksi and an unbalanced reinforcement layout of (3)buddyd16#10 top and (2)buddyd16#10 bottom, the P-M curve does not align with vertical 0 axis because of the unbalanced layout.

* removed emdedded gifs

removed the embedded gifs and replaced with hyperlinks to the gif files.

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* wrapped up and merged the UDL and Variable load classes

addition of UDL and Variable Load classes for the Timoshenko beam formulas.

* merge toolbox improvements

merge all the improvement made to the section property module from the toolbox website development

* Add files via upload

* Add files via upload

* APA T555 FTAO Calculation Script

Generalized the APA T555 FTAO calculations for unlimited opening widths. Script has not been fully validated.
Inputs are at the begining of the file and the script outputs results to the console.

* upper wall chord force and misc clean up

added the option to include an end chord force from above in the analysis.

* SVG Graphic Generation of Wall Panel

* correction to mid panel shear display

* Cd Factor and Drift Ratio

* refine SVG and add load data

* SVG Output Improvement - Deflection Amended

SVG Output was expanded to show more information

The Deflection computation was revised to include the hold-down force from above in the end pier calculation for the hold-down deflection component. This force was not accounted for in the previous iteration.

* check against a <=0 sill height

* missing :

* check if opening is too large

* strap bm latest

* Add files via upload

* Add files via upload

* beginnings of punching shear calculations

completely untested

* Update punching_shear.py

---------

Co-authored-by: buddyd16 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants