Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is no source code for <code>der()</code>. (<em>At least not like the one you are looking for.</em>) </p> <p>Why?</p> <p>Because it is (<em>you said it</em>) an <strong>operator</strong>. Not a function. What you are asking is something (<em>almost</em>) like the source code for the <code>+</code> operator or <code>connect</code>.</p> <p>I am sure you have come across functions like that in <code>java</code>. For example in <code>C++</code> you have <code>sizeof()</code>. Which is not really a function but looks and acts like one.</p> <p><code>der()</code> is implemented by each simulator's integration method. And provided for you as a built-in operator. It is not implemented as a library function like <code>sin</code>, <code>cos</code>.... And quite frankly it can't be. It is not evaluated as you see it in the source code. </p> <p>I am not sure how you would go about translating it. But there are some <em>ode solvers</em> and <em>integrators</em> out there. I hope some one will soon give you an alternative approach. </p> <hr> <p>Just a friendly heads up, It might not be as easy as you are approaching it now. And you can't translate <code>modelica</code> code (<em>for that matter any source code</em>) to another language line by line like that. Maybe that's OK for translating <code>java</code> to <code>C/C++</code> or vice versa, but those languages are closely related and used for the same kind of programming paradigm. <code>Modelica</code> is different. </p> <p><strong>It is easier if you stick to translating the <code>algorithmic</code> parts of <code>modelica</code> and leave <code>equations</code> out of it for now. Then you can go ahead with the current approach.</strong></p> <p>Good luck.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload