Exemplo n.º 1
0
    def setUp(self):
        self.inputs, self.discrete_inputs = getInputs()
        self.outputs = {}
        self.discrete_outputs = {}

        self.outputs['pontoon_stress'] = np.zeros(70)

        self.mytruss = sP.FloatingFrame(nFull=NPTS, nFullTow=NPTS)
Exemplo n.º 2
0
    def setUp(self):
        self.inputs, self.discrete_inputs = getInputs()
        self.outputs = {}
        self.discrete_outputs = {}
        self.outputs['pontoon_stress'] = np.zeros(70)

        self.mytruss = sP.FloatingFrame(n_height_main=NHEIGHT,
                                        n_height_off=NHEIGHT,
                                        n_height_tow=NHEIGHT,
                                        modeling_options=opt)
Exemplo n.º 3
0
    def testRunModal(self):
        inputs, discrete_inputs = getInputs()
        outputs = {}
        discrete_outputs = {}
        outputs['pontoon_stress'] = np.zeros(70)

        newopt = copy.copy(opt)
        newopt['run_modal'] = True
        mytruss = sP.FloatingFrame(n_height_main=NHEIGHT,
                                   n_height_off=NHEIGHT,
                                   n_height_tow=NHEIGHT,
                                   modeling_options=newopt)

        mytruss.compute(inputs, outputs, discrete_inputs, discrete_outputs)
        self.assertTrue(True)