Skip to main content

DerSimControls

Struct DerSimControls 

Source
pub struct DerSimControls {
    pub time: Option<String>,
    pub temperature: Option<f32>,
    pub grid_model_source: Option<String>,
    pub irradiance_model_source: Option<String>,
    pub irradiance: Option<f32>,
    pub grid_voltage_a: Option<f32>,
    pub grid_voltage_b: Option<f32>,
    pub grid_voltage_c: Option<f32>,
    pub grid_frequency: Option<f32>,
}
Available on crate feature model64414 only.
Expand description

DER Simulation Controls

Configuration parameters for the DER device simulator.

Fields§

§time: Option<String>

Time offset

Time offset for simulation formatted ‘HH:MM:SS’

§temperature: Option<f32>

Ambient temperature (degrees Celsius)

§grid_model_source: Option<String>

The data source for the grid model. ‘csv’ or ‘const’

§irradiance_model_source: Option<String>

The data source for the irradiance model. ‘csv’ or ‘const’

§irradiance: Option<f32>

The irradiance on the DER device (W/m^2) for the ‘const’ irradiance model

§grid_voltage_a: Option<f32>

Phase A RMS Voltage (pu) for the ‘const’ grid model

§grid_voltage_b: Option<f32>

Phase B RMS Voltage (pu) for the ‘const’ grid model

§grid_voltage_c: Option<f32>

Phase C RMS Voltage (pu) for the ‘const’ grid model

§grid_frequency: Option<f32>

Grid frequency (Hz) for the ‘const’ grid model

Implementations§

Trait Implementations§

Source§

impl Debug for DerSimControls

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Group for DerSimControls

Source§

const LEN: u16 = 86

Group length (without nested and repeating groups)
Source§

impl Model for DerSimControls

Source§

const ID: u16 = 64414

Model ID
Source§

fn addr(models: &Models) -> ModelAddr<Self>

Get model address from discovered models struct
Source§

fn parse(data: &[u16]) -> Result<Self, ParseError<Self>>

Parse model data from a given u16 slice

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.