pydae 0.55.0__py3-none-any.whl → 0.55.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pydae/__init__.py CHANGED
@@ -7,5 +7,5 @@ Differential Algebraic Equations in Python
7
7
 
8
8
  """
9
9
 
10
- __version__ = "0.55.0"
10
+ __version__ = "0.55.1"
11
11
 
@@ -3,14 +3,14 @@
3
3
  "buses":[{"name":"1", "P_W":0.0,"Q_var":0.0,"U_kV":20.0}],
4
4
  "vscs":[{"type":"bess_pq_ss","bus":"1","E_kWh":5016.98,"S_n":2.5e6,"K_delta":0.01,
5
5
  "soc_ref":0.5,
6
- "A":[[-10.0, 0.0],
7
- [ 0.0, -10.0]],
8
- "B":[[ 10.0, 0.0],
9
- [ 0.0, 10.0]],
10
- "C":[[1.0, 0.0],
11
- [0.0, 1.0]],
12
- "D":[[0.0, 0.0],
13
- [0.0, 0.0]],
6
+ "A_pq":[[-10.0, 0.0],
7
+ [ 0.0, -10.0]],
8
+ "B_pq":[[ 10.0, 0.0],
9
+ [ 0.0, 10.0]],
10
+ "C_pq":[[1.0, 0.0],
11
+ [0.0, 1.0]],
12
+ "D_pq":[[0.0, 0.0],
13
+ [0.0, 0.0]],
14
14
  "socs" :[ 0.000, 0.050, 0.100, 0.150, 0.200, 0.300, 0.400, 0.500, 0.600, 0.700, 0.800, 0.850, 0.900, 0.950, 1.000],
15
15
  "es" : [ 0.78, 0.954, 0.960, 0.968, 0.975, 0.986, 0.986, 0.987, 0.997, 0.998, 0.998, 0.998, 0.998, 0.999, 1.011],
16
16
  "e_soc_order":1}
@@ -79,10 +79,10 @@ def bess_pq_ss(grid,name,bus_name,data_dict):
79
79
  [0.0, 0.0]])
80
80
 
81
81
  if 'A' in data_dict:
82
- A = np.array(data_dict['A'])
83
- B = np.array(data_dict['B'])
84
- C = np.array(data_dict['C'])
85
- D = np.array(data_dict['D'])
82
+ A = np.array(data_dict['A_pq'])
83
+ B = np.array(data_dict['B_pq'])
84
+ C = np.array(data_dict['C_pq'])
85
+ D = np.array(data_dict['D_pq'])
86
86
 
87
87
  sys = ss_num2sym(f'{name}',A,B,C,D)
88
88
  print(sys)
pydae/bmapu/vscs/temp.py CHANGED
@@ -80,6 +80,8 @@ exp = np.exp
80
80
  class model:
81
81
 
82
82
  def __init__(self,matrices_folder='./build'):
83
+
84
+ array = np.array
83
85
 
84
86
  self.matrices_folder = matrices_folder
85
87
 
@@ -97,7 +99,7 @@ class model:
97
99
  self.N_z = 12
98
100
  self.N_store = 100000
99
101
  self.params_list = ['S_base', 'U_1_n', 'K_p_1', 'K_i_1', 'soc_min_1', 'soc_max_1', 'S_n_1', 'E_kWh_1', 'A_loss_1', 'B_loss_1', 'C_loss_1', 'R_bat_1', 'A_00_1', 'A_01_1', 'A_10_1', 'A_11_1', 'B_00_1', 'B_01_1', 'B_10_1', 'B_11_1', 'C_00_1', 'C_01_1', 'C_10_1', 'C_11_1', 'D_00_1', 'D_01_1', 'D_10_1', 'D_11_1', 'K_p_agc', 'K_i_agc', 'K_xif']
100
- self.params_values_list = [100000000, 20000, 1e-06, 1e-06, 0.0, 1.0, 2500000, 5016.98, 0.0001, 0.0, 0.0001, 0.0, -10, 0, 0, -10, 10, 0, 0, 10, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1e-06]
102
+ self.params_values_list = [100000000, 20000, 1e-06, 1e-06, 0.0, 1.0, 2500000, 5016.98, 0.0001, 0.0, 0.0001, 0.0, -10.0, 0.0, 0.0, -10.0, 10.0, 0.0, 0.0, 10.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0, 0, 1e-06]
101
103
  self.inputs_ini_list = ['P_1', 'Q_1', 'p_s_ppc_1', 'q_s_ppc_1', 'soc_ref_1', 'v_ref_1_0', 'theta_ref_1_0']
102
104
  self.inputs_ini_values_list = [0, 0, 0.0, 0.0, 0.5, 1.0, 0.0]
103
105
  self.inputs_run_list = ['P_1', 'Q_1', 'p_s_ppc_1', 'q_s_ppc_1', 'soc_ref_1', 'v_ref_1_0', 'theta_ref_1_0']