Example #1
0
    def setUp(self):
        from openmdao.utils.file_wrap import FileParser

        global parser  # global so we don't need `self.` in feature doc
        parser = FileParser()

        parser._data = ["CASE 1", "3,7,2,4,5,6"]
Example #2
0
    def setUp(self):
        import numpy
        from openmdao.utils.file_wrap import FileParser

        global parser  # global so we don't need `self.` in feature doc
        parser = FileParser()

        # A way to "cheat" and do this without a file.
        parser._data = []
        parser._data.append(
            'FREQ  DELTA  -8.5  -8.5  -8.5  -8.5  -8.5  -8.5  -8.5  -8.5  -8.5  -8.5'
        )
        parser._data.append(' Hz')
        parser._data.append(
            ' 50.   1.0   30.0  34.8  36.3  36.1  34.6  32.0  28.4  23.9  18.5  12.2'
        )
        parser._data.append(
            ' 63.   1.0   36.5  41.3  42.8  42.6  41.1  38.5  34.9  30.4  25.0  18.7'
        )
        parser._data.append(
            ' 80.   1.0   42.8  47.6  49.1  48.9  47.4  44.8  41.2  36.7  31.3  25.0'
        )
        parser._data.append(
            '100.   1.0   48.4  53.1  54.7  54.5  53.0  50.4  46.8  42.3  36.9  30.6'
        )
Example #3
0
    def setUp(self):
        from openmdao.utils.file_wrap import FileParser

        global parser  # global so we don't need `self.` in feature doc
        parser = FileParser()

        parser._data = [
            "CASE 1", "12345678901234567890", "TTF    3.7-9.4434967"
        ]
Example #4
0
    def setUp(self):

        global parser  # global so we don't need `self.` in feature doc
        parser = FileParser()

        parser._data = [
            "CASE 1",
            "3,7,2,4,5,6"
        ]
Example #5
0
    def setUp(self):
        from openmdao.utils.file_wrap import FileParser

        global parser  # global so we don't need `self.` in feature doc
        parser = FileParser()

        parser._data = [
            "CASE 1",
            "3,7,2,4,5,6"
        ]
Example #6
0
    def setUp(self):
        from openmdao.utils.file_wrap import FileParser

        global parser  # global so we don't need `self.` in feature doc
        parser = FileParser()

        parser._data = [
            "CASE 2", "123456789012345678901234567890",
            "NODE 11 22 33 COMMENT", "NODE 44 55 66 STUFF"
        ]
Example #7
0
    def setUp(self):

        global parser  # global so we don't need `self.` in feature doc
        parser = FileParser()

        parser._data = [
            "CASE 1",
            "12345678901234567890",
            "TTF    3.7-9.4434967"
        ]
Example #8
0
    def setUp(self):
        from openmdao.utils.file_wrap import FileParser

        global parser  # global so we don't need `self.` in feature doc
        parser = FileParser()

        parser._data = [
            "CASE 1",
            "12345678901234567890",
            "TTF    3.7-9.4434967"
        ]
Example #9
0
    def setUp(self):

        global parser  # global so we don't need `self.` in feature doc
        parser = FileParser()

        parser._data = [
            "CASE 2",
            "123456789012345678901234567890",
            "NODE 11 22 33 COMMENT",
            "NODE 44 55 66 STUFF"
        ]
Example #10
0
    def setUp(self):
        from openmdao.utils.file_wrap import FileParser

        global parser  # global so we don't need `self.` in feature doc
        parser = FileParser()

        parser._data = [
            "CASE 2",
            "123456789012345678901234567890",
            "NODE 11 22 33 COMMENT",
            "NODE 44 55 66 STUFF"
        ]
Example #11
0
    def setUp(self):
        import numpy
        from openmdao.utils.file_wrap import FileParser

        global parser  # global so we don't need `self.` in feature doc
        parser = FileParser()

        parser._data = [
            "LOAD CASE 1", "STRESS 1.3334e7 3.9342e7 NaN 2.654e5",
            "DISPLACEMENT 2.1 4.6 3.1 2.22234", "LOAD CASE 2",
            "STRESS 11 22 33 44 55 66", "DISPLACEMENT 1.0 2.0 3.0 4.0 5.0"
        ]
Example #12
0
    def setUp(self):
        import numpy
        from openmdao.utils.file_wrap import FileParser

        global parser  # global so we don't need `self.` in feature doc
        parser = FileParser()

        # A way to "cheat" and do this without a file.
        parser._data = []
        parser._data.append('FREQ  DELTA  -8.5  -8.5  -8.5  -8.5  -8.5  -8.5  -8.5  -8.5  -8.5  -8.5')
        parser._data.append(' Hz')
        parser._data.append(' 50.   1.0   30.0  34.8  36.3  36.1  34.6  32.0  28.4  23.9  18.5  12.2')
        parser._data.append(' 63.   1.0   36.5  41.3  42.8  42.6  41.1  38.5  34.9  30.4  25.0  18.7')
        parser._data.append(' 80.   1.0   42.8  47.6  49.1  48.9  47.4  44.8  41.2  36.7  31.3  25.0')
        parser._data.append('100.   1.0   48.4  53.1  54.7  54.5  53.0  50.4  46.8  42.3  36.9  30.6')
Example #13
0
    def setUp(self):
        import numpy
        from openmdao.utils.file_wrap import FileParser

        global parser  # global so we don't need `self.` in feature doc
        parser = FileParser()

        parser._data = [
            "LOAD CASE 1",
            "STRESS 1.3334e7 3.9342e7 NaN 2.654e5",
            "DISPLACEMENT 2.1 4.6 3.1 2.22234",
            "LOAD CASE 2",
            "STRESS 11 22 33 44 55 66",
            "DISPLACEMENT 1.0 2.0 3.0 4.0 5.0"
        ]