;; (define-type dim (record time::int length::int mass::int))

(define-block
  sldemo_enginewc__ThrottleAndManifold__IntakeManifold


  (
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__mdotInput__Out1_1_1
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__N__Out1_1_1
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__mdot_to_Cylinder__In1_1_1
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__ManifoldPressure_Pm__In1_1_1
  )

  (
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Mux__In1_1_1
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Mux__In2_1_1
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Mux__Out1_1_1
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Mux__Out1_2_1
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Pumping__In1_1_1
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Pumping__In1_2_1
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Pumping__Out1_1_1
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__RTbyVm__In1_1_1
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__RTbyVm__Out1_1_1
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__RTbyVm__Constant_1_1
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Sum__In1_1_1
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Sum__In2_1_1
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Sum__Out1_1_1
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__p0=0.543bar__In1_1_1
    sldemo_enginewc__ThrottleAndManifold__IntakeManifold__p0=0.543bar__Out1_1_1
  )

  (
  )

  (
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__mdotInput__Out1_1_1 (mk-record -1 0 1))
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__N__Out1_1_1 (mk-record -1 0 0))
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Pumping__In1_1_1 (mk-record -2 -1 1))
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Pumping__In1_2_1 (mk-record -1 0 0))
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Pumping__Out1_1_1 (mk-record -1 0 1))
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__RTbyVm__Constant_1_1 (mk-record -2 -1 0))
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__mdot_to_Cylinder__In1_1_1 (mk-record -1 0 1))
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__ManifoldPressure_Pm__In1_1_1 (mk-record -2 -1 1))

    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Mux__Out1_1_1 sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Mux__In1_1_1)
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Mux__Out1_2_1 sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Mux__In2_1_1)
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__RTbyVm__Out1_1_1 (+ sldemo_enginewc__ThrottleAndManifold__IntakeManifold__RTbyVm__In1_1_1 sldemo_enginewc__ThrottleAndManifold__IntakeManifold__RTbyVm__Constant_1_1))
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Sum__Out1_1_1 sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Sum__In1_1_1)
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Sum__In1_1_1 sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Sum__In2_1_1)
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__p0=0.543bar__Out1_1_1 (increment sldemo_enginewc__ThrottleAndManifold__IntakeManifold__p0=0.543bar__In1_1_1 0 1))
    
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__RTbyVm__In1_1_1 sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Sum__Out1_1_1)
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__p0=0.543bar__In1_1_1 sldemo_enginewc__ThrottleAndManifold__IntakeManifold__RTbyVm__Out1_1_1)
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Mux__In2_1_1 sldemo_enginewc__ThrottleAndManifold__IntakeManifold__N__Out1_1_1)
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Pumping__In1_1_1 sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Mux__Out1_1_1)
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Pumping__In1_2_1 sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Mux__Out1_2_1)
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Sum__In1_1_1 sldemo_enginewc__ThrottleAndManifold__IntakeManifold__mdotInput__Out1_1_1)
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Sum__In2_1_1 sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Pumping__Out1_1_1)
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__mdot_to_Cylinder__In1_1_1 sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Pumping__Out1_1_1)
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__Mux__In1_1_1 sldemo_enginewc__ThrottleAndManifold__IntakeManifold__p0=0.543bar__Out1_1_1)
    (- sldemo_enginewc__ThrottleAndManifold__IntakeManifold__ManifoldPressure_Pm__In1_1_1 sldemo_enginewc__ThrottleAndManifold__IntakeManifold__p0=0.543bar__Out1_1_1)
  )
)