Particle classes

O2sclpy

Class thermo

class o2sclpy.thermo(link, pointer=0)

Python interface for class thermo.

__init__(link, pointer=0)

Init function for class thermo

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class thermo

__copy__()

Shallow copy function for class thermo

Returns: thermo object

property ed

Property of type ctypes.c_double

property en

Property of type ctypes.c_double

property pr

Property of type ctypes.c_double

Class part

class o2sclpy.part(link, pointer=0)

Python interface for class part.

__init__(link, pointer=0)

Init function for class part

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class part

__copy__()

Shallow copy function for class part

Returns: part object

anti(ax)
Parameters:
ax: part object
property ed

Property of type ctypes.c_double

property en

Property of type ctypes.c_double

property g

Property of type ctypes.c_double

property inc_rest_mass

Property of type ctypes.c_bool

init(mass, dof)
Parameters:
mass: double
dof: double
property m

Property of type ctypes.c_double

property ms

Property of type ctypes.c_double

property mu

Property of type ctypes.c_double

property n

Property of type ctypes.c_double

property non_interacting

Property of type ctypes.c_bool

property nu

Property of type ctypes.c_double

property pr

Property of type ctypes.c_double

Class fermion

class o2sclpy.fermion(link, pointer=0)

Python interface for O2scl class fermion, which is a typedef of fermion_tl<double>. See https://awsteiner.org/code/o2scl-dev/part/html/class/fermion_tl.html .

__init__(link, pointer=0)

Init function for class fermion

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class fermion

__copy__()

Shallow copy function for class fermion

Returns: fermion object

property delta

Property of type ctypes.c_double

property kf

Property of type ctypes.c_double

Class quark

class o2sclpy.quark(link, pointer=0)

Python interface for O2scl class quark, See https://awsteiner.org/code/o2scl/html/class/quark.html .

__init__(link, pointer=0)

Init function for class quark

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class quark

__copy__()

Shallow copy function for class quark

Returns: quark object

property B

Property of type ctypes.c_double

property qq

Property of type ctypes.c_double

Class fermion_zerot

class o2sclpy.fermion_zerot(link, pointer=0)

Python interface for class fermion_zerot.

__init__(link, pointer=0)

Init function for class fermion_zerot

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class fermion_zerot

__copy__()

Shallow copy function for class fermion_zerot

Returns: fermion_zerot object

calc_density_zerot(f)
Parameters:
f: fermion object
calc_mu_zerot(f)
Parameters:
f: fermion object
energy_density_zerot(f)
Parameters:
f: fermion object
kf_from_density(f)
Parameters:
f: fermion object
pressure_zerot(f)
Parameters:
f: fermion object

Class fermion_thermo

class o2sclpy.fermion_thermo(link, pointer=0)

Python interface for fermion_thermo.

abstract __init__(link, pointer=0)

Init function for class fermion_thermo

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class fermion_thermo

__copy__()

Shallow copy function for class fermion_thermo

Returns: fermion_thermo object

calc_mu_deg(f, T, prec)
Parameters:
f: fermion object
T: double
prec: double
Returns: a Python boolean
calc_mu_ndeg(f, T, prec, inc_antip)
Parameters:
f: fermion object
T: double
prec: double
inc_antip: bool
Returns: a Python boolean
massless_calc_density(f, T)
Parameters:
f: fermion object
T: double
massless_calc_mu(f, T)
Parameters:
f: fermion object
T: double
massless_pair_density(f, T)
Parameters:
f: fermion object
T: double
massless_pair_mu(f, T)
Parameters:
f: fermion object
T: double

Class fermion_rel

class o2sclpy.fermion_rel(link, pointer=0)

Python interface for class fermion_rel.

__init__(link, pointer=0)

Init function for class fermion_rel

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class fermion_rel

__copy__()

Shallow copy function for class fermion_rel

Returns: fermion_rel object

