pttools.bubble.quantities
Functions for calculating quantities derived from solutions
TODO: Should this be renamed as thermodynamics?
Functions
- pttools.bubble.quantities.de_from_w_bag(w, xi, v_wall, alpha_n)
Calculates energy density difference
de = e - e[-1]from enthalpy, assuming bag equation of state. Can getalpha_n = find_alpha_n_from_w_xi(w,xi,v_wall,alpha_p)
- pttools.bubble.quantities.de_from_w_new_bag(v, w, xi, v_wall, alpha_n)
For exploring new methods of calculating energy density difference from velocity and enthalpy, assuming bag equation of state.
- pttools.bubble.quantities.get_kappa_bag(v_wall, alpha_n, n_xi=const.N_XI_DEFAULT, verbosity=0)
Efficiency factor \(\kappa\) from \(v_\text{wall}\) and \(\alpha_n\).
- pttools.bubble.quantities.get_kappa_de_bag(v_wall, alpha_n, n_xi=const.N_XI_DEFAULT, verbosity=0)
Calculates efficiency factor \(\kappa\) and fractional change in energy from \(v_\text{wall}\) and \(\alpha_n\). \(v_\text{wall}\) can be an array. Sum should be 0 (bag model).
- pttools.bubble.quantities.get_kappa_dq_bag(v_wall, alpha_n, n_xi=const.N_XI_DEFAULT, verbosity=0)
Calculates efficiency factor \(\kappa\) and fractional change in thermal energy from \(v_\text{wall}\) and \(\alpha_n\). \(v_\text{wall}\) can be an array. Sum should be 1. Thermal energy is defined as \(q = \frac{3}{4} \text{enthalpy}\).
- pttools.bubble.quantities.get_ke_de_frac_bag(v_wall, alpha_n, n_xi=const.N_XI_DEFAULT, verbosity=0)
Kinetic energy fraction and fractional change in energy from wall velocity array. Sum should be 0. Assumes bag model.
- pttools.bubble.quantities.get_ke_frac_bag(v_wall, alpha_n, n_xi=const.N_XI_DEFAULT)
Determine kinetic energy fraction (of total energy). Bag equation of state only so far, as it takes \(e_n = \frac{3}{4} w_n (1 + \alpha_n)\). This assumes zero trace anomaly in broken phase.
- pttools.bubble.quantities.get_ke_frac_new_bag(v_wall, alpha_n, n_xi=const.N_XI_DEFAULT, verbosity=0)
Determine kinetic energy fraction (of total energy). Bag equation of state only so far, as it takes \(e_n = \frac{3}{4} w_n (1 + \alpha_n)\). This assumes zero trace anomaly in broken phase.
- pttools.bubble.quantities.get_ubarf2_bag(v_wall, alpha_n, n_xi=const.N_XI_DEFAULT, verbosity=0)
Get mean square fluid velocity from \(v_\text{wall}\) and \(\alpha_n\).
- pttools.bubble.quantities.get_ubarf2_new_bag(v_wall, alpha_n, n_xi=const.N_XI_DEFAULT, verbosity=0)
Get mean square fluid velocity from \(v_\text{wall}\) and \(\alpha_n\).
- pttools.bubble.quantities.mean_energy_change_bag(v, w, xi, v_wall, alpha_n)
Bubble-averaged change in energy density in bubble relative to outside value.
- pttools.bubble.quantities.mean_enthalpy_change(v, w, xi, v_wall)
Mean change in enthalpy in bubble relative to outside value.
- pttools.bubble.quantities.mean_kinetic_energy(v, w, xi, v_wall)
Kinetic energy of fluid in bubble, averaged over bubble volume, from fluid shell functions.
- pttools.bubble.quantities.part_integrate(func, v, w, xi, where_in)
Integrate a function func of arrays \(v, w, \xi\) over index selection where_in.
- pttools.bubble.quantities.split_integrate(func, v, w, xi, v_wall)
Split an integration of a function func of arrays \(v, w, \xi\) according to whether \(\xi\) is inside or outside the wall (expecting discontinuity there).