carputils
Doxygen code documentation for the python framework controlling openCARP
Classes | Functions | Variables
carputils.fitting.klotz Namespace Reference

Classes

class  KlotzRelation
 Represents the EDPVR determined by Klotz from a single volume, pressure measurement. More...
 

Functions

def V0 (Vm, Pm)
 Determine the zero-pressure volume from the Klotz relation. More...
 
def V30 (Vm, Pm)
 Determine the volume at 30 mmHg from the Klotz relation. More...
 
def V15 (Vm, Pm)
 Determine the volume at 15 mmHg from the Klotz relation. More...
 
def beta (Vm, Pm)
 Determine the beta parameter of the Klotz EDPVR. More...
 
def alpha (Vm, Pm)
 Determine the alpha parameter of the Klotz EDPVR. More...
 

Variables

float MMHG2KPA = 0.133322387415
 
float KPA2MMHG = 1.0 / MMHG2KPA
 
float AN = 27.78
 
float BN = 2.76
 
 fig = pyplot.figure()
 
 ax = fig.add_subplot(1,1,1)
 
 Vm = float(sys.argv[1])
 
 Pm = float(sys.argv[2]) * MMHG2KPA
 
list V = []
 
 P = KlotzRelation(Vm, Pm)
 
 vdat = np.linspace(0, 170, 200)
 
 pdat = P(vdat)
 
 c
 
 label
 
 marker
 
 loc
 
 color
 

Function Documentation

◆ alpha()

def carputils.fitting.klotz.alpha (   Vm,
  Pm 
)

Determine the alpha parameter of the Klotz EDPVR.

Parameters

Vm float The volume of a measured state on the EDPVR (ml) Pm float The pressure of a measured state on the EDPVR (kPa)

Returns

float The alpha parameter

◆ beta()

def carputils.fitting.klotz.beta (   Vm,
  Pm 
)

Determine the beta parameter of the Klotz EDPVR.

Parameters

Vm float The volume of a measured state on the EDPVR (ml) Pm float The pressure of a measured state on the EDPVR (kPa)

Returns

float The beta parameter

◆ V0()

def carputils.fitting.klotz.V0 (   Vm,
  Pm 
)

Determine the zero-pressure volume from the Klotz relation.

Parameters

Vm float The volume of a measured state on the EDPVR (ml) Pm float The pressure of a measured state on the EDPVR (kPa)

Returns

float The zero-pressure volume (ml)

◆ V15()

def carputils.fitting.klotz.V15 (   Vm,
  Pm 
)

Determine the volume at 15 mmHg from the Klotz relation.

Parameters

Vm float The volume of a measured state on the EDPVR (ml) Pm float The pressure of a measured state on the EDPVR (kPa)

Returns

float The volume at 15 mmHg (ml)

◆ V30()

def carputils.fitting.klotz.V30 (   Vm,
  Pm 
)

Determine the volume at 30 mmHg from the Klotz relation.

Parameters

Vm float The volume of a measured state on the EDPVR (ml) Pm float The pressure of a measured state on the EDPVR (kPa)

Returns

float The volume at 30 mmHg (ml)

Variable Documentation

◆ AN

float carputils.fitting.klotz.AN = 27.78

◆ ax

carputils.fitting.klotz.ax = fig.add_subplot(1,1,1)

◆ BN

float carputils.fitting.klotz.BN = 2.76

◆ c

carputils.fitting.klotz.c

◆ color

carputils.fitting.klotz.color

◆ fig

carputils.fitting.klotz.fig = pyplot.figure()

◆ KPA2MMHG

float carputils.fitting.klotz.KPA2MMHG = 1.0 / MMHG2KPA

◆ label

carputils.fitting.klotz.label

◆ loc

carputils.fitting.klotz.loc

◆ marker

carputils.fitting.klotz.marker

◆ MMHG2KPA

float carputils.fitting.klotz.MMHG2KPA = 0.133322387415

◆ P

carputils.fitting.klotz.P = KlotzRelation(Vm, Pm)

◆ pdat

carputils.fitting.klotz.pdat = P(vdat)

◆ Pm

float carputils.fitting.klotz.Pm = float(sys.argv[2]) * MMHG2KPA

◆ V

carputils.fitting.klotz.V = []

◆ vdat

carputils.fitting.klotz.vdat = np.linspace(0, 170, 200)

◆ Vm

carputils.fitting.klotz.Vm = float(sys.argv[1])