Skip to content

particula.execution._gpu_gas_forcing

Selective gas forcing without returning evolving gas state to the host.

Attributes

NameDescription
_RNo description.

Functions

NameDescription
_commit_targetsOverwrite only the explicitly prescribed species.
_evaluate_targetsConvert prescribed ratios to kg/m3 using device temperature.
apply_species_forcingValidate all named targets before changing any physical state.

_Rattributemodule attribute#

_R = wp.constant(wp.float64(GAS_CONSTANT))

_commit_targetsfunction#

def _commit_targets(values: FloatMatrix, columns: IntVector, gas: FloatMatrix)

Overwrite only the explicitly prescribed species.

_evaluate_targetsfunction#

def _evaluate_targets(values: FloatMatrix, columns: IntVector, modes: IntVector, pressures: FloatVector, molar_mass: FloatVector, temperature: FloatVector, invalid: IntVector)

Convert prescribed ratios to kg/m3 using device temperature.

apply_species_forcingfunction#

def apply_species_forcing(owner, vapor, concentrations, saturation_ratios)

Validate all named targets before changing any physical state.