Struct CtmNetworkStorageItem

Source
pub struct CtmNetworkStorageItem {
Show 19 fields pub bus: Uid, pub charge_efficiency: CtmNetworkStorageItemChargeEfficiency, pub charge_ub: Option<CtmNetworkStorageItemChargeUb>, pub cm_ub: Option<NonnegativeNumber>, pub discharge_efficiency: CtmNetworkStorageItemDischargeEfficiency, pub discharge_ub: Option<CtmNetworkStorageItemDischargeUb>, pub energy_ub: Option<NonnegativeNumber>, pub ext: Option<Value>, pub name: Option<String>, pub nominal_mva: Option<PositiveNumber>, pub ps_delta_lb: Option<NonnegativeNumber>, pub ps_delta_ub: Option<NonnegativeNumber>, pub ps_ex: f64, pub qs_ex: f64, pub qs_lb: Option<CtmNetworkStorageItemQsLb>, pub qs_ub: Option<CtmNetworkStorageItemQsUb>, pub sm_ub: Option<NonnegativeNumber>, pub status: Status, pub uid: Uid,
}
Expand description

structure to hold storage (battery) data

JSON schema
{
 "description": "structure to hold storage (battery) data",
 "type": "object",
 "required": [
   "bus",
   "charge_efficiency",
   "discharge_efficiency",
   "ps_ex",
   "qs_ex",
   "status",
   "uid"
 ],
 "properties": {
   "bus": {
     "description": "uid of bus to which generator is connected to",
     "$ref": "#/$defs/uid"
   },
   "charge_efficiency": {
     "description": "[-] charge efficiency, in (0, 1]",
     "anyOf": [
       {
         "type": "number",
         "maximum": 1.0,
         "exclusiveMinimum": 0.0
       },
       {
         "$ref": "#/$defs/time_series_reference"
       }
     ]
   },
   "charge_ub": {
     "description": "[MW or pu] maximum rate of charge",
     "anyOf": [
       {
         "$ref": "#/$defs/nonnegative_number"
       },
       {
         "$ref": "#/$defs/time_series_reference"
       }
     ]
   },
   "cm_ub": {
     "description": "[kA or pu] converter current output rating",
     "$ref": "#/$defs/nonnegative_number"
   },
   "discharge_efficiency": {
     "description": "[-] discharge efficiency, in (0, 1]",
     "anyOf": [
       {
         "type": "number",
         "maximum": 1.0,
         "exclusiveMinimum": 0.0
       },
       {
         "$ref": "#/$defs/time_series_reference"
       }
     ]
   },
   "discharge_ub": {
     "description": "[MW or pu] maximum rate of discharge",
     "anyOf": [
       {
         "$ref": "#/$defs/nonnegative_number"
       },
       {
         "$ref": "#/$defs/time_series_reference"
       }
     ]
   },
   "energy_ub": {
     "description": "[MWh or pu*h] maximum state of charge",
     "$ref": "#/$defs/nonnegative_number"
   },
   "ext": {
     "description": "additional storage parameters currently not supported by CTM"
   },
   "name": {
     "description": "storage name",
     "type": "string"
   },
   "nominal_mva": {
     "description": "[MVA] nominal apparent power of storage (nameplate capacity)",
     "$ref": "#/$defs/positive_number"
   },
   "ps_delta_lb": {
     "description": "[MW/h or pu/h] maximum active power decrease per hour",
     "$ref": "#/$defs/nonnegative_number"
   },
   "ps_delta_ub": {
     "description": "[MW/h or pu/h] maximum active power increase per hour",
     "$ref": "#/$defs/nonnegative_number"
   },
   "ps_ex": {
     "description": "converter standby active power exogenous draw",
     "type": "number"
   },
   "qs_ex": {
     "description": "converter standby reactive power exogenous draw",
     "type": "number"
   },
   "qs_lb": {
     "description": "[MVAr or pu] minumum reactive power injection",
     "anyOf": [
       {
         "type": "number"
       },
       {
         "$ref": "#/$defs/time_series_reference"
       }
     ]
   },
   "qs_ub": {
     "description": "[MVAr or pu] maximum reactive power injection",
     "anyOf": [
       {
         "type": "number"
       },
       {
         "$ref": "#/$defs/time_series_reference"
       }
     ]
   },
   "sm_ub": {
     "description": "[MVA or pu] converter apparent power rating",
     "$ref": "#/$defs/nonnegative_number"
   },
   "status": {
     "$ref": "#/$defs/status"
   },
   "uid": {
     "$ref": "#/$defs/uid"
   }
 }
}

Fields§

§bus: Uid

uid of bus to which generator is connected to

§charge_efficiency: CtmNetworkStorageItemChargeEfficiency

[-] charge efficiency, in (0, 1]

§charge_ub: Option<CtmNetworkStorageItemChargeUb>

[MW or pu] maximum rate of charge

§cm_ub: Option<NonnegativeNumber>

[kA or pu] converter current output rating

§discharge_efficiency: CtmNetworkStorageItemDischargeEfficiency

[-] discharge efficiency, in (0, 1]

§discharge_ub: Option<CtmNetworkStorageItemDischargeUb>

[MW or pu] maximum rate of discharge

§energy_ub: Option<NonnegativeNumber>

[MWh or pu*h] maximum state of charge

§ext: Option<Value>

additional storage parameters currently not supported by CTM

§name: Option<String>

storage name

§nominal_mva: Option<PositiveNumber>

[MVA] nominal apparent power of storage (nameplate capacity)

§ps_delta_lb: Option<NonnegativeNumber>

[MW/h or pu/h] maximum active power decrease per hour

§ps_delta_ub: Option<NonnegativeNumber>

[MW/h or pu/h] maximum active power increase per hour

§ps_ex: f64§qs_ex: f64§qs_lb: Option<CtmNetworkStorageItemQsLb>

[MVAr or pu] minumum reactive power injection

§qs_ub: Option<CtmNetworkStorageItemQsUb>

[MVAr or pu] maximum reactive power injection

§sm_ub: Option<NonnegativeNumber>

[MVA or pu] converter apparent power rating

§status: Status§uid: Uid

Implementations§

Trait Implementations§

Source§

impl Clone for CtmNetworkStorageItem

Source§

fn clone(&self) -> CtmNetworkStorageItem

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for CtmNetworkStorageItem

Source§

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

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

impl<'de> Deserialize<'de> for CtmNetworkStorageItem

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 From<&CtmNetworkStorageItem> for CtmNetworkStorageItem

Source§

fn from(value: &CtmNetworkStorageItem) -> Self

Converts to this type from the input type.
Source§

impl From<CtmNetworkStorageItem> for CtmNetworkStorageItem

Source§

fn from(value: CtmNetworkStorageItem) -> Self

Converts to this type from the input type.
Source§

impl Serialize for CtmNetworkStorageItem

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
Source§

impl TryFrom<CtmNetworkStorageItem> for CtmNetworkStorageItem

Source§

type Error = ConversionError

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

fn try_from(value: CtmNetworkStorageItem) -> Result<Self, ConversionError>

Performs the conversion.

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> 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 = 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.
Source§

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