You are on page 1of 5

Here is the code listing (as requested) for the area moment of inertia and horiz ontal neutral

axis for a composite body that is discretized with rectangles: I001 LBL I I002 SF 10 I003 EQN IXX and Neutral Axis **enter the text as an eqn** I004 CF 10 I005 CLVARS I006 INPUT N I007 INPUT B (note: I have omitted line numbers from here on) INPUT H RCL H 2 / RCL +T RCL B RCL * H * RCL +Q STO Q RCL B RCL H * RCL +R STO R 1 RCL +V STO V RCL Q RCL / R RCL - C X^2

RCL *A RCL + I STO I RCL T RCL H 2 / + RCL Q RCL / R X^2 RCL *B RCL *H RCL H 3 Y^X RCL *B 12 / + RCL + I STO I RCL Q RCL / R STO C RCL B RCL * H RCL + A STO A

RCL T RCL +H STO T RCL V RCL N X>Y? GTO I007 I= **This is the value of composite Ix for your cross-section** C= **This is the location of Xbar, ie the X neutral axis** RTN LN=220 CK=704D Here is an example for an I-beam: XEQ I ENTER **screen will read: IXX AND NA (hit R/S to continue)** N=3 **number of sections** R/S B=5 **width of bottom flange** R/S H=0.25 **height of bottom flange** R/S B=0.5 **width of web** R/S H=8 **height of web** R/S B=3 **width of upper flange** R/S H=0.25 **height of upper flange** R/S (Program halts to VIEW the area moment of inertia, units length^4)

R/S (Program halts to VIEW the location of the x centroidal axis) R/S The result should be I = 54.6660 (units = length^4) C = 3.9063 (units = length, measured from base) Enjoy! I realize that this may now be shortened a bit, particularly in light of the new programming capabilities gained with the 35s. In progress! code redone Message #7 Posted by Ralph on 9 Aug 2007, 8:01 a.m., in response to message #6 by Les Wright I think this is more readable. I transcribe my programs in a spreadsheet. Makes line numbering easy. I001 I002 I003 I004 I005 I006 I007 I008 I009 I010 I011 I012 I013 I014 I015 I016 I017 I018 I019 I020 I021 I022 I023 I024 I025 I026 I027 I028 I029 I030 I031 I032 I033 I034 I035 I036 LBL I SF 10 IXX AND NEUTRAL AXIS CF 10 CLVARS INPUT N INPUT B INPUT H RCL H 2 / RCL+ T RCL B RCL * H * RCL+ Q STO Q RCL B RCL H * RCL+ R STO R 1 RCL+ V STO V RCL Q RCL/ R RCL- C X^2 RCL* A RCL+ I STO I RCL T RCL H 2 /

I037 I038 I039 I040 I041 I042 I043 I044 I045 I046 I047 I048 I049 I050 I051 I052 I053 I054 I055 I056 I057 I058 I059 I060 I061 I062 I063 I064 I065 I066 I067 I068 I069

+ RCL Q RCL/ R X^2 RCL* B RCL* H RCL H 3 Y^X RCL* B 12 / + RCL+ I STO I RCL Q RCL/ R STO C RCL B RCL* H RCL+ A STO A RCL T RCL+ H STO T RCL V RCL N X>Y? GTO I007 VIEW I VIEW C RTN

I added the view commands (67 and 68) Edited: 9 Aug 2007, 8:18 a.m.

You might also like