dx_to_dn Function

public function dx_to_dn(x, dx) result(dn)

dx_to_dn

Description

Convert the mole fraction derivatives of a quantity (calculated so they do not sum to 1) to mole number derivatives (where the mole fractions do sum to one). Requires the derivatives and the mole fractions of the mixture. From https://chemicals.readthedocs.io/chemicals.utils.html?highlight=dxs_to_dns#chemicals.utils.dxs_to_dns

Arguments

Type IntentOptional Attributes Name
real(kind=pr), intent(in) :: x(:)
real(kind=pr), intent(in) :: dx(:)

Return Value real(kind=pr), (size(x))


Variables

Type Visibility Attributes Name Initial
real(kind=pr), public :: sum_xdx