pysac.mhs_atmosphere Module

Functions

construct_magnetic_field(x, y, z, x0, y0, S, ...) Construct self similar magnetic field configuration
construct_pairwise_field(x, y, z, xi, yi, ...) Construct self similar magnetic field configuration
get_flux_tubes(model, model_pars, coords, ...) Obtain an array of x,y coordinates and corresponding vertical
get_internal_energy(pressure, magp, ...) Convert pressures to internal energy – this may need revision if an alternative equation of state is adopted.
get_logical(model, l_mpi[, l_SI, l_gdf]) This module assigns the logical options for the model.
get_model(model, Nxyz, xyz_SI, scales, ...)
get_parameters(model, l_mpi, logical_pars, size)
get_spruit_hs(filenames, Z, scales, ...)
interpolate_atmosphere(filenames, Z, scales, ...) This module generates a 1d array for the model plasma preesure, plasma density, temperature and mean molecular weight.
mhs_3D_profile(z, pressure_z, rho_z, ...) Return the vertical profiles for thermal pressure and density in 3D
save_SACsources(model, sourcesfile, Fx, Fy, ...) Save the balancing forces for a SAC model with multiple flux tubes in hdf5 (gdf default) format after collating the data from mpi sub processes if necessary.
save_SACvariables(model, filename, rho, Bx, ...) Save the background variables for a SAC model in hdf5 (gdf default) format after collating the data from mpi sub processes if necessary.
save_auxilliary1D(model, auxfile, ...) Save auxilliary variables for use in plotting background setup in hdf5 (gdf default) format after collating the data from mpi sub processes if necessary.
vertical_profile(Zint, Z, pdata_i, rdata_i, ...) Return the vertical profiles for thermal pressure and density in 1D.