Exemplo n.º 1
0
def check_external_protection(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():

        input_param = 'protection type [-]'
        PARAM = Input_DB[input_param][ind_elem]
        if not (PARAM == 'concrete matress' or PARAM == 'rock filter bag'):
            warning_list.append(
                'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' +
                Input_module + '/index:' + str(ind_elem) + ' is Wrong! ' +
                'Only "concrete matress" or "rock filter bag" accepted.')
            ERROR_IN_MODULE = True

        input_param = 'x coord [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'y coord [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'zone [-]'
        ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem,
                                                     input_param, Input_module,
                                                     warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 2
0
def check_metocean(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():

        input_param = 'year [-]'
        ERROR_IN_PARAM, warning_list = check_integer_long(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'month [-]'
        ERROR_IN_PARAM, warning_list = check_integer_long(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'day [-]'
        ERROR_IN_PARAM, warning_list = check_integer_long(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'hour [-]'
        ERROR_IN_PARAM, warning_list = check_integer_long(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Hs [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Tp [s]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Ws [m/s]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Cs [m/s]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 3
0
def check_cable_route(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():

        input_param = 'x coord [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'y coord [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'zone [-]'
        ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem,
                                                     input_param, Input_module,
                                                     warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'bathymetry [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'soil type [-]'
        ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem,
                                                     input_param, Input_module,
                                                     warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'burial depth [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'split pipe [-]'
        ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem,
                                                     input_param, Input_module,
                                                     warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 4
0
def check_excavating(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():

        input_param = 'Depth rating [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Width [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Height [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Weight [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True


#        input_param = 'Lenght or diameter [m]'
#        ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

        input_param = 'Excavator day rate [EURO/day]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Personnel day rate [EURO/12h]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 5
0
def check_connectors(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():

        #        input_param = 'type [-]'
        #        PARAM = Input_DB[input_param][ind_elem]
        #        if not (PARAM == 'wet-mate' or PARAM == 'dry-mate' or PARAM == 'splice'):
        #            warning_list.append( 'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong! '
        #                                 + 'Only "wet-mate" or "dry-mate" or "splice" accepted.')
        #            ERROR_IN_MODULE = True

        #        input_param = 'length [m]'
        #        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
        #        if ERROR_IN_PARAM:
        #            ERROR_IN_MODULE = True

        input_param = 'width [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'height [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'dry mass [kg]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'mating force [N]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'demating force [N]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 6
0
def check_splitpipes(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():

        #        input_param = 'Material [-]'
        #        ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem, input_param, Input_module, warning_list)
        #        if ERROR_IN_PARAM:
        #            ERROR_IN_MODULE = True

        #        input_param = 'Unit weight air [kg]'
        #        ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list)
        #        if ERROR_IN_PARAM:
        #            ERROR_IN_MODULE = True

        #        input_param = 'Unit weight water [kg]'
        #        ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list)
        #        if ERROR_IN_PARAM:
        #            ERROR_IN_MODULE = True

        input_param = 'Unit length [mm]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True


#        input_param = 'Unit wall thichness [mm]'
#        ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Unit inner diameter [mm]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Unit outer diameter [mm]'
#        ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Max cable size [mm]'
#        ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Min bending radius [m]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

        input_param = 'Cost per unit [EURO]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 7
0
def check_subdevice(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():

        input_param = 'length [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'width [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'height [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'dry mass [kg]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True


#        input_param = 'assembly strategy [-]' # 'assembly location [-]' !..
#        PARAM = Input_DB[input_param][ind_elem]
#        if not (PARAM == 'port' or PARAM == 'site'):
#            warning_list.append( 'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong! '
#                                 + 'Only "port" or "site" accepted.')
#            ERROR_IN_MODULE = True

        input_param = 'assembly duration [h]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 8
0
def check_rockfilterbags(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():

        input_param = 'Weight [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        # input_param = 'Particle diameter [mm]'
        # ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list)
        # if ERROR_IN_PARAM:
        #     ERROR_IN_MODULE = True

#        input_param = 'Mesh size [mm]'
#        ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

        input_param = 'Diameter [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Height [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True


#        input_param = 'Volume [m^ 3]'
#        ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Velocity unit [m/s]'
#        ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Velocity grouped [m/s]'
#        ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

        input_param = 'Cost per unit [EURO]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 9
0
def check_collect(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():

        input_param = 'type [-]'
        PARAM = Input_DB[input_param][ind_elem]
        if not (PARAM == 'surface piercing' or PARAM == 'seabed'):
            warning_list.append(
                'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' +
                Input_module + '/index:' + str(ind_elem) + ' is Wrong! ' +
                'Only "surface piercing" or "seabed" accepted.')
            ERROR_IN_MODULE = True

        input_param = 'x coord [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'y coord [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'zone [-]'
        ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem,
                                                     input_param, Input_module,
                                                     warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'length [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'width [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'height [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'dry mass [kg]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        # input_param = 'upstream ei type [-]'
        # ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem, input_param, Input_module, warning_list)
        # if ERROR_IN_PARAM:
        #     ERROR_IN_MODULE = True
        #
        # input_param = 'upstream ei id [-]'
        # ERROR_IN_PARAM, warning_list = check_integer_long(Input_DB, ind_elem, input_param, Input_module, warning_list)
        # if ERROR_IN_PARAM:
        #     ERROR_IN_MODULE = True
        #
        # input_param = 'downstream ei type [-]'
        # ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem, input_param, Input_module, warning_list)
        # if ERROR_IN_PARAM:
        #     ERROR_IN_MODULE = True
        #
        # input_param = 'downstream ei id [-]'
        # ERROR_IN_PARAM, warning_list = check_integer_long(Input_DB, ind_elem, input_param, Input_module, warning_list)
        # if ERROR_IN_PARAM:
        #     ERROR_IN_MODULE = True

        input_param = 'nr pigtails [-]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'pigtails length [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'pigtails diameter [mm]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'pigtails cable dry mass [kg/m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'pigtails total dry mass [kg]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 10
0
def check_found(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():
        input_param = 'x coord [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'y coord [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'zone [-]'
        ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem,
                                                     input_param, Input_module,
                                                     warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'length [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'width [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'height [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'installation depth [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'dry mass [kg]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'grout volume [m3]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'type [-]'
        PARAM = Input_DB[input_param][ind_elem]
        if not (PARAM == 'pile foundation' or  PARAM == 'pile anchor' or  PARAM == 'gravity foundation' or  PARAM == 'gravity anchor' \
                        or  PARAM == 'shallow foundation' or  PARAM == 'shallow anchor' or  PARAM == 'direct-embedment anchor'\
                        or  PARAM == 'drag-embedment anchor' or PARAM == 'suction caisson anchor'):
            warning_list.append(
                'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' +
                Input_module + '/index:' + str(ind_elem) + ' is Wrong! ' +
                'Only "pile foundation", "pile anchor", "gravity foundation", "gravity anchor", "shallow foundation", "shallow anchor", "direct-embedment anchor", "drag-embedment anchor" or "suction caisson anchor" accepted.'
            )
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 11
0
def check_vibrodriver(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():

        input_param = 'Width [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Length [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Height [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Vibro driver weight [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Clamp weight [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Min pile diameter [mm]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Max pile diameter [mm]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Max pile weight [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'AE footprint [m^2]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'AE weight [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Vibro diver day rate [EURO/day]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Personnel day rate [EURO/day]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 12
0
def check_drillingrigs(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():

        input_param = 'Diameter [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Length [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Weight [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Drilling diameter range [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Max drilling depth [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Max water depth [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True


#        input_param = 'Torque [kNm]'
#        ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Pull back [t]'
#        ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

        input_param = 'AE footprint [m^2]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'AE weight [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Drill rig day rate [EURO/day]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Personnel day rate [EURO/day]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 13
0
def check_rov(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():

        input_param = 'ROV class [-]'
        PARAM = Input_DB[input_param][ind_elem]
        if not (PARAM == 'Inspection class' or PARAM == 'Workclass'):
            warning_list.append(
                'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' +
                Input_module + '/index:' + str(ind_elem) + ' is Wrong! ' +
                'Only "Inspection class" or "Workclass" accepted.')
            ERROR_IN_MODULE = True

        input_param = 'Depth rating [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Length [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Width [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Height [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Weight [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Payload [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'AE footprint [m^2]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'AE weight [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'AE supervisor [-]'
        ERROR_IN_PARAM, warning_list = check_integer_long(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'AE technician [-]'
        ERROR_IN_PARAM, warning_list = check_integer_long(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'ROV day rate [EURO/day]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Supervisor rate [EURO/12h]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Technician rate [EURO/12h]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 14
0
def check_cable_burial(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():

        #        input_param = 'Burial tool type [-]'
        #        PARAM = Input_DB[input_param][ind_elem]
        #        if not (PARAM == 'Plough' or PARAM == 'ROV' or PARAM == 'Tracked' or pd.isnull(PARAM)):
        #            warning_list.append( 'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong! '
        #                                 + 'Only "Plough" or "ROV" or "Tracked" accepted.')
        #            ERROR_IN_MODULE = True

        input_param = 'Max operating depth [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Tow force required [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Length [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Width [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Height [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Weight [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Jetting capability [yes/no]'
        PARAM = Input_DB[input_param][ind_elem]
        if not (PARAM == 'yes' or PARAM == 'no' or pd.isnull(PARAM)):
            warning_list.append('Input: ' + input_param + ' = ' + str(PARAM) +
                                ' in ' + Input_module + '/index:' +
                                str(ind_elem) + ' is Wrong!' +
                                'Only "yes" or "no" accepted.')
            ERROR_IN_MODULE = True

        input_param = 'Ploughing capability [yes/no]'
        PARAM = Input_DB[input_param][ind_elem]
        if not (PARAM == 'yes' or PARAM == 'no' or pd.isnull(PARAM)):
            warning_list.append('Input: ' + input_param + ' = ' + str(PARAM) +
                                ' in ' + Input_module + '/index:' +
                                str(ind_elem) + ' is Wrong!' +
                                'Only "yes" or "no" accepted.')
            ERROR_IN_MODULE = True

        input_param = 'Cutting capability [yes/no]'
        PARAM = Input_DB[input_param][ind_elem]
        if not (PARAM == 'yes' or PARAM == 'no' or pd.isnull(PARAM)):
            warning_list.append('Input: ' + input_param + ' = ' + str(PARAM) +
                                ' in ' + Input_module + '/index:' +
                                str(ind_elem) + ' is Wrong!' +
                                'Only "yes" or "no" accepted.')
            ERROR_IN_MODULE = True

        input_param = 'Jetting trench depth [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Ploughing trench depth [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Cutting trench depth [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Max cable diameter [mm]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Min cable bending radius [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'AE footprint [m^2]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'AE weight [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Burial tool day rate [EURO/day]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Personnel day rate [EURO/12h]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 15
0
def check_divers(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():

        input_param = 'Max operating depth [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Deployment eq. footprint [m^2]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Deployment eq. weight [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True


#        input_param = 'Nr supervisors [-]'
#        ERROR_IN_PARAM, warning_list = check_integer_long(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Nr divers [-]'
#        ERROR_IN_PARAM, warning_list = check_integer_long(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Nr tenders [-]'
#        ERROR_IN_PARAM, warning_list = check_integer_long(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Nr technicians [-]'
#        ERROR_IN_PARAM, warning_list = check_integer_long(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Nr support technicians [-]'
#        ERROR_IN_PARAM, warning_list = check_integer_long(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Deployment eq. day rate [EURO/day]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Supervisor day rate [EURO/day]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Divers day rate [EURO/day]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Tenders day rate [EURO/day]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Technicians day rate [EURO/day]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Life support day rate [EURO/day]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

        input_param = 'Total day rate [EURO/day]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 16
0
def check_vess(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():
        input_param = 'Gross tonnage [ton]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Length [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Beam [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Consumption [l/h]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Consumption [l/h]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Deck space [m^2]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Deck loading [t/m^2]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Max. cargo [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Bollard pull [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Transit speed [m/s]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

#        input_param = 'Max. Speed [m/s]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Crew size [-]'
#        ERROR_IN_PARAM, warning_list = check_integer(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

        input_param = 'External  personnel [-]'
        ERROR_IN_PARAM, warning_list = check_integer(Input_DB, ind_elem,
                                                     input_param, Input_module,
                                                     warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'OLC: Transit maxHs [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'OLC: Transit maxTp [s]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'OLC: Transit maxCs [m/s]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'OLC: Transit maxWs [m/s]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'OLC: Towing maxHs [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

#        input_param = 'OLC: Towing maxTp [s]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'OLC: Towing maxCs [knots]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'OLC: Towing maxWs [m/s]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

        input_param = 'OLC: Jacking maxHs [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'OLC: Jacking maxTp [s]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'OLC: Jacking maxCs [m/s]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'OLC: Jacking maxWs [m/s]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Crane capacity [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

#        input_param = 'Crane radius [m]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

        input_param = 'Turntable number [-]'
        ERROR_IN_PARAM, warning_list = check_integer(Input_DB, ind_elem,
                                                     input_param, Input_module,
                                                     warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Turntable loading [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

#        input_param = 'Turntable outer diameter [m]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

        input_param = 'Turntable inner diameter [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

#        input_param = 'Turntable height [m]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

        input_param = 'Cable splice [yes/no]'
        PARAM = Input_DB[input_param][ind_elem]
        if not (PARAM == 'yes' or PARAM == 'no' or pd.isnull(PARAM)):
            warning_list.append('Input: ' + input_param + ' = ' + str(PARAM) +
                                ' in ' + Input_module + '/index:' +
                                str(ind_elem) + ' is Wrong!' +
                                'Only "yes" or "no" accepted.')
            ERROR_IN_MODULE = True

#        input_param = 'Ground out capabilities [yes/no]'
#        PARAM = Input_DB[input_param][ind_elem]
#        if not (PARAM == 'yes' or PARAM == 'no' or pd.isnull(PARAM)):
#            warning_list.append( 'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong!'
#                                 + 'Only "yes" or "no" accepted.')
#            ERROR_IN_MODULE = True

        input_param = 'DP [-]'
        ERROR_IN_PARAM, warning_list = check_integer(Input_DB, ind_elem,
                                                     input_param, Input_module,
                                                     warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

#        input_param = 'Rock storage capacity [t]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Max dumping depth [m]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Max dumping capacity [t/h]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Fall pipe diameter [mm]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Diving moonpool [yes/no]'
#        PARAM = Input_DB[input_param][ind_elem]
#        if not (PARAM == 'yes' or PARAM == 'no' or pd.isnull(PARAM)):
#            warning_list.append( 'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong!'
#                                 + 'Only "yes" or "no" accepted.')
#            ERROR_IN_MODULE = True

#        input_param = 'Diving depth [m]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Diving capacity [-]'
#        ERROR_IN_PARAM, warning_list = check_integer(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'ROV inspection [yes/no]'
#        PARAM = Input_DB[input_param][ind_elem]
#        if not (PARAM == 'yes' or PARAM == 'no' or pd.isnull(PARAM)):
#            warning_list.append( 'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong!'
#                                 + 'Only "yes" or "no" accepted.')
#            ERROR_IN_MODULE = True

#        input_param = 'ROV inspection max depth [m]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'ROV workclass [yes/no]'
#        PARAM = Input_DB[input_param][ind_elem]
#        if not (PARAM == 'yes' or PARAM == 'no' or pd.isnull(PARAM)):
#            warning_list.append( 'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong!'
#                                 + 'Only "yes" or "no" accepted.')
#            ERROR_IN_MODULE = True

#        input_param = 'ROV workclass max depth [m]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'JackUp leg lenght [m]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'JackUp leg diameter [m]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

        input_param = 'JackUp max water depth [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

#        input_param = 'JackUp speed Up [m/min]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

        input_param = 'JackUp speed down [m/min]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'JackUp max payload [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

#        input_param = 'Mooring number  winches [-]'
#        ERROR_IN_PARAM, warning_list = check_integer(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Mooring line pull [t]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Mooring wire lenght [m]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Mooring number anchors [-]'
#        ERROR_IN_PARAM, warning_list = check_integer(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Mooring anchor weight [t]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

        input_param = 'AH drum capacity [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

#        input_param = 'AH wire size [mm]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

        input_param = 'AH winch rated pull [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

#        input_param = 'AH winch break load [t]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Dredge depth [m]'
#        ERROR_IN_PARAM, warning_list = check_float_positive_null(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Dredge type [-]'
#        ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

        input_param = 'Mob time [h]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Mob percentage [%]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Op min Day Rate [EURO/day]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Op max Day Rate [EURO/day]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 17
0
def check_ports(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():

        input_param = 'UTM x [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'UTM y [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'UTM zone [-]'
        ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem,
                                                     input_param, Input_module,
                                                     warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Type of terminal [Quay/Dry-dock]'
        ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem,
                                                     input_param, Input_module,
                                                     warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Entrance width [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Terminal length [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Terminal load bearing [t/m^2]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Terminal draught [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Terminal area [m^2]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Max gantry crane lift capacity [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Max tower crane lift capacity [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Jacking capability [yes/no]'
        PARAM = Input_DB[input_param][ind_elem]
        if not (PARAM == 'Yes' or PARAM == 'No' or pd.isnull(PARAM)):
            warning_list.append('Input: ' + input_param + ' = ' + str(PARAM) +
                                ' in ' + Input_module + '/index:' +
                                str(ind_elem) + ' is Wrong!' +
                                'Only "Yes" or "No" accepted.')
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 18
0
def check_mattress(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():

        #        input_param = 'Concrete resistance [N/mm^2]'
        #        ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list)
        #        if ERROR_IN_PARAM:
        #            ERROR_IN_MODULE = True

        #        input_param = 'Concrete density [kg/m^3]'
        #        ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list)
        #        if ERROR_IN_PARAM:
        #            ERROR_IN_MODULE = True

        input_param = 'Unit lenght [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Unit width [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Unit thickness [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Unit weight air [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True


#        input_param = 'Unit weight water [t]'
#        ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Nr looped ropes [-]'
#        ERROR_IN_PARAM, warning_list = check_integer_long(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

#        input_param = 'Ropes diameter [mm]'
#        ERROR_IN_PARAM, warning_list = check_float_positive(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if ERROR_IN_PARAM:
#            ERROR_IN_MODULE = True

        input_param = 'Cost per unit [EURO]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list
Exemplo n.º 19
0
def check_device(Input_DB, Input_module, warning_list):

    ERROR_IN_MODULE = False  # default value:

    for ind_elem, row in Input_DB.iterrows():

        input_param = 'type [-]'
        PARAM = Input_DB[input_param][ind_elem]
        if not (PARAM == 'fixed TEC' or PARAM == 'float TEC'
                or PARAM == 'float WEC' or PARAM == 'fixed WEC'):
            warning_list.append(
                'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' +
                Input_module + '/index:' + str(ind_elem) + ' is Wrong! ' +
                'Only "fixed TEC" or "float TEC" or "float WEC" or "fixed WEC" accepted.'
            )
            ERROR_IN_MODULE = True

        input_param = 'length [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'width [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'height [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'dry mass [kg]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'sub system list [-]'
        ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem,
                                                     input_param, Input_module,
                                                     warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True


#        input_param = 'assembly strategy [-]'
#        PARAM = Input_DB[input_param][ind_elem]
#        # ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem, input_param, Input_module, warning_list)
#        if not (PARAM == '([A,B,C],D)' or PARAM == '([A,B,C,D])'):
#            warning_list.append( 'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' + Input_module + '/index:' + str(ind_elem) + ' is Wrong! '
#                                 + 'Only "([A,B,C],D)" or "([A,B,C,D])" accepted.')
#            ERROR_IN_MODULE = True

        input_param = 'assembly duration [h]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'load out [-]'
        PARAM = Input_DB[input_param][ind_elem]
        if not (PARAM == 'skidded' or PARAM == 'trailer'
                or PARAM == 'float away' or PARAM == 'lift away'):
            warning_list.append(
                'Input: ' + input_param + ' = ' + str(PARAM) + ' in ' +
                Input_module + '/index:' + str(ind_elem) + ' is Wrong! ' +
                'Only "skidded" or "trailer" or "float away" or "lift away" accepted.'
            )
            ERROR_IN_MODULE = True

        input_param = 'transportation method [-]'
        PARAM = Input_DB[input_param][ind_elem]
        if not (PARAM == 'deck' or PARAM == 'tow'):
            warning_list.append('Input: ' + input_param + ' = ' + str(PARAM) +
                                ' in ' + Input_module + '/index:' +
                                str(ind_elem) + ' is Wrong! ' +
                                'Only "deck" or "tow" accepted.')
            ERROR_IN_MODULE = True

        input_param = 'bollard pull [t]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'connect duration [h]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'disconnect duration [h]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'max Hs [m]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'max Tp [s]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'max wind speed [m/s]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'max current speed [m/s]'
        ERROR_IN_PARAM, warning_list = check_float_positive_null(
            Input_DB, ind_elem, input_param, Input_module, warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

        input_param = 'Project start date [-]'
        ERROR_IN_PARAM, warning_list = check_unicode(Input_DB, ind_elem,
                                                     input_param, Input_module,
                                                     warning_list)
        if ERROR_IN_PARAM:
            ERROR_IN_MODULE = True

    return ERROR_IN_MODULE, warning_list