total species mass
Add some routine to get the total mass of a species in the disk (something like in idl). something like the code below should do the trick.
Have to think about where to put it. Could be part of species ... or just a routine in Data_ProDiMo.
import astropy.units as u
model=pread.read_prodimo("TTauri0_1_F0_10_20")
totmass=0.0
# loop over all species in the model
for spec in model.spnames:
# calculate the total mass for that species.
mass=np.sum(np.multiply(model.vol,model.nmol[:,:,model.spnames[spec]]*model.species.mass[spec]))
# add it to the total disk mass ... just for checking.
totmass+=mass
print(spec,(mass*u.g).to(u.M_sun))
print("tot",(totmass*u.g).to(u.M_sun))