예제 #1
0
    def test_freq_analysis(self):
        # set up
        from femexamples.boxanalysis_frequency import setup
        setup(self.document, "ccxtools")
        test_name = "frequency"
        base_name = "cube_frequency"
        res_obj_name = "CCX_Mode1_Results"
        analysis_dir = testtools.get_unit_test_tmp_dir(self.temp_dir,
                                                       "FEM_ccx_frequency")

        # test input file writing
        fea = self.input_file_writing_test(
            test_name=test_name,
            base_name=base_name,
            analysis_dir=analysis_dir,
            test_end=True,
        )

        # test result reading
        self.result_reading_test(
            test_name=test_name,
            base_name=base_name,
            analysis_dir=analysis_dir,
            fea=fea,
            res_obj_name=res_obj_name,
        )
예제 #2
0
    def test_thermomech_flow1D(self):
        # set up
        from femexamples.thermomech_flow1d import setup
        setup(self.document, "ccxtools")
        base_name = get_namefromdef("test_")
        res_obj_name = "CCX_Time_1_0_Results"
        analysis_dir = testtools.get_fem_test_tmp_dir(self.pre_dir_name +
                                                      base_name)

        # test input file writing
        fea = self.input_file_writing_test(
            None,
            base_name,
            analysis_dir=analysis_dir,
            test_end=True,
        )

        # test result reading
        self.result_reading_test(
            None,
            base_name,
            analysis_dir=analysis_dir,
            fea=fea,
            res_obj_name=res_obj_name,
        )
예제 #3
0
    def test_box_frequency(
        self
    ):
        # set up
        from femexamples.boxanalysis_frequency import setup
        setup(self.document, "ccxtools")
        base_name = get_namefromdef("test_")
        res_obj_name = "CCX_Mode1_Results"
        analysis_dir = testtools.get_fem_test_tmp_dir(self.pre_dir_name + base_name)

        # test input file writing
        fea = self.input_file_writing_test(
            None,
            base_name,
            analysis_dir=analysis_dir,
            test_end=True,
        )

        # test result reading
        self.result_reading_test(
            None,
            base_name,
            analysis_dir=analysis_dir,
            fea=fea,
            res_obj_name=res_obj_name,
        )
예제 #4
0
 def test_box_static(
     self
 ):
     fcc_print("")
     from femexamples.boxanalysis_static import setup
     setup(self.document, "calculix")
     self.input_file_writing_test(get_namefromdef("test_"))
예제 #5
0
    def test_static_analysis(self):
        # set up
        from femexamples.boxanalysis_static import setup
        setup(self.document, "ccxtools")
        base_name = "cube_static"
        res_obj_name = "CCX_Results"
        analysis_dir = testtools.get_fem_test_tmp_dir(self.pre_dir_name +
                                                      base_name)

        # test input file writing
        fea = self.input_file_writing_test(
            None,
            base_name,
            analysis_dir=analysis_dir,
            test_end=True,
        )

        # test result reading
        self.result_reading_test(
            None,
            base_name,
            analysis_dir=analysis_dir,
            fea=fea,
            res_obj_name=res_obj_name,
        )
예제 #6
0
    def test_thermomech_spine_analysis(self):
        # set up
        from femexamples.thermomech_spine import setup
        setup(self.document, "ccxtools")
        test_name = "thermomechanical"
        base_name = "spine_thermomech"
        res_obj_name = "CCX_Results"
        analysis_dir = testtools.get_unit_test_tmp_dir(self.temp_dir,
                                                       "FEM_ccx_thermomech")

        # test input file writing
        fea = self.input_file_writing_test(
            test_name=test_name,
            base_name=base_name,
            analysis_dir=analysis_dir,
            test_end=True,
        )

        # test result reading
        self.result_reading_test(
            test_name=test_name,
            base_name=base_name,
            analysis_dir=analysis_dir,
            fea=fea,
            res_obj_name=res_obj_name,
        )
