pub struct CulvertParameters { /* private fields */ }Expand description
Complete checked HDS-5 culvert: identical parallel barrels between two endpoints.
The law holds no water. A roadway over the culvert is a separate weir on the same endpoints.
Implementations§
Source§impl CulvertParameters
impl CulvertParameters
Sourcepub fn new(
barrel: CulvertBarrel,
alignment: CulvertAlignment,
manning_n: f64,
barrel_count: u32,
ends: CulvertEnds,
gravity_m_per_s2: f64,
applicability: CulvertApplicability,
) -> Result<Self, StructureError>
pub fn new( barrel: CulvertBarrel, alignment: CulvertAlignment, manning_n: f64, barrel_count: u32, ends: CulvertEnds, gravity_m_per_s2: f64, applicability: CulvertApplicability, ) -> Result<Self, StructureError>
Checks the alignment, roughness, barrel count, ends, gravity and applicability evidence.
Rejects a nonfinite or nonpositive length, Manning n or gravity, a nonfinite invert, a
zero barrel count, and a definition without an end. Rejects an end whose coded inlet is
for another barrel shape. Rejects an end whose barrel rises toward the far invert by more
than half the rise. Monotone inlet admission runs when a batch uploads the culvert.
Sourcepub fn with_floor_manning_n(
self,
floor_manning_n: f64,
) -> Result<Self, StructureError>
pub fn with_floor_manning_n( self, floor_manning_n: f64, ) -> Result<Self, StructureError>
Sets the Manning roughness n_floor of the own floor of a box or flat-floor arch barrel.
A sediment bed declared in CulvertBlockage replaces this floor roughness. Rejects
barrels without their own floor and nonfinite or nonpositive roughness values.
Sourcepub fn barrel(&self) -> CulvertBarrel
pub fn barrel(&self) -> CulvertBarrel
Barrel cross-section of every barrel.
Sourcepub fn alignment(&self) -> CulvertAlignment
pub fn alignment(&self) -> CulvertAlignment
Barrel length and both inverts.
Sourcepub fn floor_manning_n(&self) -> Option<f64>
pub fn floor_manning_n(&self) -> Option<f64>
Declared floor Manning roughness n_floor of an open-bottom box or flat-floor arch.
Sourcepub fn barrel_count(&self) -> u32
pub fn barrel_count(&self) -> u32
Number of identical parallel barrels.
Sourcepub fn ends(&self) -> CulvertEnds
pub fn ends(&self) -> CulvertEnds
End of each flow direction.
Sourcepub fn gravity_m_per_s2(&self) -> f64
pub fn gravity_m_per_s2(&self) -> f64
Gravity in metres per second squared.
Sourcepub fn applicability(&self) -> &CulvertApplicability
pub fn applicability(&self) -> &CulvertApplicability
Complete immutable applicability evidence.
Sourcepub fn forward_rows(&self) -> Option<(CulvertInletRow, CulvertOutletRow)>
pub fn forward_rows(&self) -> Option<(CulvertInletRow, CulvertOutletRow)>
Inlet and outlet query rows of A-to-B flow, or None without an A end.
The slope is (z_a - z_b) / L.
Sourcepub fn reverse_rows(&self) -> Option<(CulvertInletRow, CulvertOutletRow)>
pub fn reverse_rows(&self) -> Option<(CulvertInletRow, CulvertOutletRow)>
Inlet and outlet query rows of B-to-A flow, or None without a B end.
The slope is (z_b - z_a) / L.
Trait Implementations§
Source§impl Clone for CulvertParameters
impl Clone for CulvertParameters
Source§impl Debug for CulvertParameters
impl Debug for CulvertParameters
Source§impl PartialEq for CulvertParameters
impl PartialEq for CulvertParameters
impl StructuralPartialEq for CulvertParameters
Auto Trait Implementations§
impl Forget for CulvertParameters
impl Freeze for CulvertParameters
impl Move for CulvertParameters
impl RefUnwindSafe for CulvertParameters
impl Send for CulvertParameters
impl Sync for CulvertParameters
impl Unpin for CulvertParameters
impl UnsafeUnpin for CulvertParameters
impl UnwindSafe for CulvertParameters
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
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> ⓘ
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> ⓘ
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.