Diode

Module summary

Tags: Diode

Ideal diode describing flow between nodes at positive pressure gradient.

Parameters

R: double

Resistance

Signals

q: float

Flow through the valve

Module

The Diode module describes flow \(q\) from a proximal to a distal node. The flow \(q\) is a state variable, and its derivative is given by

\[ \begin{align}\begin{aligned}q = \frac{\Delta p}{R} \text{if} \Delta p > 0\\q = 0 \text{else}\end{aligned}\end{align} \]

(Source code, png, hires.png, pdf)

../../../_images/diode.png

circadapt.components.connector.Diode(model)

Ideal diode describing flow between nodes at positive pressure gradient.