MotionView Batch doesn't start the MotionSolve Job automatically

H_Engbert
H_Engbert Altair Community Member
edited March 2023 in Community Q&A

Dear all,

 would like to run MotionView in batch mode. According to the online help, when running the batch file, the corresponding selected solver (MotionSolve in this case) should also be run automatically. Unfortunately, this is not the case for me.
I hope someone can help me with this problem.

Greetings
HE

Best Answer

  • Praful
    Praful
    Altair Employee
    edited March 2023 Answer ✓

    Hello Hendrik

    Could you please confirm the following ?

    1. Are you able to run MotionSolve interactively from MotionView GUI ?

    2. with the command that you provided above, was the xml (V01_C_Mix_Super_ULS.xml) generated in the given directory ?

    Answer to the above questions will reveal if MotionView can find the solver and there is a problem invoking MotionView.

    Now, the mdl_batch command,

    mdl_batch model.mdl runfile.xml MotionSolve

    The above command will just export a MotionSolve xml from the model, but will not start the run.

    To run MotionSolve job through mdl_batch, you need to provide additional option of -SCRIPT

    image

    MotionView has a solver script "MotionSolve" registered by default.

    So, your command would look something like below

    mdl_batch model.mdl runfile.xml MotionSolve -SCRIPT:MotionSolve

    Note that, with the above command, the model would be exported with the current active analysis in the model if any. You may use the -ANALYSIS option to run a specific Analysis or run ALL Analysis.

    image

    mdl_batch model.mdl runfile.xml MotionSolve -ANALYSIS:analysis_varname -SCRIPT:MotionSolve

    Try this and let know how it goes.

    Regards

    Praful

     

     

Answers

  • Praful
    Praful
    Altair Employee
    edited March 2023 Answer ✓

    Hello Hendrik

    Could you please confirm the following ?

    1. Are you able to run MotionSolve interactively from MotionView GUI ?

    2. with the command that you provided above, was the xml (V01_C_Mix_Super_ULS.xml) generated in the given directory ?

    Answer to the above questions will reveal if MotionView can find the solver and there is a problem invoking MotionView.

    Now, the mdl_batch command,

    mdl_batch model.mdl runfile.xml MotionSolve

    The above command will just export a MotionSolve xml from the model, but will not start the run.

    To run MotionSolve job through mdl_batch, you need to provide additional option of -SCRIPT

    image

    MotionView has a solver script "MotionSolve" registered by default.

    So, your command would look something like below

    mdl_batch model.mdl runfile.xml MotionSolve -SCRIPT:MotionSolve

    Note that, with the above command, the model would be exported with the current active analysis in the model if any. You may use the -ANALYSIS option to run a specific Analysis or run ALL Analysis.

    image

    mdl_batch model.mdl runfile.xml MotionSolve -ANALYSIS:analysis_varname -SCRIPT:MotionSolve

    Try this and let know how it goes.

    Regards

    Praful

     

     

  • H_Engbert
    H_Engbert Altair Community Member
    edited March 2023

    Hello Praful,

    1. Yes I am able to run MotionSolve interactively from the GUI

    2. Yes, the xml file was generated by the given directory

    I have added the commands you specified to the batch file and it is running now. MotionSolve starts running automatically and the h3d result file is also generated. Thanks for the quick reply!

     

    Regards

    Hendrik