carputils
Doxygen code documentation for the python framework controlling openCARP
Public Member Functions | List of all members
carputils.fitting.klotz.KlotzRelation Class Reference

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

Public Member Functions

def __init__ (self, Vm, Pm)
 
def __call__ (self, V)
 
def inverse (self, P)
 

Detailed Description

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

To construct the relation, simply pass in a measured pressure-volume pair on the EDVPR:

>>> V = 120 # ml
>>> P = 4 # kPa
>>> relation = KlotzRelation(V, P)

You can then evaluate the relation by either calling it with volumes:

>>> Vsamp = np.linspace(0, 120, 100)
>>> Psamp = relation(Vsamp)

or compute the inverse:

>>> Psamp = np.linsapce(0, 4, 100)
>>> Vsamp = relation.inverse(Psamp)
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)

Constructor & Destructor Documentation

◆ __init__()

def carputils.fitting.klotz.KlotzRelation.__init__ (   self,
  Vm,
  Pm 
)

Member Function Documentation

◆ __call__()

def carputils.fitting.klotz.KlotzRelation.__call__ (   self,
  V 
)

◆ inverse()

def carputils.fitting.klotz.KlotzRelation.inverse (   self,
  P 
)

The documentation for this class was generated from the following file: