Beispiel #1
0
 def test_panair_io_02(self):
     model = PanairGrid(log=None, debug=False)
     msg = (
         '$circular sections - nacelle with composite panels\n'
         # =kn\n'
         '1.\n'
         # =kt\n'
         '1.\n'
         # =nopt                                                                 netname\n'
         '0.                                                                    cowlu\n'
         # =nm\n'
         '20.\n'
         # =xs(1)    ri(1)     xs(2)     ri(2)     xs(*)     ri(*)\n'
         '    2.0000    2.3000    1.5756    2.3000    1.1486    2.3000\n'
         '    0.7460    2.3030    0.4069    2.3286    0.1624    2.3790\n'
         '    0.0214    2.4542   -0.0200    2.5485    0.0388    2.6522\n'
         '    0.2056    2.7554    0.4869    2.8522    0.8883    2.9413\n'
         '    1.4250    3.0178    2.1188    3.0656    2.9586    3.0658\n'
         '    3.8551    3.0175    4.6715    2.9439    5.3492    2.8700\n'
         '    6.0000    2.7842    6.4687    2.7442\n'
         # =nn\n'
         '5.\n'
         # =th(1)    th(2)     th(3)     th(4)     th(5)\n'
         '-90.      -45.      0.        45.       90.\n')
     section = msg.split('\n')
     model._read_circular_section(section)
     model.write_panair('junk_circ.inp')
     os.remove('junk_circ.inp')