RTND/py/bileve_tests.py
def create_case(mp:mypara.ParaClass(),gl:gpc.GloParaClass):
    """
        create all frequency cases at a predefined fixed frequency interval
        write the case file for the frequency 
    """ 
    l =  gl.change_fre_line - 1
    fre_list = []

    num_case = int((gl.fre_up - gl.fre_lb)/gl.incre)
    for i in range(0, num_case):
        tf = gl.fre_lb + i * gl.incre
        ff = []
        for j in range(0,4):
            if j == l:
                ff.append(tf)
            else:
                ff.append(gl.base_fre[j])
        fre_list.append(ff)            

    # print("All the frequency cases") 
    # for fl in fre_list:
    #     print(fl)

    mp.num_cases = len(fre_list)    
    write_case_files(mp,fre_list)
    # base_case_id = -1
    mc.CaseClass.base_case_id = 0
    cases = []
    for i in range(0,mp.num_cases):
        cases.append(mc.CaseClass(mp))
        cases[-1].id = i
        for j in fre_list[i]:
            cases[-1].fre.append(j)
        if (cases[-1].fre[0] == gl.base_fre[0] and cases[-1].fre[1] == gl.base_fre[1] 
        and cases[-1].fre[2] == gl.base_fre[2] and cases[-1].fre[3] == gl.base_fre[3]):
            mc.CaseClass.base_case_id = i
            print("BaseCaseId = {0}".format(mc.CaseClass.base_case_id))
    return cases

        create all frequency cases at a predefined fixed frequency interval
        write the case file for the frequency 
    
create all frequency cases at a predefined fixed frequency interval
write the case file for the frequency
create all frequency cases at a predefined fixed frequency interval write the case file for the frequency
def create_case(mp:mypara.ParaClass(),gl:gpc.GloParaClass):
    l =  gl.change_fre_line - 1
    fre_list = []
    num_case = int((gl.fre_up - gl.fre_lb)/gl.incre)
    for i in range(0, num_case):
        tf = gl.fre_lb + i * gl.incre
        ff = []
        for j in range(0,4):
            if j == l:
                ff.append(tf)
            else:
                ff.append(gl.base_fre[j])
        fre_list.append(ff)            
    mp.num_cases = len(fre_list)    
    write_case_files(mp,fre_list)
    mc.CaseClass.base_case_id = 0
    cases = []
    for i in range(0,mp.num_cases):
        cases.append(mc.CaseClass(mp))
        cases[-1].id = i
        for j in fre_list[i]:
            cases[-1].fre.append(j)
        if (cases[-1].fre[0] == gl.base_fre[0] and cases[-1].fre[1] == gl.base_fre[1] 
        and cases[-1].fre[2] == gl.base_fre[2] and cases[-1].fre[3] == gl.base_fre[3]):
            mc.CaseClass.base_case_id = i
            print("BaseCaseId = {0}".format(mc.CaseClass.base_case_id))
    return cases
def create_case ( mp : mypara . ParaClass ( ) , gl : gpc . GloParaClass ) : l = gl . change_fre_line - 1 fre_list = [ ] num_case = int ( ( gl . fre_up - gl . fre_lb ) / gl . incre ) for i in range ( 0 , num_case ) : tf = gl . fre_lb + i * gl . incre ff = [ ] for j in range ( 0 , 4 ) : if j == l : ff . append ( tf ) else : ff . append ( gl . base_fre [ j ] ) fre_list . append ( ff ) mp . num_cases = len ( fre_list ) write_case_files ( mp , fre_list ) mc . CaseClass . base_case_id = 0 cases = [ ] for i in range ( 0 , mp . num_cases ) : cases . append ( mc . CaseClass ( mp ) ) cases [ - 1 ] . id = i for j in fre_list [ i ] : cases [ - 1 ] . fre . append ( j ) if ( cases [ - 1 ] . fre [ 0 ] == gl . base_fre [ 0 ] and cases [ - 1 ] . fre [ 1 ] == gl . base_fre [ 1 ] and cases [ - 1 ] . fre [ 2 ] == gl . base_fre [ 2 ] and cases [ - 1 ] . fre [ 3 ] == gl . base_fre [ 3 ] ) : mc . CaseClass . base_case_id = i print ( "BaseCaseId = {0}" . format ( mc . CaseClass . base_case_id ) ) return cases
create all frequency cases at a predefined fixed frequency interval
write the case file for the frequency
create all frequency cases at a predefined fixed frequency interval write the case file for the frequency
"""
        create all frequency cases at a predefined fixed frequency interval
        write the case file for the frequency 
    """ # print("All the frequency cases")  # for fl in fre_list: #     print(fl) # base_case_id = -1
mp
mypara.ParaClass()
gl
gpc.GloParaClass