CtmTemporalBoundary

Struct CtmTemporalBoundary 

Source
pub struct CtmTemporalBoundary {
    pub bus: Vec<CtmTemporalBoundaryBusItem>,
    pub gen: Vec<CtmTemporalBoundaryGenItem>,
    pub global_params: CtmTemporalBoundaryGlobalParams,
    pub hvdc_p2p: Vec<CtmTemporalBoundaryHvdcP2pItem>,
    pub shunt: Vec<CtmTemporalBoundaryShuntItem>,
    pub storage: Vec<CtmTemporalBoundaryStorageItem>,
    pub switch: Vec<CtmTemporalBoundarySwitchItem>,
    pub transformer: Vec<CtmTemporalBoundaryTransformerItem>,
}
Expand description

structure to hold data on initial conditions of power system (state prior to start of time series data)

JSON schema
{
 "description": "structure to hold data on initial conditions of power system (state prior to start of time series data)",
 "type": "object",
 "required": [
   "global_params"
 ],
 "properties": {
   "bus": {
     "type": "array",
     "items": {
       "description": "structure to hold initial state of bus variables",
       "type": "object",
       "required": [
         "uid",
         "va"
       ],
       "properties": {
         "ext": {
           "description": "additional bus initial condition parameters currently not supported by CTM"
         },
         "uid": {
           "description": "uid of bus this record refers to",
           "$ref": "#/$defs/uid"
         },
         "va": {
           "description": "[deg] initial voltage angle",
           "type": "number"
         },
         "vm": {
           "description": "[kV or pu] initial voltage magnitude",
           "$ref": "#/$defs/positive_number"
         }
       }
     }
   },
   "gen": {
     "type": "array",
     "items": {
       "description": "structure to hold initial state of generator variables",
       "type": "object",
       "required": [
         "pg",
         "uid"
       ],
       "properties": {
         "down_time": {
           "description": "[h] if in service, zero, else time the unit has been out of service",
           "$ref": "#/$defs/nonnegative_number"
         },
         "ext": {
           "description": "additional generator initial condition parameters currently not supported by CTM"
         },
         "in_service_time": {
           "description": "[h] if in service, time the unit has been in service, zero otherwise",
           "$ref": "#/$defs/nonnegative_number"
         },
         "pg": {
           "description": "[MW or pu] initial active power injection",
           "type": "number"
         },
         "qg": {
           "description": "[MW or pu] initial reactive power injection",
           "type": "number"
         },
         "uid": {
           "description": "uid of generator this record refers to",
           "$ref": "#/$defs/uid"
         }
       }
     }
   },
   "global_params": {
     "description": "structure to hold global parameters of temporal boundary",
     "type": "object",
     "required": [
       "time_elapsed"
     ],
     "properties": {
       "time_elapsed": {
         "description": "[seconds] time elapsed since temporal_boundary conditions where present in the system",
         "$ref": "#/$defs/nonnegative_number"
       }
     }
   },
   "hvdc_p2p": {
     "type": "array",
     "items": {
       "description": "structure to hold initial state of hvdc point-to-point line variables",
       "type": "object",
       "required": [
         "pdc_fr",
         "pdc_to",
         "uid"
       ],
       "properties": {
         "ext": {
           "description": "additional hvdc point-to-point line initial condition parameters currently not supported by CTM"
         },
         "pdc_fr": {
           "description": "[MW or pu] initial active power entering hvdc line at from bus",
           "type": "number"
         },
         "pdc_to": {
           "description": "[MW or pu] initial active power entering hvdc line at to bus",
           "type": "number"
         },
         "qdc_fr": {
           "description": "[MVAr or pu] initial reactive power entering hvdc line at from bus",
           "type": "number"
         },
         "qdc_to": {
           "description": "[MVAr or pu] initial reactive power entering hvdc line at to bus",
           "type": "number"
         },
         "uid": {
           "description": "uid of hvdc point-to-point this record refers to",
           "$ref": "#/$defs/uid"
         },
         "vm_dc_fr": {
           "description": "[kV or pu] initial dc side voltage at from converter",
           "$ref": "#/$defs/positive_number"
         },
         "vm_dc_to": {
           "description": "[kV or pu] initial dc side voltage at to converter",
           "$ref": "#/$defs/positive_number"
         }
       }
     }
   },
   "shunt": {
     "type": "array",
     "items": {
       "description": "structure to hold initial state of shunt variables",
       "type": "object",
       "required": [
         "num_steps",
         "uid"
       ],
       "properties": {
         "ext": {
           "description": "additional shunt initial condition parameters currently not supported by CTM"
         },
         "num_steps": {
           "description": "[-] number of initial energized steps per section",
           "anyOf": [
             {
               "$ref": "#/$defs/nonnegative_integer"
             },
             {
               "type": "array",
               "items": {
                 "$ref": "#/$defs/nonnegative_integer"
               }
             }
           ]
         },
         "uid": {
           "description": "uid of shunt this record refers to",
           "$ref": "#/$defs/uid"
         }
       }
     }
   },
   "storage": {
     "type": "array",
     "items": {
       "description": "structure to hold initial state of storage variables",
       "type": "object",
       "required": [
         "energy",
         "uid"
       ],
       "properties": {
         "energy": {
           "description": "[MWh or pu*h] initial state of charge",
           "$ref": "#/$defs/nonnegative_number"
         },
         "ext": {
           "description": "additional storage initial condition parameters currently not supported by CTM"
         },
         "ps": {
           "description": "[MW or pu] initial active power injection",
           "type": "number"
         },
         "qs": {
           "description": "[MW or pu] initial reactive power injection",
           "type": "number"
         },
         "uid": {
           "description": "uid of storage this record refers to",
           "$ref": "#/$defs/uid"
         }
       }
     }
   },
   "switch": {
     "type": "array",
     "items": {
       "description": "structure to hold initial state of switch variables",
       "type": "object",
       "required": [
         "state",
         "uid"
       ],
       "properties": {
         "ext": {
           "description": "additional switch initial condition parameters currently not supported by CTM"
         },
         "state": {
           "description": "[-] binary indicator of switch initial status; 0 => open, 1 => closed",
           "$ref": "#/$defs/binary"
         },
         "uid": {
           "description": "uid of switch this record refers to",
           "$ref": "#/$defs/uid"
         }
       }
     }
   },
   "transformer": {
     "type": "array",
     "items": {
       "description": "structure to hold initial state of transformer variables",
       "type": "object",
       "required": [
         "ta",
         "tm",
         "uid"
       ],
       "properties": {
         "ext": {
           "description": "additional transformer initial condition parameters currently not supported by CTM"
         },
         "ta": {
           "description": "[deg] initial angle phase shift",
           "type": "number"
         },
         "tm": {
           "description": "[-] initial tap ratio",
           "$ref": "#/$defs/positive_number"
         },
         "uid": {
           "$ref": "#/$defs/uid"
         }
       }
     }
   }
 }
}

