pub struct PowerFlowJacobian { /* private fields */ }Expand description
The assembled sparse physical Jacobian, with its bus mappings and the machinery to update values in place.
Implementations§
Source§impl PowerFlowJacobian
impl PowerFlowJacobian
Sourcepub const fn matrix(&self) -> &SparseMatrix
pub const fn matrix(&self) -> &SparseMatrix
The 2n × 2n sparse matrix. Row k is active power at bus k, row
n + k reactive power; the columns follow
coordinates.
Sourcepub fn bus_ids(&self) -> &[BusId]
pub fn bus_ids(&self) -> &[BusId]
The bus behind row and column block position k, for both blocks of
both dimensions.
Sourcepub const fn coordinates(&self) -> VoltageCoordinates
pub const fn coordinates(&self) -> VoltageCoordinates
The selected voltage coordinates.
Sourcepub fn update(
&mut self,
instance: &AcPfInstance,
point: &OperatingPoint<BalancedNetwork>,
) -> Result<(), Error>
pub fn update( &mut self, instance: &AcPfInstance, point: &OperatingPoint<BalancedNetwork>, ) -> Result<(), Error>
Refresh the numerical values at a new operating point. The sparse
structure and the admittance parts are reused; topology changes
require a rebuild through calc_power_flow_jacobian.
§Errors
An operating point that does not share the instance’s network identities or does not state both voltage quantities.
Trait Implementations§
Source§impl Clone for PowerFlowJacobian
impl Clone for PowerFlowJacobian
Source§fn clone(&self) -> PowerFlowJacobian
fn clone(&self) -> PowerFlowJacobian
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PowerFlowJacobian
impl RefUnwindSafe for PowerFlowJacobian
impl Send for PowerFlowJacobian
impl Sync for PowerFlowJacobian
impl Unpin for PowerFlowJacobian
impl UnsafeUnpin for PowerFlowJacobian
impl UnwindSafe for PowerFlowJacobian
Blanket Implementations§
impl<T> Allocation for T
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
Mutably borrows from an owned value. Read more