EDEM - Hyperstudy connection

Matthias Vink
Matthias Vink Altair Community Member
edited April 4 in Community Q&A

Hi, I am trying to use hyperstudy to vary some parameters of my edem simulations, I followed the mixer tutorial, all the files get generated and parameters get adjusted but the simulations do not execute (the responses output is also empty), what might I be doing wrong?

When hitting 'Run definition' in the setup, it is also done almost instantly

Answers

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited April 4

    Hi Matthias,

     

    HyperStudy gives a message output at the base of the user interface, there may be some error messages shown there.  Also in the study directory you should see some stdout.txt and stderr.txt files which may indicate what the problem is.

    In the setup under Test Models does the test simulation run?

     

    Regards
    Stephen

     

  • Matthias Vink
    Matthias Vink Altair Community Member
    edited April 4

    Hi Matthias,

     

    HyperStudy gives a message output at the base of the user interface, there may be some error messages shown there.  Also in the study directory you should see some stdout.txt and stderr.txt files which may indicate what the problem is.

    In the setup under Test Models does the test simulation run?

     

    Regards
    Stephen

     

    Hi Stephen,

     

    This gets posted in messages:

    172 Message: Evaluation Direction - ( Horizontal )

                  Evaluation Multi-Execution - ( Yes ( 2 ) )
     173 Message: Started  run ( 1 ), model ( m_1 ), Write ( pid = 18868 ).
     174 Message: Finished run ( 1 ), model ( m_1 ), Write ( pid = 18868 ).
     175 Message: Write output (stdout) logged to file ( C:\Users\Matthias\Documents\Tutorial\mixer\approaches\setup_1-def\run__00001\m_1\task__wri_stdout.txt ).
     176 Message: Started  run ( 1 ), model ( m_1 ), Execute ( pid = 23424 ).
     177 Message: Finished run ( 1 ), model ( m_1 ), Execute ( pid = 23424 ).
     178 Message: Execute output (stdout) logged to file ( C:\Users\Matthias\Documents\Tutorial\mixer\approaches\setup_1-def\run__00001\m_1\task__exe_stdout.txt ).
     179 Warning: Execute errors (stderr) logged to file ( C:\Users\Matthias\Documents\Tutorial\mixer\approaches\setup_1-def\run__00001\m_1\task__exe_stderr.txt ).
     180 Message: Evaluation completed for ( setup_1-def-label ( setup_1-def ) ).
     181 Message: Saved study ( Study_1 ( s_1 ) ).



    task_exe_stderr.txt contains:
    qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    Available platform plugins are: direct2d, minimal, offscreen, webgl, windows.

    task_exe_stdout.txt:
    2023 1f63e79
    Preference: C:\Users\Matthias\Documents\Tutorial\mixer\_edemdt_study_preference.2023.1f63e79.yml
    Profile: local
    {'coupling': {'acurun': 'C:\\Program Files\\Altair\\2023.1\\hwcfdsolvers\\acusolve\\win64\\bin\\acurun.bat', 'acurun opts': '-pb {} -np 10', 'inspire': 'not_installed', 'inspire assembly by name': {'dummy': ['*']}, 'inspire geometry grouping': 'by assembly(first level)', 'mdl_batch': 'C:\\Program Files\\Altair\\2023.1\\hwdesktop\\io\\translators\\bin\\win64\\mdl_batch.bat', 'motionsolve': 'C:\\Program Files\\Altair\\2023.1\\hwsolvers\\scripts\\motionsolve.bat', 'simlab': 'C:\\Program Files\\Altair\\2023.1\\SimLab\\SimLab.bat', 'simlab script': 'transient.py'}, 'edem': 'C:\\Program Files\\Altair\\2023.1\\EDEM\\bin\\edem.exe', 'edem opts': '-i {demRootName}.dem -e {demRootName}.dfg --particle-properties', 'edempy': 'edempy_post.py', 'hypermesh': 'batch', 'procedure': ['solve', 'post'], 'python': 'C:\\Program Files\\Altair\\2023.1\\common\\python\\python3.8\\win64\\python.exe'}
    Init
    Solve C:\Program Files\Altair\2023.1\EDEM\bin\edem.exe
    ['C:\\Program Files\\Altair\\2023.1\\EDEM\\bin\\edem.exe', '--console', '-i', 'Mixer2Particle.dem', '-e', 'Mixer2Particle.dfg', '--particle-properties']
    Post

    task_wri_stderr.txt is empty

    task_wri_stdout.txt:
    2023 1f63e79
    Preference: C:\Users\Matthias\Documents\Tutorial\mixer\_edemdt_study_preference.2023.1f63e79.yml
    getParametersFromHstp
    h5 File: C:\Users\Matthias\Documents\Tutorial\mixer\approaches\setup_1-def\run__00001\m_1\Mixer2Particle_data\0.h5
    shParamList shape 2 0.0
    shParamList shape_1 0.0
    @HyperMesh []
    parameter module:  Geometries
    updatePrimitives []
    parameter module:  Kinematics
    post_Update

     

  • Matthias Vink
    Matthias Vink Altair Community Member
    edited April 4

    Hi Stephen,

     

    This gets posted in messages:

    172 Message: Evaluation Direction - ( Horizontal )

                  Evaluation Multi-Execution - ( Yes ( 2 ) )
     173 Message: Started  run ( 1 ), model ( m_1 ), Write ( pid = 18868 ).
     174 Message: Finished run ( 1 ), model ( m_1 ), Write ( pid = 18868 ).
     175 Message: Write output (stdout) logged to file ( C:\Users\Matthias\Documents\Tutorial\mixer\approaches\setup_1-def\run__00001\m_1\task__wri_stdout.txt ).
     176 Message: Started  run ( 1 ), model ( m_1 ), Execute ( pid = 23424 ).
     177 Message: Finished run ( 1 ), model ( m_1 ), Execute ( pid = 23424 ).
     178 Message: Execute output (stdout) logged to file ( C:\Users\Matthias\Documents\Tutorial\mixer\approaches\setup_1-def\run__00001\m_1\task__exe_stdout.txt ).
     179 Warning: Execute errors (stderr) logged to file ( C:\Users\Matthias\Documents\Tutorial\mixer\approaches\setup_1-def\run__00001\m_1\task__exe_stderr.txt ).
     180 Message: Evaluation completed for ( setup_1-def-label ( setup_1-def ) ).
     181 Message: Saved study ( Study_1 ( s_1 ) ).



    task_exe_stderr.txt contains:
    qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    Available platform plugins are: direct2d, minimal, offscreen, webgl, windows.

    task_exe_stdout.txt:
    2023 1f63e79
    Preference: C:\Users\Matthias\Documents\Tutorial\mixer\_edemdt_study_preference.2023.1f63e79.yml
    Profile: local
    {'coupling': {'acurun': 'C:\\Program Files\\Altair\\2023.1\\hwcfdsolvers\\acusolve\\win64\\bin\\acurun.bat', 'acurun opts': '-pb {} -np 10', 'inspire': 'not_installed', 'inspire assembly by name': {'dummy': ['*']}, 'inspire geometry grouping': 'by assembly(first level)', 'mdl_batch': 'C:\\Program Files\\Altair\\2023.1\\hwdesktop\\io\\translators\\bin\\win64\\mdl_batch.bat', 'motionsolve': 'C:\\Program Files\\Altair\\2023.1\\hwsolvers\\scripts\\motionsolve.bat', 'simlab': 'C:\\Program Files\\Altair\\2023.1\\SimLab\\SimLab.bat', 'simlab script': 'transient.py'}, 'edem': 'C:\\Program Files\\Altair\\2023.1\\EDEM\\bin\\edem.exe', 'edem opts': '-i {demRootName}.dem -e {demRootName}.dfg --particle-properties', 'edempy': 'edempy_post.py', 'hypermesh': 'batch', 'procedure': ['solve', 'post'], 'python': 'C:\\Program Files\\Altair\\2023.1\\common\\python\\python3.8\\win64\\python.exe'}
    Init
    Solve C:\Program Files\Altair\2023.1\EDEM\bin\edem.exe
    ['C:\\Program Files\\Altair\\2023.1\\EDEM\\bin\\edem.exe', '--console', '-i', 'Mixer2Particle.dem', '-e', 'Mixer2Particle.dfg', '--particle-properties']
    Post

    task_wri_stderr.txt is empty

    task_wri_stdout.txt:
    2023 1f63e79
    Preference: C:\Users\Matthias\Documents\Tutorial\mixer\_edemdt_study_preference.2023.1f63e79.yml
    getParametersFromHstp
    h5 File: C:\Users\Matthias\Documents\Tutorial\mixer\approaches\setup_1-def\run__00001\m_1\Mixer2Particle_data\0.h5
    shParamList shape 2 0.0
    shParamList shape_1 0.0
    @HyperMesh []
    parameter module:  Geometries
    updatePrimitives []
    parameter module:  Kinematics
    post_Update

     

    This is the result from hitting 'run definition' on the test simulation, it also does not run

     

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited April 4

    This is the result from hitting 'run definition' on the test simulation, it also does not run

     

    Hi Matthias,

    To confirm you have EDEM 2023.1, HyperStudy 2023.1 and also the 2023.1 connector?  All 3 versions need to be the same in order to run. Also to confirm this is the mixer from here?

    edem-hyperstudy-connector-installers-and-user-guide

    The video/case above was created with an older version and you don't need to copy the 'edempy' folder any more. I would remove the edempy folder from the copy operation and also delete this folder from the study altogether.  EDEM will by default use the Altair python version installed with EDEM which will be the correct one for the version of EDEM.  You can customise this but not necessary in this case.

    If this doesn't work can you remove the inclusion of edempy_post.py to check if it's the python post-processing which is causing the issue, this will just run the case but not give the output .csv.

    Regards

    Stephen

     

     

  • Matthias Vink
    Matthias Vink Altair Community Member
    edited April 4

    Hi Matthias,

    To confirm you have EDEM 2023.1, HyperStudy 2023.1 and also the 2023.1 connector?  All 3 versions need to be the same in order to run. Also to confirm this is the mixer from here?

    edem-hyperstudy-connector-installers-and-user-guide

    The video/case above was created with an older version and you don't need to copy the 'edempy' folder any more. I would remove the edempy folder from the copy operation and also delete this folder from the study altogether.  EDEM will by default use the Altair python version installed with EDEM which will be the correct one for the version of EDEM.  You can customise this but not necessary in this case.

    If this doesn't work can you remove the inclusion of edempy_post.py to check if it's the python post-processing which is causing the issue, this will just run the case but not give the output .csv.

    Regards

    Stephen

     

     

    Hi Stephen,

     

    Yes I got the mixer and connector from there

    I am using EDEM 2023, Connector 2023, and I think hyperstudy 2023, it said 2023.1 on the marketplace: image

    but when the download is finished it is the edu2023 version, I moved the installation folder to the regular 2023 folder

     

    Regards,

    Matthias

  • Matthias Vink
    Matthias Vink Altair Community Member
    edited April 4

    Hi Stephen,

     

    Yes I got the mixer and connector from there

    I am using EDEM 2023, Connector 2023, and I think hyperstudy 2023, it said 2023.1 on the marketplace: image

    but when the download is finished it is the edu2023 version, I moved the installation folder to the regular 2023 folder

     

    Regards,

    Matthias

    When installing the connector, I did get the popup 'HyperWorks 2023 is not installed. Default path is set " however if I ignore it and then launch hyperstudy the option to add edem as a model is present and I can add the variables etc