Skip to content

Conversation

@pelesh
Copy link
Collaborator

@pelesh pelesh commented Apr 9, 2024

Fixes #2.

@pelesh pelesh added the bug Something isn't working label Apr 9, 2024
@pelesh pelesh requested a review from reid-g April 9, 2024 21:26
@pelesh pelesh self-assigned this Apr 9, 2024
Copy link
Collaborator

@reid-g reid-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the BusPV error so everything is good.

However, this removes pass individual parameter as input for construction. Thus limiting construction to only BusData. Other Buses still allow this construction do we want to remove that? This would be another pull request then.

@pelesh
Copy link
Collaborator Author

pelesh commented Apr 10, 2024

This fixes the BusPV error so everything is good.

However, this removes pass individual parameter as input for construction. Thus limiting construction to only BusData. Other Buses still allow this construction do we want to remove that? This would be another pull request then.

You are right. I restored the constructor with individual parameters.

@reid-g reid-g self-requested a review April 10, 2024 15:42
Copy link
Collaborator

@reid-g reid-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now and is consistent.

@pelesh pelesh merged commit 8f55e94 into develop Apr 10, 2024
pelesh added a commit that referenced this pull request May 3, 2024
Prototype Example of Creating a RL Circuit

+Add hypergraph representation
+Added Model form with appropiate indexing
+Added Resistors, Capacitor, Inductor, and VoltageSource Component Models

+Added InductionMotor, Linear Transformer, and SynchronousMachine
+Changes to PowerElectronicsModel

* Added COO Sparse Matrices, Component Jacobians, and Discrete Generator

+ Basic COO Sparse Matrix Implmentation
+ Discrete Generator Component
+ Resistor Jacobian
+ Capacitor Jacobian
+ Voltage Source Jacobian
+ Inductor Jacobian
+ Testing for Sparse Jacobian and Discrete Generator

* Added Jacobian Assembly. Fixed and Added New Functionality to COO Matrices

+Matrix Assembly
+Refactored COO Matrix
+COO can return CSR Data format

* Jacobian Assembly, IDA + KLU Cmake, RL Circuit

+ Cmake configurations for Sundials and SuiteSparse
+ Jacobian Assembly for components
+ Working RL Circuit example utilizing assembly techniques

* Added the Transmission Line Component

* Added Microgrid Example

 - Added MicrogridBusDQ
 - Added MicrogridLine
 - Added MicrogridLoad
 - Updated DiscreteGenerator
 - Added Output Testing for DG
 - Added Microgrid Assmebly Example
 - Updated Capacitor, Inductor, and Voltage residuals
 - Updated RLCircuit Example

* Working Microgrid (Finite Difference)

 - "grounded" the rotor difference in reference
 - Comparing against reference from MATLAB

* Fixed the Jacobian in Microgrid Example

* Added a max step size control for model objects

* Update Solver/Dynamic/CMakeLists.txt

Co-authored-by: pelesh <peless@ornl.gov>

* Updated name DiscreteGenerator -> DistributedGenerator

 - Updated name of generator
 - Some formatting updates

* Fixed Some Bugs

 - Fixed SpMatTest
 - Updates on rebase

* Fixed Memory Error with Grid3BusSys

 - Intalized Pg data

* Fixed Unitalized Variable Stepsize

* Remove parts of generator model from BusPV (#7)

* Formatting updates + Fixed Warnings

 - Update format
 - Fixed casting warnings

* Minor comments and style corrections.

Co-authored-by: Reid <reid-g@users.noreply.github.com>

* Multiple Format & Comment Updates + Valgrind Error Fixes

 - Updated Comments to respect current models
 - Fixed valgrind errors in ida.cpp. Note: there is still more but seg faults are happening from frees

* Formatting Updates with "this" and using + Minor Fixes

 - Removed this-> with usings for formatting
 - Added using for Jac to components which did not have

* Added Better Description to the MicrogridBus

---------

Co-authored-by: Slaven Peles <peless@ornl.gov>
Co-authored-by: Reid <reid-g@users.noreply.github.com>
@pelesh pelesh deleted the pvbus-fix branch March 14, 2025 03:33
pelesh added a commit that referenced this pull request Apr 14, 2025
* Remove parts of generator model from BusPV.
pelesh added a commit that referenced this pull request Apr 14, 2025
Prototype Example of Creating a RL Circuit

+Add hypergraph representation
+Added Model form with appropiate indexing
+Added Resistors, Capacitor, Inductor, and VoltageSource Component Models

+Added InductionMotor, Linear Transformer, and SynchronousMachine
+Changes to PowerElectronicsModel

* Added COO Sparse Matrices, Component Jacobians, and Discrete Generator

+ Basic COO Sparse Matrix Implmentation
+ Discrete Generator Component
+ Resistor Jacobian
+ Capacitor Jacobian
+ Voltage Source Jacobian
+ Inductor Jacobian
+ Testing for Sparse Jacobian and Discrete Generator

* Added Jacobian Assembly. Fixed and Added New Functionality to COO Matrices

+Matrix Assembly
+Refactored COO Matrix
+COO can return CSR Data format

* Jacobian Assembly, IDA + KLU Cmake, RL Circuit

+ Cmake configurations for Sundials and SuiteSparse
+ Jacobian Assembly for components
+ Working RL Circuit example utilizing assembly techniques

* Added the Transmission Line Component

* Added Microgrid Example

 - Added MicrogridBusDQ
 - Added MicrogridLine
 - Added MicrogridLoad
 - Updated DiscreteGenerator
 - Added Output Testing for DG
 - Added Microgrid Assmebly Example
 - Updated Capacitor, Inductor, and Voltage residuals
 - Updated RLCircuit Example

* Working Microgrid (Finite Difference)

 - "grounded" the rotor difference in reference
 - Comparing against reference from MATLAB

* Fixed the Jacobian in Microgrid Example

* Added a max step size control for model objects

* Update Solver/Dynamic/CMakeLists.txt

Co-authored-by: pelesh <peless@ornl.gov>

* Updated name DiscreteGenerator -> DistributedGenerator

 - Updated name of generator
 - Some formatting updates

* Fixed Some Bugs

 - Fixed SpMatTest
 - Updates on rebase

* Fixed Memory Error with Grid3BusSys

 - Intalized Pg data

* Fixed Unitalized Variable Stepsize

* Remove parts of generator model from BusPV (#7)

* Formatting updates + Fixed Warnings

 - Update format
 - Fixed casting warnings

* Minor comments and style corrections.

Co-authored-by: Reid <reid-g@users.noreply.github.com>

* Multiple Format & Comment Updates + Valgrind Error Fixes

 - Updated Comments to respect current models
 - Fixed valgrind errors in ida.cpp. Note: there is still more but seg faults are happening from frees

* Formatting Updates with "this" and using + Minor Fixes

 - Removed this-> with usings for formatting
 - Added using for Jac to components which did not have

* Added Better Description to the MicrogridBus

---------

Co-authored-by: Slaven Peles <peless@ornl.gov>
Co-authored-by: Reid <reid-g@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bus Parameters of Generator

3 participants