def writeFile5(delta, length, distance, modOfElas, momOfInert, rLeft, rRight, mLeft, mRight, thetaLeft, thetaRight, yLeft, yRight): #Creates and writes the output file for Lateral Displacement calculations inputLabels = ["Lateral Displacement: ", "Length of Beam: ", "Distance from Left End of Beam to Lateral Displacement Location: ", "Modulus of Elasticity of Material: ", "Area Moment of Inertia of Section: "] inputValues = [round(delta,2), round(length,2), round(distance,2), round(modOfElas,2), round(momOfInert,2)] inputDims = [' in', ' in', ' in', ' lb/in2', ' in4'] outputLabels = ["Vertical End Reaction at Left End: ", "Vertical End Reaction at Right End: ", "Reaction End Moment at Left End: ", "Reaction End Moment at Right End: ", "Slope of Beam at Left End: ", "Slope of Beam at Right End: ", "Deflection of Beam at Left End: ", "Deflection of Beam at Right End: "] outputValues = [round(rLeft,2), round(rRight,2), round(mLeft,2), round(mRight,2), round(thetaLeft,2), round(thetaRight,2), round(yLeft,2), round(yRight,2),] outputDims = [' lb', ' lb', ' in-lb', ' in-lb', ' rad', ' rad', ' in', ' in'] return fileWriter("Straight Beam", "Intermediate External Lateral Displacement",inputLabels, inputValues, inputDims, outputLabels, outputValues, outputDims)
def writeFile2(loada, loadb, length, distance, modOfElas, momOfInert, rLeft, rRight, mLeft, mRight, thetaLeft, thetaRight, yLeft, yRight): #Creates and writes the output file for Distributed Load calculations inputLabels = ["Unit Load at Left Edge: ", "Unit Load at Right Edge: ", "Length of Beam: ", "Distance from Left End of Beam to Edge of Distributed Load: ", "Modulus of Elasticity of Material: ", "Area Moment of Inertia of Section: "] inputValues = [round(loada,2), round(loadb,2), round(length,2), round(distance,2), round(modOfElas,2), round(momOfInert,2)] inputDims = [' lb/in', ' lb/in', ' in', ' in', ' lb/in2', ' in4'] outputLabels = ["Vertical End Reaction at Left End: ", "Vertical End Reaction at Right End: ", "Reaction End Moment at Left End: ", "Reaction End Moment at Right End: ", "Slope of Beam at Left End: ", "Slope of Beam at Right End: ", "Deflection of Beam at Left End: ", "Deflection of Beam at Right End: "] outputValues = [round(rLeft,2), round(rRight,2), round(mLeft,2), round(mRight,2), round(thetaLeft,2), round(thetaRight,2), round(yLeft,2), round(yRight,2),] outputDims = [' lb', ' lb', ' in-lb', ' in-lb', ' rad', ' rad', ' in', ' in'] return fileWriter("Straight Beam", "Partial Distributed Load",inputLabels, inputValues, inputDims, outputLabels, outputValues, outputDims)
def writeFile6(temp1, temp2, gamma, length, depth, distance, modOfElas, momOfInert, rLeft, rRight, mLeft, mRight, thetaLeft, thetaRight, yLeft, yRight): #Creates and writes the output file for Temperature Variation calculations inputLabels = ["Temperature at Top of Beam: ", "Temperature at Bottom of Beam: ", "Temperature Coefficient of Expansion: ", "Length of Beam: ", "Depth of Beam: ", "Distance from Left End of Beam to Point of Interest: ", "Modulus of Elasticity of Material: ", "Area Moment of Inertia of Section: "] inputValues = [round(temp1,2), round(temp2,2), round(gamma,2), round(length,2), round(depth,2), round(distance,2), round(modOfElas,2), round(momOfInert,2)] inputDims = [' degF', ' degF', ' in/in/degF', ' in', ' in', ' in', ' lb/in2', ' in4'] outputLabels = ["Vertical End Reaction at Left End: ", "Vertical End Reaction at Right End: ", "Reaction End Moment at Left End: ", "Reaction End Moment at Right End: ", "Slope of Beam at Left End: ", "Slope of Beam at Right End: ", "Deflection of Beam at Left End: ", "Deflection of Beam at Right End: "] outputValues = [round(rLeft,2), round(rRight,2), round(mLeft,2), round(mRight,2), round(thetaLeft,2), round(thetaRight,2), round(yLeft,2), round(yRight,2),] outputDims = [' lb', ' lb', ' in-lb', ' in-lb', ' rad', ' rad', ' in', ' in'] return fileWriter("Straight Beam", "Uniform Temperature Variation Along Beam",inputLabels, inputValues, inputDims, outputLabels, outputValues, outputDims)