sunbather.construct_parker

Functions to construct parker

Functions

calc_mu_bar(sim)

Calculates the weighted mean of the radial mean particle mass profile, according to Eq.

calc_neutral_mu(zdict)

Calculates the mean particle mass assuming a completely neutral (i.e., atomic) gas, for a given composition (specified through elemental scale factors that can be converted into abundances).

catch_errors_run_s(*args)

Executes the run_s() function with provided arguments, while catching errors more gracefully.

cloudy_spec_to_pwinds(SEDfilename, dist_SED, ...)

Reads a spectrum file in the format that we give it to Cloudy, namely angstroms and monochromatic flux (i.e., nu*F_nu or lambda*F_lambda) units.

main(**kwargs)

Main function to construct a Parker profile.

new_argument_parser()

Creates an argument parser for the main function.

run([plname, pdir, mdot, temp, sed_name, ...])

z : float

run_g(plname, pdir, cores, mdot_l, mdot_u, ...)

Calculates a grid of isothermal Parker wind models, by executing the run() function in parallel.

run_parker_with_cloudy(filename, temp, ...)

Runs an isothermal Parker wind profile through Cloudy, using the isothermal temperature profile.

run_s(plname, pdir, mdot, temp, sed_name, ...)

Calculates a single isothermal Parker wind profile.

save_cloudy_parker_profile(planet, mdot, ...)

Calculates an isothermal Parker wind profile with any composition by iteratively running the p-winds code (dos Santos et al. 2022) and Cloudy (Ferland et al. 1998; 2017, Chatziokos et al. 2023).

save_plain_parker_profile(planet, mdot, ...)

Uses the p-winds code (dos Santos et al. 2022).

save_temp_parker_profile(planet, mdot, temp, ...)

Uses the p-winds code (dos Santos et al. 2022) Runs p_winds and saves a 'pprof' txt file with the r, rho, v, mu structure.