def start_RepTate(argv):
    """
    Main RepTate application. 
    
    :param list argv: Command line parameters passed to Reptate
    """
    loglevel = logging.DEBUG
    GUI = True
    QApplication.setStyle("Fusion")  # comment that line for a native look
    # for a list of available styles: "from PyQt5.QtWidgets import QStyleFactory; print(QStyleFactory.keys())"

    # app = QApplication(sys.argv)

    # FOR DEBUGGING PURPOSES: Set Single or MultiThread (default)
    CmdBase.calcmode = CalcMode.singlethread

    ex = QApplicationManager(loglevel=loglevel)
    ex.setStyleSheet("QTabBar::tab { color:black; height: 22px; }")

    ########################################################
    # THE FOLLOWING LINES ARE FOR TESTING A PARTICULAR CASE
    # Open a particular application
    ex.handle_new_app("React")

    #####################
    # Open a Dataset
    ex.applications["React1"].new_tables_from_files([
        "data%sReact%sout1.reac" % ((os.sep, ) * 2),
    ])
    # Open a theory
    ex.applications["React1"].datasets["Set1"].new_theory("BOB Architecture")

    ex.show()

    sys.exit(app.exec_())
Пример #2
0
def start_RepTate(argv):
    """
    Main RepTate application. 
    
    :param list argv: Command line parameters passed to Reptate
    """
    loglevel = logging.DEBUG
    GUI = True
    QApplication.setStyle("Fusion")  # comment that line for a native look
    # for a list of available styles: "from PyQt5.QtWidgets import QStyleFactory; print(QStyleFactory.keys())"

    app = QApplication(sys.argv)

    # FOR DEBUGGING PURPOSES: Set Single or MultiThread (default)
    CmdBase.calcmode = CalcMode.singlethread

    ex = QApplicationManager(loglevel=loglevel)
    ex.setStyleSheet("QTabBar::tab { color:black; height: 22px; }")

    ex.show()

    ########################################################
    # THE FOLLOWING LINES ARE FOR TESTING A PARTICULAR CASE
    # Open a particular application
    ex.handle_new_app("TTS")

    # Open a Dataset
    pi_dir = "data%sPI_LINEAR%sosc%s" % ((os.sep, ) * 3)
    ex.applications["TTS1"].new_tables_from_files([
        pi_dir + "PI223k-14c_-45C_FS2_PP10.osc",
        pi_dir + "PI223k-14c_-40C_FS_PP10.osc",
        pi_dir + "PI223k-14c_-30C_FS_PP10.osc",
        pi_dir + "PI223k-14_-10C_FS_PP10.osc",
        pi_dir + "PI223k-14c_-20C_FS_PP10.osc",
        pi_dir + "PI223k-14b_0C_FS4_PP10.osc",
        pi_dir + "PI223k-14_10C_FS_PP10.osc",
        pi_dir + "PI223k-14b_25C_FS3_PP10.osc",
        pi_dir + "PI223k-14_25C_FS3_PP10.osc",
        pi_dir + "PI223k-14c_30C_FS3_PP10.osc",
        pi_dir + "PI223k-14_40C_FS_PP10.osc",
        pi_dir + "PI223k-14_50C_FS_PP10.osc",
    ])

    # Open a theory
    ex.applications["TTS1"].datasets["Set1"].new_theory("Automatic TTS Shift")
    # Minimize the theory
    ex.applications["TTS1"].datasets["Set1"].handle_actionMinimize_Error()
    # Open a theory
    ex.applications["TTS1"].datasets["Set1"].new_theory("WLF Shift")
    # Minimize the theory
    ex.applications["TTS1"].datasets["Set1"].handle_actionMinimize_Error()

    sys.exit(app.exec_())
Пример #3
0
def start_RepTate(argv):
    """
    Main RepTate application. 
    
    :param list argv: Command line parameters passed to Reptate
    """
    loglevel = logging.DEBUG
    GUI = True
    QApplication.setStyle("Fusion")  # comment that line for a native look
    # for a list of available styles: "from PyQt5.QtWidgets import QStyleFactory; print(QStyleFactory.keys())"

    app = QApplication(sys.argv)

    # FOR DEBUGGING PURPOSES: Set Single or MultiThread (default)
    CmdBase.calcmode = CalcMode.singlethread

    ex = QApplicationManager(loglevel=loglevel)
    ex.setStyleSheet("QTabBar::tab { color:black; height: 22px; }")

    ex.show()

    ########################################################
    # THE FOLLOWING LINES ARE FOR TESTING A PARTICULAR CASE
    # Open a particular application
    ex.handle_new_app("MWD")

    #####################
    # Open a Dataset
    gt_dir = "data%sMWD%s" % ((os.sep, ) * 2)
    ex.applications["MWD1"].new_tables_from_files([
        gt_dir + "Munstedt_PSIII.gpc",
    ])
    # Open a theory
    ex.applications["MWD1"].datasets["Set1"].new_theory("Discretize MWD")
    ex.applications["MWD1"].datasets["Set1"].new_theory("LogNormal")
    ex.applications["MWD1"].datasets["Set1"].new_theory("GEX")

    sys.exit(app.exec_())

    ex.handle_new_app("MWD")

    # THE TEST FAILS FOR THE CODE BELOW... STRANGE!
    ex.applications["MWD2"].new_tables_from_files([
        gt_dir + "Munstedt_PSIV.gpc",
    ])
    # Open a theory
    ex.applications["MWD2"].datasets["Set1"].new_theory("Discretize MWD")
    ex.applications["MWD2"].datasets["Set1"].new_theory("LogNormal")
    ex.applications["MWD2"].datasets["Set1"].new_theory("GEX")

    sys.exit(app.exec_())