예제 #7
0
    def test_constraint_contact_solid_solid(self):
        # TODO does pass on my local machine, but not on ci
        return

        from femexamples.constraint_contact_solid_solid import setup
        setup(self.document, "calculix")
        self.input_file_writing_test(get_namefromdef("test_"))
예제 #8
0
    def test_constraint_contact_solid_solid(self):
        # does not pass on travis, but on my local system it does, Bernd
        return
        # TODO does not pass on Python 2
        if sys.version_info.major < 3:
            return

        from femexamples.constraint_contact_solid_solid import setup
        setup(self.document, "calculix")
        self.input_file_writing_test(get_namefromdef("test_"))
예제 #9
0
    def test_static_constraint_contact_solid_solid(self):
        # does not pass on travis, but on my local system it does, Bernd
        return
        # TODO does not pass on Python 2
        if sys.version_info.major < 3:
            return

        from femexamples.constraint_contact_solid_solid import setup
        setup(self.document, "ccxtools")
        self.input_file_writing_test(None, "constraint_contact_solid_solid")
예제 #10
0
    def test_thermomech_bimetall(self):
        # set up
        from femexamples.thermomech_bimetall import setup
        setup(self.document, "ccxtools")
        test_name = "thermomech bimetall"
        base_name = "thermomech_bimetall"
        analysis_dir = testtools.get_unit_test_tmp_dir(
            self.temp_dir, "FEM_ccx_thermomech_bimetall")

        # test input file writing
        self.input_file_writing_test(
            test_name=test_name,
            base_name=base_name,
            analysis_dir=analysis_dir,
        )
예제 #11
0
    def test_static_material_nonlinar(self):
        # set up
        from femexamples.material_nl_platewithhole import setup
        setup(self.document, "ccxtools")
        test_name = "nonlinear material"
        base_name = "mat_nonlinear"
        analysis_dir = testtools.get_unit_test_tmp_dir(self.temp_dir,
                                                       "FEM_ccx_matnonlinear")

        # test input file writing
        self.input_file_writing_test(
            test_name=test_name,
            base_name=base_name,
            analysis_dir=analysis_dir,
        )
예제 #12
0
    def test_static_material_multiple(self):
        # set up
        from femexamples.material_multiple_twoboxes import setup
        setup(self.document, "ccxtools")
        test_name = "multiple material"
        base_name = "mat_multiple"
        analysis_dir = testtools.get_unit_test_tmp_dir(self.temp_dir,
                                                       "FEM_ccx_multimat")

        # test input file writing
        self.input_file_writing_test(
            test_name=test_name,
            base_name=base_name,
            analysis_dir=analysis_dir,
        )
예제 #13
0
    def test_static_constraint_tie(self):
        # set up
        from femexamples.constraint_tie import setup
        setup(self.document, "ccxtools")
        test_name = "constraint tie"
        base_name = "constraint_tie"
        analysis_dir = testtools.get_unit_test_tmp_dir(
            self.temp_dir,
            "FEM_ccx_constraint_tie",
        )

        # test input file writing
        self.input_file_writing_test(
            test_name=test_name,
            base_name=base_name,
            analysis_dir=analysis_dir,
        )
예제 #14
0
 def test_static_constraint_force_faceload_hexa20(self):
     # set up
     from femexamples.ccx_cantilever_hexa20faceload import setup
     setup(self.document, "ccxtools")
     test_name = "canti ccx faceload hexa20"
     base_name = "canti_ccx_faceload_hexa20"
     analysis_dir = testtools.get_unit_test_tmp_dir(
         self.temp_dir,
         ("FEM_" + base_name),
     )
     fcc_print(self.document.Objects)
     # test input file writing
     self.input_file_writing_test(
         test_name=test_name,
         base_name=base_name,
         analysis_dir=analysis_dir,
     )
