Skip to content

Commit

Permalink
Derive Iv_ref_amp from P_ref in TestSimulateMmc and TestMexSimulateMmc
Browse files Browse the repository at this point in the history
  • Loading branch information
olejodd10 committed Apr 12, 2024
1 parent 9f8dfbd commit 8782bfd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions test/mex/TestMexSimulateMmc.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ function TestMexSimulateMmc(output_dir, N, simulation_timesteps)
q1 = 1.0;
q2 = 0.3;

Iv_ref_amp = 50.0;
Iv_phase = pi; % Phase relative to PHASE_0

P = 7.5e3;
Idc_ref = P/Vdc;
P_ref = 7.5e3;
Idc_ref = P_ref/Vdc;
Icir_ref = Idc_ref/3.0;

Iv_ref_amp = 2.0*P_ref/(3.0*Vf_amp);
Iv_phase = pi; % Phase relative to PHASE_0

% Model and discretization
N_X = 4;
Expand Down
10 changes: 5 additions & 5 deletions test/src/TestSimulateMmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
#define q1 1.0
#define q2 0.3

#define Iv_ref_amp 50.0
#define Iv_phase M_PI // Phase relative to PHASE_0

#define P 7.5e3
#define Idc_ref P/Vdc
#define P_ref 7.5e3
#define Idc_ref P_ref/Vdc
#define Icir_ref Idc_ref/3.0

#define Iv_ref_amp 2.0*P_ref/(3.0*Vf_amp)
#define Iv_phase M_PI // Phase relative to PHASE_0

// Model and discretization
#define N_X 4
#define N_U 2
Expand Down

0 comments on commit 8782bfd

Please sign in to comment.