pub struct PhaseChangeConfig {
pub melt_temperature: f32,
pub boil_temperature: f32,
pub latent_heat_fusion: f32,
pub latent_heat_vaporization: f32,
pub diffusion_rate: f32,
pub ambient_temperature: f32,
pub cooling_rate: f32,
pub liquid_flow_speed: f32,
pub gas_expansion_rate: f32,
pub gas_dissipation_rate: f32,
pub max_offset: f32,
}Expand description
Phase change modifier configuration
Fields§
§melt_temperature: f32Temperature at which solid melts to liquid
boil_temperature: f32Temperature at which liquid vaporizes to gas
latent_heat_fusion: f32Latent heat of fusion in kelvin-equivalent units (L_f / c_p):
the temperature rise a cell must supply, and hold at
melt_temperature, before it turns liquid.
latent_heat_vaporization: f32Latent heat of vaporization in kelvin-equivalent units (L_v / c_p).
diffusion_rate: f32Thermal diffusion rate
ambient_temperature: f32Ambient temperature
cooling_rate: f32Cooling rate toward ambient
liquid_flow_speed: f32Liquid flow speed (gravity-driven downward): fraction of a liquid cell’s offset moved to the cell below per second, and (× 0.1) the rate at which liquid softens the surface (offset per second).
gas_expansion_rate: f32Gas expansion rate (SDF offset per second)
gas_dissipation_rate: f32Gas dissipation rate (material removal per second)
max_offset: f32Maximum SDF offset from phase changes
Trait Implementations§
Source§impl Clone for PhaseChangeConfig
impl Clone for PhaseChangeConfig
impl Copy for PhaseChangeConfig
Source§impl Debug for PhaseChangeConfig
impl Debug for PhaseChangeConfig
Source§impl Default for PhaseChangeConfig
impl Default for PhaseChangeConfig
Source§impl PartialEq for PhaseChangeConfig
impl PartialEq for PhaseChangeConfig
impl StructuralPartialEq for PhaseChangeConfig
Auto Trait Implementations§
impl Freeze for PhaseChangeConfig
impl RefUnwindSafe for PhaseChangeConfig
impl Send for PhaseChangeConfig
impl Sync for PhaseChangeConfig
impl Unpin for PhaseChangeConfig
impl UnsafeUnpin for PhaseChangeConfig
impl UnwindSafe for PhaseChangeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more