def writeRebars(self, outputFile, concrete, AsMin): '''Write rebar family data.''' self.writeDef(outputFile, concrete) outputFile.write(" area: As= " + fmt.Areas.format(self.getAs() * 1e4) + " cm2/m areaMin: " + fmt.Areas.format(AsMin * 1e4) + " cm2/m") rf.writeF(outputFile, " F(As)", self.getAs() / AsMin)
def writeResultStress(self, outputFile, M): '''Cheking of stresses under permanent loads (SIA 262 fig. 31)''' if (abs(M) > 0): stress = M / (0.9 * self.h * self.tensionRebars.getAs()) outputFile.write(" Stress check: M= " + fmt.Esf.format(M / 1e3) + " kN m, $\sigma_s$= " + fmt.Esf.format(stress / 1e6) + " MPa\\\\\n") outputFile.write( " $\sigma_{lim}$= " + fmt.Esf.format(self.stressLimitUnderPermanentLoads / 1e6) + " MPa") rebar_family.writeF(outputFile, " F($\sigma_s$)", self.stressLimitUnderPermanentLoads / stress)
def writeResultFlexion(self, outputFile, Nd, Md, Vd): AsMin = self.getMinReinfAreaUnderFlexion() reinfDevelopment = self.tensionRebars.getBasicAnchorageLength( self.concrete) outputFile.write(" RC section dimensions; b= " + fmt.Lengths.format(self.b) + " m, h= " + fmt.Lengths.format(self.h) + " m\\\\\n") self.tensionRebars.writeRebars(outputFile, self.concrete, AsMin) if (abs(Md) > 0): MR = self.getMR() outputFile.write(" Bending check: Md= " + fmt.Esf.format(Md / 1e3) + " kN m, MR= " + fmt.Esf.format(MR / 1e3) + "kN m") rebar_family.writeF(outputFile, " F(M)", MR / Md) if (abs(Vd) > 0): VR = self.getVR(Nd, Md) outputFile.write(" Shear check: Vd= " + fmt.Esf.format(Vd / 1e3) + " kN, VR= " + fmt.Esf.format(VR / 1e3) + " kN") rebar_family.writeF(outputFile, " F(V)", VR / Vd)