pub enum WindShearModelV1 {
None,
Logarithmic,
PowerLaw,
EkmanSpiral,
}Expand description
Wire values for EffectsV1::wind_shear_model (0.36.0).
These are the engine’s own model names (see crate::wind_shear), so a v1 request and the
CLI’s --wind-shear-model name the same physics with the same spelling.
crate::wind_shear::WindShearModel::CustomLayers is deliberately NOT exposed: it needs a
caller-supplied layer table that this contract has no field for, and would silently degrade
to the surface wind.
Variants§
None
No altitude dependence: the request’s wind is used at every height (the historical default, and what an omitted field means).
Logarithmic
Logarithmic boundary-layer profile, ln(z / z0) / ln(z_ref / z0).
PowerLaw
1/7 power-law boundary-layer profile, (z / z_ref)^(1/7).
EkmanSpiral
Ekman spiral. Accepted for parity with the CLI and the engine’s model names, but this
solve path’s boundary-layer evaluator has no near-ground closed form for it, so it
leaves the wind at the operative value. Enabling it emits a
wind_shear_model_not_modeled warning rather than passing silently.
Implementations§
Source§impl WindShearModelV1
impl WindShearModelV1
Sourcepub fn as_engine_str(self) -> &'static str
pub fn as_engine_str(self) -> &'static str
The canonical lower-snake name the engine’s wind_shear / cli_api code understands.
Aliases resolve to their canonical spelling here, which is also what the resolved
request echoes: "ekman" in, "ekman_spiral" out.
Sourcepub fn is_enabled(self) -> bool
pub fn is_enabled(self) -> bool
Whether this model asks the solver for altitude-dependent wind at all.
"none" must map to enable_wind_shear: false rather than to an enabled solver
holding the string "none": crate::cli_api’s shear branch maps any unrecognized
model name — "none" included — to the power law, so an enabled-but-"none" solve
would quietly run power-law shear.
Trait Implementations§
Source§impl Clone for WindShearModelV1
impl Clone for WindShearModelV1
Source§fn clone(&self) -> WindShearModelV1
fn clone(&self) -> WindShearModelV1
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WindShearModelV1
Source§impl Debug for WindShearModelV1
impl Debug for WindShearModelV1
Source§impl Default for WindShearModelV1
impl Default for WindShearModelV1
Source§fn default() -> WindShearModelV1
fn default() -> WindShearModelV1
Source§impl<'de> Deserialize<'de> for WindShearModelV1
impl<'de> Deserialize<'de> for WindShearModelV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for WindShearModelV1
Source§impl PartialEq for WindShearModelV1
impl PartialEq for WindShearModelV1
Source§impl Serialize for WindShearModelV1
impl Serialize for WindShearModelV1
impl StructuralPartialEq for WindShearModelV1
Auto Trait Implementations§
impl Freeze for WindShearModelV1
impl RefUnwindSafe for WindShearModelV1
impl Send for WindShearModelV1
impl Sync for WindShearModelV1
impl Unpin for WindShearModelV1
impl UnsafeUnpin for WindShearModelV1
impl UnwindSafe for WindShearModelV1
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.