Ansys Products

Ansys Products

Discuss installation & licensing of our Ansys Teaching and Research products.

FMU using Motor CAD

    • Sriganeshkumar Ravikumar
      Subscriber

      Hi,

      I have checked the tutorial (BPM+Thermal and Custom FMU)...but instead of the model available in the tutorial,I have used another own model (PM Motor) I checked the geomentry it is ok,no issues found and tried to run the FMU simulation in Matlab but I am getting errors.

      should I have to vary the input/output parameters according to the different model type?

      is there any template to be followed (I mean the mandatory inputs and outputs) according to the different motor types?

      I also tried using the command "shareMATLABForFMUCoSim" in Matlab Command Window yet still i cant run the model.

       I will attach images for your reference... It will be helpful if someone clarify this issue



      Regards
      Ganesh

    • HDLI
      Ansys Employee

       

      Hello Ganesh,

            1). Could you try to run the themal model individually? to see if the model has any issues. It looks like you are using the themal or customer FMU. 

            2). Could you check the fixed-step size, stop time in Matlab configuraiton parameters? we could not run zero step.

             3). From the error message, it seems numbe of points might be 0 in MotorCAD model’s calculation tab > transient. Could you check if a FMU input is zero for numbe of points?

             The FMU would support the modules and MotorCAD FMU that the tutorial mentioned. It seems we do not need to run “shareMATLABForFMUCoSim” commmand.

      HDLI  

       

    • Sriganeshkumar Ravikumar
      Subscriber

      Thanks for the response HDLI

      I am still getting the same problem "Zero Number of Points Set in Simple Transcient" eventhough I tried your suggestions.

      Kindly suggest an alternate method to eradicate this error.

      Regards
      Ganesh

    • HDLI
      Ansys Employee

      Hello Ganesh,

             Could you tell me what happens in each suggestion?

             Could you run the model standalone? Thanks.

      HDLI

    • Sriganeshkumar Ravikumar
      Subscriber

      Thanks for the reply HLDI

      I ran stand alone simulation but the temperature values are really high the maximum values are reaching 1x10e7 °C in transcient simulation (in Matlab using FMU).The actual max temperature is around 150°C in Motor CAD.

      is it possible to run only duty cycle simulation in FMU but not the transcient simulation?

      Also I have listed down the results which I got from your suggestion

      Suggestion 1:- I had ran only thermal model the simulation is running but the model is running infinitely.
      Suggestion 2:- The step size used is auto,not zero step size used.
      Suggestion 3:-  I had already did this in the previous comment and this was the result


      Regards
      Ganesh

    • HDLI
      Ansys Employee

      Hello Ganesh,

            Could you check the initial temperature and input loss value or unit? Could you enter 1 for "Transient duration" and "number of point" in Transient tab? 

            Could you review the FMU example in  C:\ANSYS_Motor-CAD\2023_2_2\Tutorials\FMU? Thanks.

      HDLI

    • Sriganeshkumar Ravikumar
      Subscriber

      Thanks for the reply HLDI

      I am following the FMU Tutorial and I got the above result.The units are also same as per the tutorials.

      is it possible to do FMU simulation in simulink:- transcient condition,constant,single speed and single torque values through out the entire duration of the simulation?

      The tutorials covers only varying shaft speed and torque.

    • HDLI
      Ansys Employee

      Hello Ganesh,

              1). Could you ensure that ActiveX is enabled within Motor-CAD? 

              2). Please make sure if you could run a python scripting with ActiveX. We may have some examples in the C:\ANSYS_Motor-CAD\2024_1_3\Tutorials\Automation\ActiveX.

              3). Follow the tutorial and test an example in FMU tutorial folder. Do not copy it into Document or any shared drive/folder like OneDrive. The file should be in local drive, without “share”.

               I think it is possible to do transient condition with FMU in simulink.

      HDLI

Viewing 7 reply threads
  • The topic ‘FMU using Motor CAD’ is closed to new replies.