예제 #15
0
    def test_static_constraint_contact_solid_solid(self):
        # does not pass on travis, but on my local system it does, Bernd
        return
        # TODO does not pass on Python 2
        if sys.version_info.major < 3:
            return

        # set up
        from femexamples.constraint_contact_solid_solid import setup
        setup(self.document, "ccxtools")
        test_name = "constraint contact solid solid"
        base_name = "constraint_contact_solid_solid"
        analysis_dir = testtools.get_unit_test_tmp_dir(
            self.temp_dir,
            "FEM_ccx_constraint_contact_solid_solid",
        )

        # test input file writing
        self.input_file_writing_test(
            test_name=test_name,
            base_name=base_name,
            analysis_dir=analysis_dir,
        )
예제 #16
0
 def test_ccxcantilever_faceload(
     self
 ):
     from femexamples.ccx_cantilever_faceload import setup
     setup(self.document, "calculix")
     self.input_file_writing_test(get_namefromdef("test_"))
예제 #17
0
 def test_static_constraint_force_faceload_hexa20(self):
     from femexamples.ccx_cantilever_hexa20faceload import setup
     setup(self.document, "ccxtools")
     self.input_file_writing_test(None, "canti_ccx_faceload_hexa20")
예제 #18
0
 def test_thermomech_spine(
     self
 ):
     from femexamples.thermomech_spine import setup
     setup(self.document, "calculix")
     self.input_file_writing_test(get_namefromdef("test_"))
예제 #19
0
 def test_material_nonlinear(
     self
 ):
     from femexamples.material_nl_platewithhole import setup
     setup(self.document, "calculix")
     self.input_file_writing_test(get_namefromdef("test_"))
예제 #20
0
 def test_material_multiple_tensionrod_twoboxes(
     self
 ):
     from femexamples.material_multiple_tensionrod_twoboxes import setup
     setup(self.document, "calculix")
     self.input_file_writing_test(get_namefromdef("test_"))
예제 #21
0
 def test_material_multiple_bendingbeam_fivefaces(
     self
 ):
     from femexamples.material_multiple_bendingbeam_fivefaces import setup
     setup(self.document, "calculix")
     self.input_file_writing_test(get_namefromdef("test_"))
예제 #22
0
 def test_constraint_tie(
     self
 ):
     from femexamples.constraint_tie import setup
     setup(self.document, "calculix")
     self.input_file_writing_test(get_namefromdef("test_"))
예제 #23
0
 def test_ccxcantilever_prescribeddisplacement(
     self
 ):
     from femexamples.ccx_cantilever_prescribeddisplacement import setup
     setup(self.document, "calculix")
     self.input_file_writing_test(get_namefromdef("test_"))
예제 #24
0
 def test_static_constraint_tie(self):
     from femexamples.constraint_tie import setup
     setup(self.document, "ccxtools")
     self.input_file_writing_test(None, "constraint_tie")
예제 #25
0
 def test_static_material_multiple(self):
     from femexamples.material_multiple_twoboxes import setup
     setup(self.document, "ccxtools")
     self.input_file_writing_test(None, "mat_multiple")
예제 #26
0
 def test_static_material_nonlinar(self):
     from femexamples.material_nl_platewithhole import setup
     setup(self.document, "ccxtools")
     self.input_file_writing_test(None, "mat_nonlinear")
예제 #27
0
 def test_ccx_buckling_flexuralbuckling(self):
     from femexamples.ccx_buckling_flexuralbuckling import setup
     setup(self.document, "calculix")
     self.input_file_writing_test(get_namefromdef("test_"))
예제 #28
0
 def test_square_pipe_end_twisted_nodeforces(self):
     from femexamples.square_pipe_end_twisted_nodeforces import setup
     setup(self.document, "calculix")
     self.input_file_writing_test(get_namefromdef("test_"))
예제 #29
0
 def test_frequency_beamsimple(self):
     from femexamples.frequency_beamsimple import setup
     setup(self.document, "calculix")
     self.input_file_writing_test(get_namefromdef("test_"))
예제 #30
0
 def test_thermomech_bimetall(self):
     from femexamples.thermomech_bimetall import setup
     setup(self.document, "ccxtools")
     self.input_file_writing_test(None, "thermomech_bimetall")