next up previous
Next: Relation with other nodes Up: C (Continuous) type of Previous: Activation

Function

  1. In a C type node one or more systems of differential equations are solved. The whole code is executed at each integration path and the execution of the events of all the program interleaved with those of the differential equations. On the other hand, the C node can generate events and messages by conditions that may depend on the values computed for the differential equations. Thus, a symbiosis of continuous and discrete simulation is complete.
  2. As the self-activations of the node do not produce scanning of the network, all actions in the network that depend on the values computed by the differential equations must be explicitly programmed in the node (see examples below). The C type node can be called to be executed at any time from any other node. The calling instruction is:

    <name of the C node > (0);

    When this happens the node solves the systems for the actual value of the time and then the control goes back to the calling code. So an updated value of the computed variables can be used by the calling code. The C type node continues solving the system at the originally prescribed intervals.



domingo c
Mon Mar 20 17:31:11 PST 2000