Skip to main content

EnergySource

Struct EnergySource 

Source
pub struct EnergySource {
Show 15 fields pub base: EnergyConnection, pub energy_scheduling_type: Option<MridRef>, pub active_power: Option<f64>, pub nominal_voltage: Option<f64>, pub p_max: Option<f64>, pub p_min: Option<f64>, pub r: Option<f64>, pub r0: Option<f64>, pub reactive_power: Option<f64>, pub rn: Option<f64>, pub voltage_angle: Option<f64>, pub voltage_magnitude: Option<f64>, pub x: Option<f64>, pub x0: Option<f64>, pub xn: Option<f64>,
}
Expand description

A generic equivalent for an energy supplier on a transmission or distribution voltage level.

Fields§

§base: EnergyConnection§energy_scheduling_type: Option<MridRef>

Energy Scheduling Type of an Energy Source.

§active_power: Option<f64>

High voltage source active injection. Load sign convention is used, i.e. positive sign means flow out from a node. Starting value for steady state solutions.

§nominal_voltage: Option<f64>

Phase-to-phase nominal voltage.

§p_max: Option<f64>

This is the maximum active power that can be produced by the source. Load sign convention is used, i.e. positive sign means flow out from a TopologicalNode (bus) into the conducting equipment.

§p_min: Option<f64>

This is the minimum active power that can be produced by the source. Load sign convention is used, i.e. positive sign means flow out from a TopologicalNode (bus) into the conducting equipment.

§r: Option<f64>

Positive sequence Thevenin resistance.

§r0: Option<f64>

Zero sequence Thevenin resistance.

§reactive_power: Option<f64>

High voltage source reactive injection. Load sign convention is used, i.e. positive sign means flow out from a node. Starting value for steady state solutions.

§rn: Option<f64>

Negative sequence Thevenin resistance.

§voltage_angle: Option<f64>

Phase angle of a-phase open circuit used when voltage characteristics need to be imposed at the node associated with the terminal of the energy source, such as when voltages and angles from the transmission level are used as input to the distribution network. The attribute shall be a positive value or zero.

§voltage_magnitude: Option<f64>

Phase-to-phase open circuit voltage magnitude used when voltage characteristics need to be imposed at the node associated with the terminal of the energy source, such as when voltages and angles from the transmission level are used as input to the distribution network. The attribute shall be a positive value or zero.

§x: Option<f64>

Positive sequence Thevenin reactance.

§x0: Option<f64>

Zero sequence Thevenin reactance.

§xn: Option<f64>

Negative sequence Thevenin reactance.

Implementations§

Trait Implementations§

Source§

impl CimElement for EnergySource

Source§

fn mrid(&self) -> &str

Source§

fn type_name(&self) -> &'static str

Source§

fn as_any(&self) -> &dyn Any

Source§

fn to_json_value(&self) -> Value

Source§

fn to_block(&self) -> RdfBlock

Source§

impl Clone for EnergySource

Source§

fn clone(&self) -> EnergySource

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EnergySource

Source§

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

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

impl Default for EnergySource

Source§

fn default() -> EnergySource

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for EnergySource

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for EnergySource

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.