Пример #4
0
def start_RepTate(argv):
    """
    Main RepTate application. 
    
    :param list argv: Command line parameters passed to Reptate
    """
    loglevel = logging.DEBUG
    GUI = True
    QApplication.setStyle("Fusion")  # comment that line for a native look
    # for a list of available styles: "from PyQt5.QtWidgets import QStyleFactory; print(QStyleFactory.keys())"

    app = QApplication(sys.argv)

    # FOR DEBUGGING PURPOSES: Set Single or MultiThread (default)
    CmdBase.calcmode = CalcMode.singlethread

    ex = QApplicationManager(loglevel=loglevel)
    ex.setStyleSheet("QTabBar::tab { color:black; height: 22px; }")

    ex.show()

    ########################################################
    # THE FOLLOWING LINES ARE FOR TESTING A PARTICULAR CASE
    # Open a particular application
    ex.handle_new_app("Gt")

    #####################
    # TEST MaxwellModesTime
    # Open a Dataset
    gt_dir = "data%sGt%s" % ((os.sep, ) * 2)
    ex.applications["Gt1"].new_tables_from_files([
        gt_dir + "C0224_NVT_450K_1atm.gt",
    ])
    # Open a theory
    ex.applications["Gt1"].datasets["Set1"].new_theory("Maxwell Modes")
    # Minimize the theory
    ex.applications["Gt1"].datasets["Set1"].handle_actionMinimize_Error()

    ex.applications["Gt1"].datasets["Set1"].new_theory("Rouse")
    # # Minimize the theory
    ex.applications["Gt1"].datasets["Set1"].handle_actionMinimize_Error()

    sys.exit(app.exec_())
Пример #5
0
def start_RepTate(argv):
    """
    Main RepTate application. 
    
    :param list argv: Command line parameters passed to Reptate
    """
    loglevel = logging.DEBUG
    GUI = True
    QApplication.setStyle("Fusion")  # comment that line for a native look
    # for a list of available styles: "from PyQt5.QtWidgets import QStyleFactory; print(QStyleFactory.keys())"

    app = QApplication(sys.argv)

    # FOR DEBUGGING PURPOSES: Set Single or MultiThread (default)
    CmdBase.calcmode = CalcMode.singlethread

    ex = QApplicationManager(loglevel=loglevel)
    ex.setStyleSheet("QTabBar::tab { color:black; height: 22px; }")

    ex.show()

    ########################################################
    # THE FOLLOWING LINES ARE FOR TESTING A PARTICULAR CASE
    # Open a particular application
    ex.handle_new_app("LVE")

    #####################
    # TEST Likhtman-McLeish
    # Open a Dataset
    pi_dir = "data%sPI_LINEAR%s" % ((os.sep,) * 2)
    ex.applications["LVE1"].new_tables_from_files(
        [
            pi_dir + "PI_13.5k_T-35.tts",
            pi_dir + "PI_23.4k_T-35.tts",
            pi_dir + "PI_33.6k_T-35.tts",
            pi_dir + "PI_94.9k_T-35.tts",
            pi_dir + "PI_225.9k_T-35.tts",
            pi_dir + "PI_483.1k_T-35.tts",
            pi_dir + "PI_634.5k_T-35.tts",
            pi_dir + "PI_1131k_T-35.tts",
        ]
    )
    # Open a theory
    ex.applications["LVE1"].datasets["Set1"].new_theory("Likhtman-McLeish")
    # Minimize the theory
    ex.applications["LVE1"].datasets["Set1"].handle_actionMinimize_Error()

    # Open a theory
    ex.applications["LVE1"].datasets["Set1"].new_theory("Rouse")
    # Minimize the theory
    ex.applications["LVE1"].datasets["Set1"].handle_actionMinimize_Error()

    #####################
    # TEST Carreau-Yasuda
    # Open a Dataset
    ex.handle_new_app("LVE")
    ex.applications["LVE2"].new_tables_from_files(
        [pi_dir + "PI_483.1k_T-35.tts",]
    )
    # Switch the view
    ex.applications["LVE2"].view_switch("logetastar")
    # Open a theory
    ex.applications["LVE2"].datasets["Set1"].new_theory("Carreau-Yasuda")
    # Minimize the theory
    ex.applications["LVE2"].datasets["Set1"].handle_actionMinimize_Error()

    # Open a theory
    ex.applications["LVE2"].datasets["Set1"].new_theory("Maxwell Modes")
    # Minimize the theory
    ex.applications["LVE2"].datasets["Set1"].handle_actionMinimize_Error()

    #####################
    # TEST DTD
    # Open a Dataset
    ex.handle_new_app("LVE")
    pi_dir = "data%sPI_STAR%s" % ((os.sep,) * 2)
    ex.applications["LVE3"].new_tables_from_files(
        [pi_dir + "S6Z8.1T40.tts", pi_dir + "S6Z12T40.tts", pi_dir + "S6Z16T40.tts",]
    )

    ex.applications["LVE3"].datasets["Set1"].new_theory("DTD Stars")
    ex.applications["LVE3"].datasets["Set1"].handle_actionMinimize_Error()

    sys.exit(app.exec_())