calc_density(f, T)
Parameters:
f: fermion object
T: double
Returns: a Python int
calc_mu(f, T)
Parameters:
f: fermion object
T: double
property deg_entropy_fac

Property of type ctypes.c_double

property deg_limit

Property of type ctypes.c_double

property err_nonconv

Property of type ctypes.c_bool

get_unc()

Get object of type fermion

property min_psi

Property of type ctypes.c_double

nu_from_n(f, T)
Parameters:
f: fermion object
T: double
Returns: a Python int
pair_density(f, T)
Parameters:
f: fermion object
T: double
Returns: a Python int
pair_mu(f, T)
Parameters:
f: fermion object
T: double
set_unc(value)

Set object of type fermion

property therm_ident

Property of type ctypes.c_double

property tol_expan

Property of type ctypes.c_double

property upper_limit_fac

Property of type ctypes.c_double

property use_expansions

Property of type ctypes.c_bool

property verbose

Property of type ctypes.c_int

property verify_ti

Property of type ctypes.c_bool

Class fermion_nonrel

class o2sclpy.fermion_nonrel(link, pointer=0)

Python interface for class fermion_nonrel.

__init__(link, pointer=0)

Init function for class fermion_nonrel

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class fermion_nonrel

__copy__()

Shallow copy function for class fermion_nonrel

Returns: fermion_nonrel object

calc_density(f, T)
Parameters:
f: fermion object
T: double
Returns: a Python int
calc_mu(f, T)
Parameters:
f: fermion object
T: double
nu_from_n(f, T)
Parameters:
f: fermion object
T: double

Class boson

class o2sclpy.boson(link, pointer=0)

Python interface for O2scl class boson, See https://awsteiner.org/code/o2scl/html/class/boson.html .

__init__(link, pointer=0)

Init function for class boson

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class boson

__copy__()

Shallow copy function for class boson

Returns: boson object

property co

Property of type ctypes.c_double

Class boson_rel

class o2sclpy.boson_rel(link, pointer=0)

Python interface for O2scl class boson_rel, See https://awsteiner.org/code/o2scl/html/class/boson_rel.html .

__init__(link, pointer=0)

Init function for class boson_rel

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class boson_rel

__copy__()

Shallow copy function for class boson_rel

Returns: boson_rel object

calc_density(b, T)
Parameters:
b: boson object
T: double
calc_mu(b, T)
Parameters:
b: boson object
T: double
nu_from_n(b, T)
Parameters:
b: boson object
T: double
pair_density(b, T)
Parameters:
b: boson object
T: double
pair_mu(b, T)
Parameters:
b: boson object
T: double

Class classical_thermo

class o2sclpy.classical_thermo(link, pointer=0)

Python interface for class classical_thermo.

__init__(link, pointer=0)

Init function for class classical_thermo

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class classical_thermo

__copy__()

Shallow copy function for class classical_thermo

Returns: classical_thermo object

calc_density(p, T)
Parameters:
p: part object
T: double
calc_mu(p, T)
Parameters:
p: part object
T: double

Class thermo_np_deriv_press

class o2sclpy.thermo_np_deriv_press(link, pointer=0)

Python interface for class thermo_np_deriv_press.

__init__(link, pointer=0)

Init function for class thermo_np_deriv_press

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class thermo_np_deriv_press

__copy__()

Shallow copy function for class thermo_np_deriv_press

Returns: thermo_np_deriv_press object

property dndmu_mixed

Property of type ctypes.c_double

property dnndT

Property of type ctypes.c_double

property dnndmun

Property of type ctypes.c_double

property dnpdT

Property of type ctypes.c_double

property dnpdmup

Property of type ctypes.c_double

property dsdT

Property of type ctypes.c_double

Class thermo_np_deriv_helm

class o2sclpy.thermo_np_deriv_helm(link, pointer=0)

Python interface for class thermo_np_deriv_helm.

__init__(link, pointer=0)

Init function for class thermo_np_deriv_helm

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class thermo_np_deriv_helm

