-
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.
add initial PV relay and vrt models. move supported sg and wtg models…
… from all_supported_models.h
- Loading branch information
Showing
23 changed files
with
501 additions
and
104 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
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
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
56 changes: 56 additions & 0 deletions
56
code/steps/header/model/pvu_models/pv_relay_model/pv_relay_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,56 @@ | ||
#ifndef PV_RELAY_MODEL_H | ||
#define PV_RELAY_MODEL_H | ||
|
||
#include "header/model/pvu_models/pvu_model.h" | ||
class PV_RELAY_MODEL : public PVU_MODEL | ||
{ | ||
/* | ||
pv relay model: | ||
inputs: | ||
frequency: bus frequency | ||
voltage: bus voltage | ||
output: | ||
trip pv if necessary | ||
*/ | ||
public: | ||
PV_RELAY_MODEL(STEPS& toolkit); | ||
virtual ~PV_RELAY_MODEL(); | ||
|
||
virtual string get_model_type() const; | ||
// inputs | ||
double get_bus_frequency_in_pu() const; | ||
//double get_bus_positive_sequence_voltage_in_pu() const; | ||
public: // specific model level | ||
virtual string get_model_name() const = 0; | ||
|
||
virtual bool setup_model_with_steps_string_vector(vector<string>& data) = 0; | ||
virtual bool setup_model_with_psse_string(string data) = 0; | ||
virtual bool setup_model_with_bpa_string(string data) = 0; | ||
|
||
virtual void setup_block_toolkit_and_parameters() = 0; | ||
|
||
virtual void initialize() = 0; | ||
virtual void run(DYNAMIC_MODE mode) = 0; | ||
|
||
virtual void check() = 0; | ||
virtual void clear() = 0; | ||
virtual void report() = 0; | ||
virtual void save() = 0; | ||
virtual string get_standard_psse_string(bool export_internal_bus_number=false) const = 0; | ||
|
||
virtual void prepare_model_data_table() = 0; | ||
virtual double get_model_data_with_name(string par_name) const = 0; | ||
virtual void set_model_data_with_name(string par_name, double value) = 0; | ||
virtual double get_minimum_nonzero_time_constant_in_s() = 0; | ||
|
||
virtual void prepare_model_internal_variable_table() = 0; | ||
virtual double get_model_internal_variable_with_name(string var_name)= 0; | ||
|
||
virtual string get_dynamic_data_in_psse_format() const = 0; | ||
virtual string get_dynamic_data_in_bpa_format() const = 0; | ||
virtual string get_dynamic_data_in_steps_format() const = 0; | ||
private: | ||
void common_constructor(); | ||
}; | ||
|
||
#endif // PV_RELAY_MODEL_H |
Oops, something went wrong.