pub struct PatchCondition {
pub boundary: ThermalBoundary,
pub film_area_fraction: Option<Vec<f64>>,
}Expand description
A ThermalBoundary applied to one mesh patch, with an optional per-face
film-area fraction.
Fields§
§boundary: ThermalBoundaryThe condition.
film_area_fraction: Option<Vec<f64>>For ThermalBoundary::Convective only: the fraction of each face’s
meshed area that is true wetted surface (one value per face, in
[0, 1]). None means 1 everywhere. On a voxel staircase this is
|n_axis . n_true|, which makes the film’s total area converge to the
true surface area (see super::mesh::voxel_mesh). Ignored by the
other conditions.
Implementations§
Source§impl PatchCondition
impl PatchCondition
Sourcepub fn uniform(boundary: ThermalBoundary) -> Self
pub fn uniform(boundary: ThermalBoundary) -> Self
The condition with no film-area correction.
Sourcepub fn with_film_area_fraction(
boundary: ThermalBoundary,
fraction: Vec<f64>,
) -> Self
pub fn with_film_area_fraction( boundary: ThermalBoundary, fraction: Vec<f64>, ) -> Self
The condition with a per-face film-area fraction (see the field doc).
Trait Implementations§
Source§impl Clone for PatchCondition
impl Clone for PatchCondition
Source§impl Debug for PatchCondition
impl Debug for PatchCondition
Source§impl PartialEq for PatchCondition
impl PartialEq for PatchCondition
impl StructuralPartialEq for PatchCondition
Auto Trait Implementations§
impl !RefUnwindSafe for PatchCondition
impl !UnwindSafe for PatchCondition
impl Freeze for PatchCondition
impl Send for PatchCondition
impl Sync for PatchCondition
impl Unpin for PatchCondition
impl UnsafeUnpin for PatchCondition
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