def Area(self): r""" Gets the Area :math:`A` of the PBEAML. .. math:: A = \int \, A(x) dx .. note:: a spline is fit to :math:`A(x)` and then integrated. """ Areas = [] for dim in self.dim: Areas.append(_bar_areaL('PBEAML', self.Type, dim)) A = integrate_line(self.xxb, Areas) return A
def Area(self): r""" Gets the Area :math:`A` of the PBEAML. .. math:: A = \int \, A(x) dx .. note:: a spline is fit to :math:`A(x)` and then integrated. """ areas = [] for dim in self.dim: areas.append(_bar_areaL('PBEAML', self.Type, dim)) try: A = integrate_line(self.xxb, areas) except ValueError: print('PBEAML integration error; pid=%s x/xb=%s areas=%s' % (self.pid, self.xxb, areas)) A = mean(areas) return A
def I12(self): i12 = integrate_line(self.xxb, self.i12) return i12