-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reconstruct VSG by adding parent classes for building common converte…
…r models for SOURCE.
- Loading branch information
Showing
17 changed files
with
369 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../converter_common_models/vsg_model/vsg0.h → ...verter_model/gfrmc_model/vsg_model/vsg0.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
28 changes: 28 additions & 0 deletions
28
...er/model/converter_common_models/source_converter_model/gfrmc_model/vsg_model/vsg_model.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef VSG_MODEL_H | ||
#define VSG_MODEL_H | ||
|
||
#include "header/model/converter_common_models/source_converter_model/gfrmc_model/gfrmc_model.h" | ||
#include "header/STEPS.h" | ||
|
||
class BUS; | ||
|
||
class VSG_MODEL: public GFRMC_MODEL | ||
{ | ||
public: | ||
VSG_MODEL(STEPS& toolkit); | ||
~VSG_MODEL(); | ||
|
||
public: | ||
virtual string get_model_name() const = 0; | ||
|
||
virtual void initialize() = 0; | ||
virtual void run(DYNAMIC_MODE mode) = 0; | ||
|
||
virtual double get_virtual_frequency_deviation_in_Hz() const = 0; | ||
virtual double get_virtual_angle_in_rad() const = 0; | ||
virtual double get_virtual_voltage_in_pu() const = 0; | ||
virtual string get_standard_psse_string() const = 0; | ||
private: | ||
}; | ||
|
||
#endif // VSG_MODEL_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...teps/header/model/converter_common_models/source_converter_model/source_converter_model.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#ifndef SOURCE_CONVERTER_MODEL_H | ||
#define SOURCE_CONVERTER_MODEL_H | ||
|
||
#include "header/STEPS.h" | ||
|
||
class BUS; | ||
|
||
class SOURCE_CONVERTER_MODEL | ||
{ | ||
public: | ||
SOURCE_CONVERTER_MODEL(STEPS& toolkit); | ||
~SOURCE_CONVERTER_MODEL(); | ||
void set_toolkit(STEPS& toolkit); | ||
STEPS& get_toolkit() const; | ||
|
||
void set_bus_pointer(BUS* busptr); | ||
BUS* get_bus_pointer() const; | ||
void set_device_pointer(NONBUS_DEVICE* device); | ||
NONBUS_DEVICE* get_device_pointer() const; | ||
DEVICE_ID get_device_id() const; | ||
string get_compound_device_name() const; | ||
public: | ||
virtual string get_model_name() const = 0; | ||
|
||
virtual void initialize() = 0; | ||
virtual void run(DYNAMIC_MODE mode) = 0; | ||
|
||
virtual double get_virtual_frequency_deviation_in_Hz() const = 0; | ||
virtual double get_virtual_angle_in_rad() const = 0; | ||
virtual double get_virtual_voltage_in_pu() const = 0; | ||
virtual string get_standard_psse_string() const = 0; | ||
private: | ||
STEPS* toolkit; | ||
BUS* busptr; | ||
NONBUS_DEVICE* device; | ||
}; | ||
|
||
#endif // SOURCE_CONVERTER_MODEL_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.