Fields§

§bus: Vec<CtmTemporalBoundaryBusItem>§gen: Vec<CtmTemporalBoundaryGenItem>§global_params: CtmTemporalBoundaryGlobalParams§hvdc_p2p: Vec<CtmTemporalBoundaryHvdcP2pItem>§shunt: Vec<CtmTemporalBoundaryShuntItem>§storage: Vec<CtmTemporalBoundaryStorageItem>§switch: Vec<CtmTemporalBoundarySwitchItem>§transformer: Vec<CtmTemporalBoundaryTransformerItem>

Implementations§

Trait Implementations§

Source§

impl Clone for CtmTemporalBoundary

Source§

fn clone(&self) -> CtmTemporalBoundary

Returns a duplicate of the value. Read more
1.0.0§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for CtmTemporalBoundary

Source§

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

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

impl<'de> Deserialize<'de> for CtmTemporalBoundary

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<&CtmTemporalBoundary> for CtmTemporalBoundary

Source§

fn from(value: &CtmTemporalBoundary) -> Self

Converts to this type from the input type.
Source§

impl From<CtmTemporalBoundary> for CtmTemporalBoundary

Source§

fn from(value: CtmTemporalBoundary) -> Self

Converts to this type from the input type.
Source§

impl Serialize for CtmTemporalBoundary

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<CtmTemporalBoundary> for CtmTemporalBoundary

Source§

type Error = ConversionError

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

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

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

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
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

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

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

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

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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>,