Error: [fmi2GetContinuousStates]: Simulation terminated at t=0.0000000000000000e+00: error running events

arnigaber
arnigaber Altair Community Member
edited October 2020 in Community Q&A

Hello to all, in my first model i want to simulate a dumper using a cylinder with orifice in the line to the tank. 

I've tried different configuration but every time appears this type of error and i don't understand what it mean. 

Is there someone that can help me uderstand this error? What i have to change?

Thanks in advance! 

Arnigaber

<?xml version="1.0" encoding="UTF-8"?>image.thumb.png.fe05a0392d6cf8a23c70827cbf2affab.png

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • L Moretti
    L Moretti New Altair Community Member
    edited March 2020

    Hello Arnigaber,

     

    can you share your model file?

     

     

    Lorenzo

  • RoKet
    RoKet
    Altair Employee
    edited March 2020

    Hi Arbigaber,

     

    It's a problem of initial values. In Modelica mechanics length of elements in a row are added. with basic parameters, the initial position of v-source is 0 m, length of left rod 0,4 m. Position of fixed is 0 m => relative stroke of cylinder is 0,4 m (in right end stop). Now you have to move either v-source to the left or fixed to the right to move piston into middle of the cylinder.

     

    My demo model has a fixed position of 0,2 m.

    Unable to find an attachment - read this blog

  • arnigaber
    arnigaber Altair Community Member
    edited April 2020

    Hi RoKet, with your help I managed to run the simulation. 

    Thank you very much!

     

  • BrettL
    BrettL Altair Community Member
    edited September 2020

    Hi guys, 

     

    I'm having a similar problem with a model I'm trying to set up and I'm hoping I can get some help. 

     

    I've got a cylinder being driven by a position source, but when I run I get the same error. I've tried changing the fixed position as per RoKet's post above but this doesn't seem to work on this model. 

     

    I eventually need to add an accumulator onto the piston side of the cylinder, but need to get this simple model working first!

     

    Could someone have a look at this model and let me know what I'm doing wrong here? 

     

    Many thanks!

     

    image.png.e2f0a852f117cd874813629b95b9597c.png

    Unable to find an attachment - read this blog

  • RoKet
    RoKet
    Altair Employee
    edited September 2020

    Hi BrettL,

     

    It's the same solution. You have to consider all positions and length. In Modelica (and the hydraulics library) positions are calculated as a row of points and lengths. In your case the row starts with the fixed element at 0 m. The cylinder has a minimum length of 0.4 m, so the rod tip has a minimum position of 0.4 m, a maximum position of 0.8 m (stroke of 0.4 m).

     

    The range of position source has to be in the given limits of the cylinder, I've shifted the offset to 0.6 m (0.4 m length and initial stroke of 0.2 m). In addition I've set all initial values to the right value (cylinder stroke, s_ref, ToModelica. It's not always necessary, but helps the solver to find the correct initial state.

     

    RoKet

    Unable to find an attachment - read this blog

  • BrettL
    BrettL Altair Community Member
    edited September 2020

    Hey RoKet, 

     

    Thanks a lot for that... your explanation makes more sense to me now. Your model works as I'd intended, so really appreciate your help. 

     

    Now to work on the accumulator... :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />

     

    Cheers, Brett.

     

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.