Diode

circadapt.components.connector.Diode(model)

Ideal diode describing flow between nodes at positive pressure gradient.

List of relevant tutorials

Documentation

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