def __init__(self, x, y, disp, xcb, ship): """ Constructor. performs plot and show it (Using pyxplot). @param x X coordinates. @param y Transversal areas. @param disp Ship displacement. @param xcb Bouyancy center length. @param ship Active ship instance. """ if self.createDirectory(): return if self.saveData(x,y,ship): return if self.saveLayout(x,y,disp,xcb,ship): return if self.execute(): return ImageGui.open(self.path + 'areas.png')
def __init__(self, x, y, disp, draft, trim): """ Constructor. performs plot and show it (Using pyxplot). @param x Roll angles [deg]. @param y GZ value [m]. @param disp Ship displacement [tons]. @param draft Ship draft [m]. @param trim Ship trim angle [deg]. """ if self.createDirectory(): return if self.saveData(x, y): return if self.saveLayout(x, y, disp, draft, trim): return if self.execute(): return ImageGui.open(self.path + 'gz.png')
def __init__(self, x, y, disp, draft, trim): """ Constructor. performs plot and show it (Using pyxplot). @param x Roll angles [deg]. @param y GZ value [m]. @param disp Ship displacement [tons]. @param draft Ship draft [m]. @param trim Ship trim angle [deg]. """ if self.createDirectory(): return if self.saveData(x,y): return if self.saveLayout(x,y, disp, draft, trim): return if self.execute(): return ImageGui.open(self.path + 'gz.png')
def __init__(self, x, y, disp, xcb, ship): """ Constructor. performs plot and show it (Using pyxplot). @param x X coordinates. @param y Transversal areas. @param disp Ship displacement. @param xcb Bouyancy center length. @param ship Active ship instance. """ if self.createDirectory(): return if self.saveData(x, y, ship): return if self.saveLayout(x, y, disp, xcb, ship): return if self.execute(): return ImageGui.open(self.path + 'areas.png')
def __init__(self, ship, trim, drafts): """ Constructor. performs plot and show it (Using pyxplot). @param ship Selected ship instance @param trim Trim in degrees. @param drafts List of drafts to be performed. """ if self.createDirectory(): return if self.saveData(ship, trim, drafts): return if self.saveLayout(trim): return if self.execute(): return ImageGui.open(self.path + 'volume.png') ImageGui.open(self.path + 'stability.png') ImageGui.open(self.path + 'coeffs.png')