Пример #6
0
def start_RepTate(argv):
    """
    Main RepTate application. 
    
    :param list argv: Command line parameters passed to Reptate
    """
    loglevel = logging.DEBUG
    GUI = True
    QApplication.setStyle("Fusion")  # comment that line for a native look
    # for a list of available styles: "from PyQt5.QtWidgets import QStyleFactory; print(QStyleFactory.keys())"

    app = QApplication(sys.argv)

    # FOR DEBUGGING PURPOSES: Set Single or MultiThread (default)
    CmdBase.calcmode = CalcMode.singlethread

    ex = QApplicationManager(loglevel=loglevel)
    ex.setStyleSheet("QTabBar::tab { color:black; height: 22px; }")

    ex.show()

    ########################################################
    # THE FOLLOWING LINES ARE FOR TESTING A PARTICULAR CASE
    # Open a particular application

    ####################
    # open linear rheology data to import the Maxwell modes
    ex.handle_new_app("LVE")
    dow_dir = "data%sDOW%sLinear_Rheology_TTS%s" % ((os.sep, ) * 3)
    ex.applications["LVE1"].new_tables_from_files([
        dow_dir + "DOWLDPEL150R_160C.tts",
    ])
    ex.applications["LVE1"].datasets["Set1"].new_theory("Maxwell Modes")
    ex.applications["LVE1"].datasets["Set1"].handle_actionMinimize_Error()

    #####################
    # TEST Rolie-Poly
    # Open a Dataset

    ex.handle_new_app("NLVE")

    dow_dir = "data%sDOW%sNon-Linear_Rheology%sStart-up_Shear%s" % (
        (os.sep, ) * 4)
    ex.applications["NLVE2"].new_tables_from_files([
        dow_dir + "My_dow150-160-1 shear.shear",
        dow_dir + "My_dow150-160-01 shear.shear",
        dow_dir + "My_dow150-160-001 shear.shear",
        dow_dir + "My_dow150-160-3 shear.shear",
        dow_dir + "My_dow150-160-03 shear.shear",
        dow_dir + "My_dow150-160-003 shear.shear",
        dow_dir + "My_dow150-160-0003 shear.shear",
    ])
    # Open a theory
    ex.applications["NLVE2"].datasets["Set1"].new_theory("Rolie-Poly")
    # Minimize the theory
    # Copy Maxwell Modes
    ex.applications["NLVE2"].datasets["Set1"].theories["RP1"].do_copy_modes(
        "LVE1.Set1.MM1")
    ex.applications["NLVE2"].datasets["Set1"].handle_actionMinimize_Error()

    #####################
    # TEST Rolie-Poly uniaxial extension
    # Open a Dataset
    ex.handle_new_app("NLVE")
    dow_dir = "data%sDOW%sNon-Linear_Rheology%sStart-up_extension%s" % (
        (os.sep, ) * 4)
    ex.applications["NLVE3"].new_tables_from_files([
        dow_dir + "My_dow150-160-01.uext",
        dow_dir + "My_dow150-160-001.uext",
        dow_dir + "My_dow150-160-0001.uext",
        dow_dir + "My_dow150-160-03.uext",
        dow_dir + "My_dow150-160-003.uext",
        dow_dir + "My_dow150-160-0003.uext",
    ])

    # Open a theory
    ex.applications["NLVE3"].datasets["Set1"].new_theory("Rolie-Poly")
    # select uniaxial extension
    ex.applications["NLVE3"].datasets["Set1"].theories[
        "RP1"].select_extensional_flow()
    # Copy Maxwell Modes
    ex.applications["NLVE3"].datasets["Set1"].theories["RP1"].do_copy_modes(
        "LVE1.Set1.MM1")
    # Minimize the theory
    ex.applications["NLVE3"].datasets["Set1"].handle_actionMinimize_Error()

    # Open a theory
    ex.applications["NLVE3"].datasets["Set1"].new_theory("Pom-Pom")

    sys.exit(app.exec_())