SACdata

class pysac.io.legacy.SACdata(filename, filetype='auto')[source] [edit on github]

Bases: pysac.io.legacy.VACdata

This adds specifications to VACdata designed for SAC simulations in 2D or 3D with magnetic field.

This adds the background and pertubation varibles into a new w_sac dict.

Methods Summary

convert_B() This function corrects for the scaling of the magentic field units.
get_bgp()
get_bgtemp()
get_cs([p])
get_temp([p])
get_thermalp([beta]) Calculate Thermal pressure from varibles
get_total_p()
get_va()
get_w_yt()
read_timestep(i)
update_w_sac() This method creates the w_sac dictionary for the current timestep.

Methods Documentation

convert_B()[source] [edit on github]

This function corrects for the scaling of the magentic field units.

It will convert the magnetic field into Tesla for the current time step.

WARNING: The conservative variable calculations are in SAC scaled magnetic field units, this conversion should be run after accessing any calculatuions involving the magnetic field

get_bgp()[source] [edit on github]
get_bgtemp()[source] [edit on github]
get_cs(p=None)[source] [edit on github]
get_temp(p=None)[source] [edit on github]
get_thermalp(beta=False)[source] [edit on github]

Calculate Thermal pressure from varibles

get_total_p()[source] [edit on github]
get_va()[source] [edit on github]
get_w_yt()[source] [edit on github]
read_timestep(i)[source] [edit on github]
update_w_sac()[source] [edit on github]

This method creates the w_sac dictionary for the current timestep.