Governor (GovernorTgov1) Source and Unit Test#151
Conversation
abirchfield
left a comment
There was a problem hiding this comment.
Two small comments, otherwise I think it is ready for merging. There is still more to do before this is usable in a complete simulation, but that is what the next PR will be for.
|
Relevant changes made. Awaiting further review from @abirchfield and @pelesh. |
|
The code does not build correctly: The linking error is because I see two possible paths forward:
|
|
I will make a simple SignalBus class inheriting from BusBase as a starting point for the SignalBus framework. |
Co-authored-by: pelesh <peless@ornl.gov>
* Fix build bug and a compiler warnings. * Apply pre-commmit fixes * Apply pre-commmit fixes --------- Co-authored-by: pelesh <pelesh@users.noreply.github.com> Co-authored-by: lukelowry <lukelowry@users.noreply.github.com>
|
Build bug branch merged, and suggestions applied. No build errors on my end. Awaiting further review from @pelesh and @abirchfield . Once this is merged I will implement a SignalBus before other connected models (i.e., exciter) are implemented. |
pelesh
left a comment
There was a problem hiding this comment.
All outstanding items have been addressed.
* governor model additions and cmake * add: accessor functions for genrou speed and torque * add: unit test files and cmake * edit: Governor Namespace and floating point arithmetic fix --------- Co-authored-by: pelesh <pelesh@users.noreply.github.com> Co-authored-by: lukelowry <lukelowry@users.noreply.github.com>
Description
This PR contains the following changes to implement the TGOV1 governor. The scope of this PR is limited to the unit-tests, cmake edits, TGOV1 data structure, and class implementation of TGOV1. Non-abstracted accessor functions are added to Genrou for proof of concept.
Proposed changes
For unit test:
Checklist
-Wall -Wpedantic -Wconversion -Wextra.Further comments
Implementation style should be reviewed as this is the first code PR to GridKit.
Initial implementation had more abstraction, but it has since been removed as the scope became too large.
There are additional changes required to the Genrou class for a functional example to be obtained. Since that implementation is dependent on the changes in this PR, this should be performed once this PR is resolved.