__copy__()

Shallow copy function for class thermo_np_deriv_helm

Returns: thermo_np_deriv_helm object

property dmudn_mixed

Property of type ctypes.c_double

property dmundT

Property of type ctypes.c_double

property dmundnn

Property of type ctypes.c_double

property dmupdT

Property of type ctypes.c_double

property dmupdnp

Property of type ctypes.c_double

property dsdT

Property of type ctypes.c_double

Class part_deriv_press

class o2sclpy.part_deriv_press(link, pointer=0)

Python interface for class part_deriv_press.

__init__(link, pointer=0)

Init function for class part_deriv_press

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class part_deriv_press

__copy__()

Shallow copy function for class part_deriv_press

Returns: part_deriv_press object

deriv_f()
Parameters:
Returns: , a Python float, a Python float, a Python float
property dndT

Property of type ctypes.c_double

property dndmu

Property of type ctypes.c_double

property dsdT

Property of type ctypes.c_double

Class part_deriv

class o2sclpy.part_deriv(link, pointer=0)

Python interface for class part_deriv.

__init__(link, pointer=0)

Init function for class part_deriv

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class part_deriv

__copy__()

Shallow copy function for class part_deriv

Returns: part_deriv object

Class fermion_deriv

class o2sclpy.fermion_deriv(link, pointer=0)

Python interface for class fermion_deriv.

__init__(link, pointer=0)

Init function for class fermion_deriv

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class fermion_deriv

__copy__()

Shallow copy function for class fermion_deriv

Returns: fermion_deriv object

Class deriv_thermo_base

class o2sclpy.deriv_thermo_base(link, pointer=0)

Python interface for class deriv_thermo_base.

__init__(link, pointer=0)

Init function for class deriv_thermo_base

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class deriv_thermo_base

__copy__()

Shallow copy function for class deriv_thermo_base

Returns: deriv_thermo_base object

coeff_thermal_exp(p, T)
Parameters:
p: part_deriv object
T: double
Returns: a Python float
compress_adiabatic(p, T)
Parameters:
p: part_deriv object
T: double
Returns: a Python float
compress_const_tptr(p, T)
Parameters:
p: part_deriv object
T: double
Returns: a Python float
heat_cap_ppart_const_press(p, T)
Parameters:
p: part_deriv object
T: double
Returns: a Python float
heat_cap_ppart_const_vol(p, T)
Parameters:
p: part_deriv object
T: double
Returns: a Python float
squared_sound_speed(p, T)
Parameters:
p: part_deriv object
T: double
Returns: a Python float

Class classical_deriv_thermo

class o2sclpy.classical_deriv_thermo(link, pointer=0)

Python interface for class classical_deriv_thermo.

__init__(link, pointer=0)

Init function for class classical_deriv_thermo

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class classical_deriv_thermo

__copy__()

Shallow copy function for class classical_deriv_thermo

Returns: classical_deriv_thermo object

calc_density(p, T)
Parameters:
p: part_deriv object
T: double
calc_mu(p, T)
Parameters:
p: part_deriv object
T: double

Class fermion_mag_zerot

class o2sclpy.fermion_mag_zerot(link, pointer=0)

Python interface for O2scl class fermion_mag_zerot, See https://awsteiner.org/code/o2scl/html/class/fermion_mag_zerot.html .

__init__(link, pointer=0)

Init function for class fermion_mag_zerot

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class fermion_mag_zerot

__copy__()

Shallow copy function for class fermion_mag_zerot

Returns: fermion_mag_zerot object

calc_density_zerot_mag(f, qB, kappa)
Parameters:
f: fermion object
qB: double
kappa: double
calc_mu_zerot_mag(f, qB, kappa)
Parameters:
f: fermion object
qB: double
kappa: double
property nmax_dn

Property of type ctypes.c_int

property nmax_up

Property of type ctypes.c_int

property sum_limit

Property of type ctypes.c_int