Esempio n. 1
0
def migrate_classes(migration_table):
    '''Walk through all files within the simdb storage'
    and perform the replacement of strings specifified in `replace_dict\
    in all files ending with pickle'
    '''
    from matresdev.db.simdb import SimDB
    simdb = SimDB()

    replace_string_in_files(simdb.exdata_dir, migration_table, '.pickle')
    replace_string_in_files(simdb.matdata_dir, migration_table, '.pickle')
    replace_string_in_files(simdb.exdata_dir, migration_table, 'ex_type.cls')
if __name__ == '__main__':

    from matresdev.db.simdb import \
        SimDB

    import numpy as np

    import os

    from lcc_table import LCCTableULS, LC, LCCTableSLS

    # Access to the top level directory of the database
    #
    simdb = SimDB()

    # dimensioning of barrel shells for all loading cases
    # (incl. superposition of temperature loading cases)
    #
    data_dir = os.path.join(
        simdb.simdb_dir,
        'simdata',
        'input_data_hangar',
        'bearing_sector',
    )

    #------------------------
    # define loading cases:
    #------------------------

    #----------------------------------------------------------------------
    # (c) dimensioning with loads according to DIN EN 1991-1-3 (snow) and DIN EN 1991-1-4 (wind)