The problem of motion by use FreeCAD

I want to simulate the motion of two "Regular Wave Generator(Piston)" at the same time by FreeCAD,

however, it can't run the simulation for the reason:

"*** Exception (JMotion::EventAdd) Text: Missing movement (id=1) inside the object with id=2."

I know it can be solved by changing the "mvdull id" to "1" in Case_DEF_XML, for the initial simulation is: 

<motion>

<objreal ref="2">

<!-- Movement Name: Regular Wave Generator (Piston) -->

<begin mov="1" start="0"/>

<mvnull id="1" />

</objreal>

<objreal ref="0">

<!-- Movement Name: Regular Wave Generator (Piston) -->

<begin mov="1" start="0"/>

<mvnull id="2" />

and change it, it can run but not use FreeCAD :

  <motion>

      <objreal ref="2">

        <begin mov="1" start="0"/> 

        <mvnull id="1" />

      </objreal>

      <objreal ref="0">

        <begin mov="1" start="0"/> 

        <mvnull id="1" />

      </objreal>

    </motion>

Can you help me to solve it ,just to simulate two Piston by FreeCAD

Thank you sincerely

Comments

  • Perhaps you should work directly with the XML files and the scripts (BAT or SH).

    You can download the full package from https://dual.sphysics.org/downloads/

    and follow this video: https://youtu.be/_sL1iQUJfs8


    Regards

  • Thank you for your reply, i got the result with XML files.i did the same example months ago by FreeCAD but now can't ,so i wonder it.

    by the way, dose DSPH can solve the wave decay problem?



    Best Regards

  • There is no wave decay problem if you use proper values of artificial viscosity (0.01) of density diffusion term (option 2 with 0.1), coefh higher than 1.2 and you propagate the wave for no more than 3 wavelengths of course

    Regards

Sign In or Register to comment.