velocity_moments
moment_kinetics.velocity_moments
— Modulemoment_kinetics.velocity_moments.calculate_electron_moment_derivatives!
— MethodPre-calculate spatial derivatives of the electron moments that will be needed for the time advance
moment_kinetics.velocity_moments.calculate_electron_moment_derivatives_no_r!
— MethodCalculate spatial derivatives of the electron moments.
This version, for use in implicit solvers for electrons, works with a single point in r
, given by ir
.
moment_kinetics.velocity_moments.calculate_ion_moment_derivatives!
— MethodPre-calculate spatial derivatives of the moments that will be needed for the time advance
moment_kinetics.velocity_moments.calculate_neutral_moment_derivatives!
— MethodPre-calculate spatial derivatives of the neutral moments that will be needed for the time advance
moment_kinetics.velocity_moments.create_moments_electron
— Methodcreate a moment struct containing information about the electron moments
moment_kinetics.velocity_moments.create_moments_ion
— Methodmoment_kinetics.velocity_moments.get_pressure
— Methodcompute the isotropic pressure from the already computed ppar and pperp
moment_kinetics.velocity_moments.integrate_over_negative_vpa
— Methodcomputes the integral over vpa <= 0 of the integrand, using the input vpa_wgts this could be made more efficient for the case that dz/dt = vpa is time-independent, but it has been left general for the cases where, e.g., dz/dt = wpa*vth + upar varies in time
moment_kinetics.velocity_moments.integrate_over_positive_vpa
— Methodcomputes the integral over vpa >= 0 of the integrand, using the input vpa_wgts this could be made more efficient for the case that dz/dt = vpa is time-independent, but it has been left general for the cases where, e.g., dz/dt = wpa*vth + upar varies in time
moment_kinetics.velocity_moments.integrate_over_vspace
— Methodcomputes the integral over vpa of the integrand, using the input vpa_wgts
moment_kinetics.velocity_moments.reset_moments_status!
— Methodmoment_kinetics.velocity_moments.update_chodura_integral_species!
— Methodcompute the integral needed for the generalised Chodura condition
IChodura = (Z^2 vBohm^2 / cref^2) * int ( f bz^2 / vz^2 + dfdr*rhostar/vz ) vBohm = sqrt(Z Te/mi) with Z = 1 and mref = mi cref = sqrt(2Ti/mi) and normalise to the local ion density, appropriate to assessing the Chodura condition
IChodura <= (Te/e)d ne / dphi |(sheath entrance) = ni
to a single species plasma with Z = 1
moment_kinetics.velocity_moments.update_density!
— MethodNB: if this function is called and if dens_updated is false, then the incoming pdf is the un-normalized pdf that satisfies int dv pdf = density
moment_kinetics.velocity_moments.update_density_species!
— Methodcalculate the updated density (dens) for a given species; should only be called when evolvedensity = false, in which case the vpa coordinate is vpa/cs
moment_kinetics.velocity_moments.update_derived_moments!
— Methodupdate velocity moments that are calculable from the evolved ion pdf
moment_kinetics.velocity_moments.update_derived_moments_neutral!
— Methodupdate velocity moments that are calculable from the evolved neutral pdf
moment_kinetics.velocity_moments.update_moments!
— Methodcalculate the updated density (dens) and parallel pressure (ppar) for all species this function is only used once after initialisation the function used to update moments at run time is updatederivedmoments! in time_advance.jl
moment_kinetics.velocity_moments.update_moments_neutral!
— Methodupdate velocity moments of the evolved neutral pdf
moment_kinetics.velocity_moments.update_neutral_density!
— Methodcalculate the neutral density from the neutral pdf
moment_kinetics.velocity_moments.update_neutral_density_species!
— Methodcalculate the updated density (dens) for a given species
moment_kinetics.velocity_moments.update_neutral_pr_species!
— Methodcalculate the updated pressure in the rr direction (pr) for a given species
moment_kinetics.velocity_moments.update_neutral_pz_species!
— Methodcalculate the updated pressure in zz direction (pz) for a given species
moment_kinetics.velocity_moments.update_neutral_pzeta_species!
— Methodcalculate the updated pressure in the zeta zeta direction (pzeta) for a given species
moment_kinetics.velocity_moments.update_neutral_qz_species!
— Methodcalculate the updated heat flux zzz direction (qz) for a given species
moment_kinetics.velocity_moments.update_neutral_ur_species!
— Methodcalculate the updated ur (mean velocity in r) for a given species
moment_kinetics.velocity_moments.update_neutral_uz_species!
— Methodcalculate the updated uz (mean velocity in z) for a given species
moment_kinetics.velocity_moments.update_neutral_uzeta_species!
— Methodcalculate the updated uzeta (mean velocity in zeta) for a given species
moment_kinetics.velocity_moments.update_ppar!
— MethodNB: if this function is called and if ppar_updated is false, then the incoming pdf is the un-normalized pdf that satisfies int dv pdf = density
moment_kinetics.velocity_moments.update_ppar_species!
— Methodcalculate the updated energy density (or parallel pressure, ppar) for a given species; which of these is calculated depends on the definition of the vpa coordinate
moment_kinetics.velocity_moments.update_pperp_species!
— Methodcalculate the updated perpendicular pressure (pperp) for a given species
moment_kinetics.velocity_moments.update_qpar!
— MethodNB: the incoming pdf is the normalized pdf
moment_kinetics.velocity_moments.update_qpar_species!
— Methodcalculate the updated parallel heat flux (qpar) for a given species
moment_kinetics.velocity_moments.update_upar!
— MethodNB: if this function is called and if upar_updated is false, then the incoming pdf is the un-normalized pdf that satisfies int dv pdf = density
moment_kinetics.velocity_moments.update_upar_species!
— Methodcalculate the updated parallel flow (upar) for a given species