示例#1
0
def read_write_compare(bdf_filename, bdf_filename_out):
    """runs checks on the two bdfs"""
    vmodel = read_bdfv(bdf_filename)
    vmodel.write_bdf(bdf_filename_out)
    run_and_compare_fems(
        bdf_filename,
        bdf_filename_out,
        debug=False,
        xref=True,
        check=True,
        punch=False,
        cid=None,
        mesh_form=None,
        print_stats=False,
        encoding=None,
        sum_load=True,
        size=8,
        is_double=False,
        stop=False,
        nastran='',
        post=-1,
        dynamic_vars=None,
        quiet=False,
        dumplines=False,
        dictsort=False,
        nerrors=0,
        dev=False,
        crash_cards=None,
        run_extract_bodies=False,
    )
示例#2
0
    def test_isat_02():
        """vectorized vs. standard test on ISat_Launch_Sm_4pt.dat"""
        log = SimpleLogger(level='error')
        bdf_filename = os.path.join(test_path, 'iSat',
                                    'ISat_Launch_Sm_4pt.dat')
        bdf_filename_outv = os.path.join(test_path, 'iSat',
                                         'ISat_Launch_Sm_4ptv.dat')
        bdf_filename_out = os.path.join(test_path, 'iSat',
                                        'ISat_Launch_Sm_4pt2.dat')

        vmodel = read_bdfv(bdf_filename)
        vmodel.write_bdf(bdf_filename_outv)
        model = read_bdf(bdf_filename, log=log)
        model.write_bdf(bdf_filename_out)

        run_and_compare_fems(
            bdf_filename,
            bdf_filename_outv,
            debug=False,
            xref=True,
            check=True,
            punch=False,
            cid=None,
            mesh_form=None,
            print_stats=False,
            encoding=None,
            sum_load=False,
            size=8,
            is_double=False,
            stop=False,
            nastran='',
            post=-1,
            dynamic_vars=None,
            quiet=False,
            dumplines=False,
            dictsort=False,
            nerrors=0,
            dev=False,
            crash_cards=None,
        )
        os.remove(bdf_filename_out)