1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-23 02:38:51 -05:00
This commit is contained in:
hrocho 2018-02-08 18:58:12 +01:00
parent 915fc12a02
commit 6a15431a58
2 changed files with 8 additions and 0 deletions

View File

@ -449,6 +449,12 @@ def energy_out(Projectile projectile, Material material, energy = None, Config c
energy = projectile.T()
return catimac.energy_out(projectile.cbase, energy, material.cbase, config.cbase)
def sezi_dedx_e(Projectile projectile, Target t):
return catimac.sezi_dedx_e(projectile.cbase, t.cbase)
def bethek_dedx_e(Projectile projectile, Target t, Config c = default_config, Ipot=0.0):
return catimac.bethek_dedx_e(projectile.cbase, t.cbase,c.cbase,Ipot)
def lindhard(Projectile projectile):
return catimac.bethek_lindhard(projectile.cbase);

View File

@ -88,6 +88,8 @@ cdef extern from "catima/catima.h" namespace "catima":
cdef extern from "catima/calculations.h" namespace "catima":
cdef double bethek_lindhard(const Projectile &p);
cdef double bethek_lindhard_X(const Projectile &p);
cdef double bethek_dedx_e(Projectile &p,const Target &t, const Config &c, double I);
cdef double sezi_dedx_e(const Projectile &p, const Target &t);
cdef double z_effective(const Projectile &p, const Target &t, const Config &c);
cdef double z_eff_Pierce_Blann(double z, double beta);
cdef double z_eff_Anthony_Landford(double pz, double beta, double tz);