1
Project 1 / Implementation of a Special Profile Class 16.06.2012 Project 1 Please implement the total code for a special profile, which you will get before you will start. This code should be implemented into our Python package Profiles. Before you want to start with the project, please come to my office to receive a special type of profile class. The following features should be considered. The special profile should be implemented within a new class. The name of the class can be chosen from, you (like we have done it with the HProfile class). The implementation should be able to handle all types of the special profile, like in the case of the H-profile too. The class profile should be extended by methods which are able to calculate and list the profi- le’s section properties according to the script appendix A, that means you should implement the methods to calculate the first moment of the area the second moment of the area, that means the moment of inertia A testing code should be implemented which should create 3 different profiles of the chosen type. The calculated section property values should be printed with the log function of the class Base. The results should be discussed comparing them with the values of the profile table. If the desired values are not found in a table book you should calculate the values by the usage of them. It’s recommended to use parts of the code we have developed in the lecture. Please don’t forget the error checking in the code. The code should be able to detect wrong input data and should also be able to handle special cases. The report for this project should content a section, which describes the theory of the problem. One section should describe the usage of the developed program (like a user’s manual for the the most stupid user) and one section should describe the code (like a programmer’s guild), discussing the interfaces to the used functions and class members. And don’t forget the layout, it should be nice and clear. Everything should be readable, so please don’t copy bad pictures from the net. Computational Mechanics / Analysis of Structures

Project-1 (2)

Embed Size (px)

DESCRIPTION

Implementation of a Special Profile Class

Citation preview

Page 1: Project-1 (2)

Project 1 / Implementation of a Special Profile Class 16.06.2012

Project 1

Please implement the total code for a special profile, which you will get before you will start. This codeshould be implemented into our Python package Profiles. Before you want to start with the project, pleasecome to my office to receive a special type of profile class.

The following features should be considered.

• The special profile should be implemented within a new class. The name of the class can be chosenfrom, you (like we have done it with the HProfile class). The implementation should be able tohandle all types of the special profile, like in the case of the H-profile too.

• The class profile should be extended by methods which are able to calculate and list the profi-le’s section properties according to the script appendix A, that means you should implement themethods to calculate

– the first moment of the area

– the second moment of the area, that means the moment of inertia

• A testing code should be implemented which should create 3 different profiles of the chosen type.The calculated section property values should be printed with the log function of the class Base.

• The results should be discussed comparing them with the values of the profile table.

• If the desired values are not found in a table book you should calculate the values by the usage ofthem.

It’s recommended to use parts of the code we have developed in the lecture. Please don’t forget the errorchecking in the code. The code should be able to detect wrong input data and should also be able tohandle special cases.

The report for this project should content a section, which describes the theory of the problem. Onesection should describe the usage of the developed program (like a user’s manual for the the most stupiduser) and one section should describe the code (like a programmer’s guild), discussing the interfaces tothe used functions and class members. And don’t forget the layout, it should be nice and clear. Everythingshould be readable, so please don’t copy bad pictures from the net.

Computational Mechanics / Analysis of Structures