pysep.ext.lib package

Submodules

pysep.ext.lib.libdsepio module

pysep.ext.lib.libnewpoly module

pysep.ext.lib.libnumfrac module

pysep.ext.lib.write module

This module ‘write’ is auto-generated with f2py (version:1.21.1). Functions:

writeout(filename,time,csecyr,modnum,nshell,sumass,teffl,suluml,hstot,ddage,lexcom,lrot,lexcp,ldpree,ldiaz,jcore,jenv,cmixl,tlumx,trit,tril,ps,ts,rs,cfenv,x,z,sml,srl,sl,spl,stl,sdl,mlast,mlast1,smllast,srllast,sllast,spllast,stllast,sdllast,lc,elem,extelem,cgsl,teffl1,pn)

.

pysep.ext.lib.write module

This module ‘write’ is auto-generated with f2py (version:1.21.1). Functions:

writeout(filename,time,csecyr,modnum,nshell,sumass,teffl,suluml,hstot,ddage,lexcom,lrot,lexcp,ldpree,ldiaz,jcore,jenv,cmixl,tlumx,trit,tril,ps,ts,rs,cfenv,x,z,sml,srl,sl,spl,stl,sdl,mlast,mlast1,smllast,srllast,sllast,spllast,stllast,sdllast,lc,elem,extelem,cgsl,teffl1,pn)

.

Module contents

External libraries callable from within python, without using any shell interface.

Libraries

  • libdsepio.so

    Fast (c++) dsep io library

  • libnumfrac.so

    Generate number and mass fraction files from an abundance table.

  • libnewpoly.so

    Lane emden integrator to generate model results for dsep formated pre main sequence models

libdsepio

  • trk_read(const char* fname_p) -> double*

    Given some filename to a track file return an array of doubles extracted from that file.

  • trk_file_size(const char* fname_p) -> int

    Given some filename to a track file return the total number of float entries which are in that file.

libnumFrac

  • run (const char* fnamei_p, const char* fnameo_p, float FeHi,

    float FeHf, int FeHN, float AlphaFei, float AlphaFef, int AlphaFeN, float aHEi, float aHef, int aHeN, bool default)

    Generate the number fraction file (fnameo_p) for either the given grid of [Fe/H], [Alpha/Fe], and a(He) (if default is False) or just one number fraction file for the default values of all of these (i.e just those in the chemical composition file fnamei_p).

libnewpolyso

  • run (double sumass, double teffl1, double suluml, double x, double z,

    double pn, double cmixla, double ddage, double fmass1, double fmass2, double beta, double* elem, bool lexcom)

    Generate the model results from integrating the lane emden equation and then rescaling some of the output. Will return all model results as a struct which can be read by python and passed to fortran for writing to disk.