著者
今村 敬 古賀 浩二 荒牧 軍治
出版者
一般社団法人 日本計算工学会
雑誌
日本計算工学会論文集
巻号頁・発行日
vol.2001, pp.20010044, 2001

Object Oriented Programming (OOP) has been proposed for developing sophisticated software that needs future expansion. Successful applications of OOP in different fields such as graphic data processing and basic OS etc. is intensively reported in the literature. To apply OOP technique in softwares for structural analysis, the target structure is represented by the basic objects (beam, truss, etc.) using key concepts such as encapsulation, polymorphism and inheritance. These features facilitate easy development and management of the program. Yagawa and Kanto<sup>(1)</sup> proposed class structure in structural analysis program to apply OOP technique. They showed advantages of OOP for a two-dimensional linear problem. Referring their work, we have developed seismic design program for bridge, in which some new classes, class members, class member functions were developed. It has been shown that with newly developed classes, class members and class member functions and OOP techniques, the modification and expansion of program can be more easily achieved comparing with other researchers proposal, and of course traditional procedural programming technique.
著者
古賀 浩二 馬被 健次郎 今村 敬 荒牧 軍治
出版者
一般社団法人 日本計算工学会
雑誌
日本計算工学会論文集
巻号頁・発行日
vol.2003, pp.20030008, 2003

Usually, main parts of computer programs of structural calculation consist of complicated mathematical expressions, and generally speaking, these expressions are classified into two categories. One category represents relational expressions which are derived directly from physical laws, mathematical formulas and geometrical constraints, and the other category represents calculative expressions which are derived from numerical methods applied in the structural computation. The aim of this paper is to introduce a new tool in the object oriented programming for the purpose of making computer programs in structural calculation simple and easy to write. We introduce a new object class which represents an relational mathematical expression, and a new computational mechanism relating to the object class. One can assume that the relational expression holds throughout the program if one declares and makes the instances at the beginning of the program. By the use of the new tool of OOP in the structural calculation, one can separate relational expressions, which should be declared at the beginning of the program, and the other calculative expressions. As a result, one can make computer programs, whose main part consists of calculative expressions only, by assuming that the declared relational expressions hold throughout the program.