The Vapor
Class#
The Vapor
class links the Environment
class with the Particle
class by defining condensing vapor that are precursors to particles. The Vapor
class is defined in particula/vapor.py
. It inherits everything from the Environment
class, including attributes and methods. It can be imported as,
from particula.vapor import Vapor
and then it can be initiated with (some of) the Environment
attributes as well as the following additional attributes:
Vapor
attributes#
attribute |
unit |
default |
---|---|---|
|
m |
|
|
kg / m^3 |
|
|
kg / m^3 |
|
|
|
|
|
kg / mol |
|
For example, Vapor(vapor_radius=1e-9)
initiates the class with vapor radius of 1 nm with all other default attributes. Additionally, Vapor(vapor_radius=1e-9, temperature=290)
will initiate the class with 290 K and 1 nm, in addition to all other attributes. Above, vapor_radius
and vapor_density
refer to the radius of the condensing vapor and its density, respectively. The vapor_concentration
attribute defines the driving force of condensation (defined below). The vapor_attachment
coefficient is the sticking coefficient between a vapor and a particle and it is dimensionless; vapor_molec_wt
is the molecular weight of the condensing vapor.
It is possible to provide multiple vapors with multiple properties.
from particula import u
from particula.vapor import Vapor
VapOne = Vapor(temperature=300)
print("temperature is ", VapOne.temperature) # will print 300 K
print("pressure is ", VapOne.pressure) # will print 101325 Pa (kg/m/s^2)
print("vapor radius is ", VapOne.vapor_radius) # will print 1.6 nm
temperature is 300 kelvin
pressure is 101325 kilogram / meter / second ** 2
vapor radius is 1.6e-09 meter
Vapor
methods#
We currently only have one method in the Vapor
class.
Vapor.driving_force()
#
For now, Vapor.driving_force()
is equal to Vapor.vapor_concentration
. In reality, the relationship is more complicated, but since we likely do not measure the gas concentration directly, we can estimate it as such and correct it later.