|
Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
|
Runnable demonstration programs under src/examples/.
More...
Files | |
| file | Examples.h |
| Declarations for runnable demonstration programs. | |
Functions | |
| void | example_OPF_single_area (bool plotting_enabled=true) |
| Single-area hybrid AC–DC optimal power flow case. | |
| void | example_OPF_csv (bool plotting_enabled=true) |
| OPF case driven by CSV network data. | |
| void | example_OPF_ac (bool plotting_enabled=true) |
| AC-only OPF from bundled CSV case data. | |
| void | example_OPF_double_area (bool plotting_enabled=true) |
| Double-area hybrid OPF demonstration. | |
| void | example_OPF_csv_1 (bool plotting_enabled=true) |
| Variant OPF case from CSV data. | |
| void | example_OPF_PV (bool plotting_enabled=true) |
| OPF study including a PV plant. | |
| void | example_OPF_WT (bool plotting_enabled=true) |
| OPF study including a wind-turbine plant. | |
| void | example_DQsym_math_operations (bool plotting_enabled=true) |
| Validate core dynamic-phasor (DQsym) math operations. | |
| void | example_DQsym_DSSS2 (bool plotting_enabled=true) |
| DQsym switching / DSSS demonstration. | |
| void | example_DQsym_RLC (bool plotting_enabled=true) |
| Simple RLC circuit in the DQsym framework. | |
| void | example_DQsym_Simple_MMC (bool plotting_enabled=true) |
| Simplified MMC model in the DQsym solver. | |
| void | example_DQsym_validation () |
| DQsym validation routines (header declaration only). | |
| void | example_state_space () |
| Build state-space (A, B, C, D) matrices for an RLC network. | |
| void | example_generator (bool plotting_enabled=true) |
| Generator element demonstration. | |
| void | example_MMC (bool plotting_enabled=true) |
| MMC equilibrium, ABCD, Y-matrix, and eigenvalue study. | |
| void | example_WT_type_3 (bool plotting_enabled=true) |
| Type-3 wind-turbine model demonstration. | |
| void | example_WT_type_4 (bool plotting_enabled=true) |
| Type-4 wind-turbine model demonstration. | |
| void | example_PV_plant (bool plotting_enabled=true) |
| Photovoltaic plant model demonstration. | |
| void | example_OHL (bool plotting_enabled=true) |
| Overhead transmission line geometry and Y-parameter sweep. | |
| void | example_cable (bool plotting_enabled=true) |
| Underground cable layers and Y-parameter sweep. | |
| void | example_transformer () |
| Transformer topologies and Y-parameters. | |
| void | example_constructors () |
| Instantiate basic element types via constructors. | |
| void | example_visuals (bool plotting_enabled=true) |
| Plotting and visualization utilities. | |
| void | example_stability_check (bool plotting_enabled=true) |
| Full AC–DC hybrid stability study. | |
| void | example_admittance_parameters () |
| Equivalent admittance parameter utilities. | |
| void | example_point2point_case () |
| Point-to-point HVDC-style OPF case. | |
Runnable demonstration programs under src/examples/.
|
extern |
Equivalent admittance parameter utilities.
Equivalent admittance parameter utilities.
This function creates a simple circuit with a PI section element, computes its Y-parameters over a frequency range, and plots the results.
References Element::compute_y_parameters(), and Element::setTransformation().
|
extern |
Underground cable layers and Y-parameter sweep.
| plotting_enabled | Enable result plots. |
References Element::plotYParameters(), Cable::printElementValues(), and Element::writeFile().
|
extern |
Instantiate basic element types via constructors.
References Element::writeFile().
|
extern |
DQsym switching / DSSS demonstration.
| plotting_enabled | Enable result plots. |
References dqn2abc_groups_at_time(), DQsym::DSSS(), plot_abc_groups_implot(), and write_file().
|
extern |
Validate core dynamic-phasor (DQsym) math operations.
| plotting_enabled | Enable result plots. |
References dq_add(), dq_integrate(), dq_multiply(), dq_subtract(), DQsym::DSSS(), plot_abc_waveforms_implot(), simulate_dqn2abc(), ABCResult::t, and ABCResult::Xabc.
|
extern |
Simple RLC circuit in the DQsym framework.
| plotting_enabled | Enable result plots. |
References dqn2abc_groups_at_time(), DQsym::DSSS(), plot_abc_groups_implot(), and write_file().
|
extern |
Simplified MMC model in the DQsym solver.
| plotting_enabled | Enable result plots. |
reactive power
References Network::addBus(), Network::addElement(), Config::breakerFunction, Network::connectElementToBus(), DQsymResult::DSSabcHist, Config::dt, DQsym::exportCSV(), Config::f, DQsym::initialize(), Config::nKeep, Config::omega, omega, Config::outputBuses, DQsym::plot(), DQsym::run(), Config::swOffRes, Config::swOnRes, Config::swType, Config::t_end, Config::t_start, and DQsymResult::time.
|
extern |
DQsym validation routines (header declaration only).
|
extern |
Generator element demonstration.
| plotting_enabled | Enable result plots. |
References Element::plotYParameters().
|
extern |
MMC equilibrium, ABCD, Y-matrix, and eigenvalue study.
| plotting_enabled | Enable result plots. |
References MMC::compute_y_parameters(), MMC::computeABCD(), MMC::computeABCD_analytical(), Converter::getA(), Converter::getB(), Converter::getC(), Converter::getEquilibriumState(), omega, Converter::plotEigenvalues(), Converter::plotParticipationFactors(), Element::plotYParameters(), Converter::printEigenvalues(), MMC::solveEquilibrium(), vectorToMatrix(), and Element::writeFile().
|
extern |
Overhead transmission line geometry and Y-parameter sweep.
| plotting_enabled | Enable result plots. |
Overhead transmission line geometry and Y-parameter sweep.
This function demonstrates how to create an overhead line with specific geometric and material properties, compute its electrical parameters, and analyze its behavior over a frequency range.
References Element::plotYParameters(), and Element::writeFile().
|
extern |
AC-only OPF from bundled CSV case data.
| plotting_enabled | Enable result plots. |
References PowerFlow::solve_opf().
|
extern |
OPF case driven by CSV network data.
| plotting_enabled | Enable result plots. |
References PowerFlow::solve_opf().
|
extern |
Variant OPF case from CSV data.
| plotting_enabled | Enable result plots. |
References PowerFlow::solve_opf().
|
extern |
Double-area hybrid OPF demonstration.
| plotting_enabled | Enable result plots. |
*--— 3 OPF Implementatiopn --— */
References Network::connectElementToBus(), PowerFlow::make_OPF(), omega, and Element::setOPFInfo().
|
extern |
OPF study including a PV plant.
| plotting_enabled | Enable result plots. |
References Network::connectElementToBus(), PowerFlow::make_OPF(), and omega.
|
extern |
Single-area hybrid AC–DC optimal power flow case.
| plotting_enabled | Enable result plots. |
*--— 3 OPF Implementatiopn --— */
References Network::connectElementToBus(), PowerFlow::make_OPF(), omega, and Element::setOPFInfo().
|
extern |
OPF study including a wind-turbine plant.
| plotting_enabled | Enable result plots. |
References Network::connectElementToBus(), PowerFlow::make_OPF(), and omega.
|
extern |
Point-to-point HVDC-style OPF case.
*--— 3 OPF Implementatiopn --— */
References Network::connectElementToBus(), PowerFlow::make_OPF(), omega, and Element::setOPFInfo().
|
extern |
Photovoltaic plant model demonstration.
| plotting_enabled | Enable result plots. |
References Element::plotYParameters().
|
extern |
Full AC–DC hybrid stability study.
| plotting_enabled | Enable result plots. |
*--— 3 OPF Implementatiopn --— */
References StabilityEstimate::add_areas(), StabilityEstimate::bodeplotTF(), StabilityEstimate::compute_transfer_function(), MMC::compute_y_parameters(), Network::connectElementToBus(), PowerFlow::make_OPF(), StabilityEstimate::nyquistplotTF(), omega, Element::plotYParameters(), Element::setOPFInfo(), and vectorToMatrix().
|
extern |
Build state-space (A, B, C, D) matrices for an RLC network.
References Network::addBus(), Network::addElement(), Network::connectElementToBus(), StateSpaceModel::formState(), StateSpaceModel::getA(), StateSpaceModel::getB(), Bus::getBusName(), StateSpaceModel::getC(), and StateSpaceModel::getD().
|
extern |
Transformer topologies and Y-parameters.
References Element::writeFile().
|
extern |
Plotting and visualization utilities.
| plotting_enabled | Enable result plots. |
References Element::plotYParameters(), and Element::writeFile().
|
extern |
Type-3 wind-turbine model demonstration.
| plotting_enabled | Enable result plots. |
References Element::plotYParameters(), and Element::writeFile().
|
extern |
Type-4 wind-turbine model demonstration.
| plotting_enabled | Enable result plots. |
References Element::plotYParameters().