Todo

Improve autoapi module

circadapt.components.connector

Connector objects.

Module Contents

Classes

Connector

Connector objects.

ArtVen

ArtVen connects two nodes with a passive, flow-dependent resistance.

ArtVen2022

ArtVen2022 object.

Diode

Ideal diode describing flow between nodes at positive pressure gradient.

Resistance

Simple Resistance describing flow between nodes.

Valve2022

Valve2022 valve connects two nodes.

Objects

class circadapt.components.connector.Connector(model, objects=None)

Bases: circadapt.components.Component

Connector objects.

parameters = []
signals = ['q']
parameter_on_set
build()
add_object(o)
class circadapt.components.connector.ArtVen(model, objects=None)

Bases: circadapt.components.Component

ArtVen connects two nodes with a passive, flow-dependent resistance.

Parameters

k: double

Exponent in pressure-flow relationship

p0: double

Reference pressure at q=q0

q0: double

Reference flow at p=p0

Signals

q: float

Flow over ArtVen

parameters = ['p0', 'q0', 'k']
signals = ['q']
parameter_on_set
build()
add_object(o)
class circadapt.components.connector.ArtVen2022(model, objects=None)

Bases: circadapt.components.Component

ArtVen2022 object.

parameters = ['p0AV', 'q0AV', 'kAV']
signals = ['q']
parameter_on_set
build()
add_object(o)
class circadapt.components.connector.Diode(model, objects=None)

Bases: Connector

Ideal diode describing flow between nodes at positive pressure gradient.

Parameters

R: double

Resistance

Signals

q: float

Flow through the valve

parameters = ['R']
signals = ['q']
parameter_on_set
build()
add_object(o)
class circadapt.components.connector.Resistance(model, objects=None)

Bases: Connector

Simple Resistance describing flow between nodes.

Parameters

R: double

Resistance

Signals

q: float

Flow through the valve

parameters = ['R']
signals = ['q']
parameter_on_set
build()
add_object(o)
class circadapt.components.connector.Valve2022(model, objects=None)

Bases: circadapt.components.Component

Valve2022 valve connects two nodes.

Parameters

adaptation_Aopen_fac: double

factor used

A_open: float

Opening area

A_leak: float

Leaking valve area

l: float

Length of valve

rho_b: float

Blood density

papillary_muscles: bool

If true, papilary muscle implementation is activated

soft_closure: bool

If true, a soft closure is activated

Signals

q: float

Flow through the valve

qDot: float

Time derivative of the flow q

parameters = ['adaptation_A_open_fac', 'A_open', 'A_leak', 'l', 'rho_b', 'papillary_muscles',...
signals = ['q', 'qDot', 'L', 'A', 'Dp', 'DpB', 'R', 'diast']
parameter_on_set
build()
add_object(o)