Skip to content

Commit

Permalink
fixed current value in runChen2020 (for simplified diffusion model)
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierr committed Apr 11, 2024
1 parent 147bedd commit 8bf71aa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Examples/Advanced/runChen2020.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
sd = 'SolidDiffusion';
thermal = 'ThermalModel';

%%
% We use 5 ampere discharge current

Imax = 5;

% We create an instance of BatteryInputParams. This class is used to initiate the battery simulator and it propagates
% all the parameters through out the submodels.

Expand All @@ -41,7 +46,7 @@

%% We fix the input current to 5A

model.Control.Imax = 5*ampere;
model.Control.Imax = Imax;

%% We setup the schedule

Expand Down Expand Up @@ -114,6 +119,8 @@

model2 = Battery(inputparams);

model2.Control.Imax = Imax;

% setup initial state (the variables are different for the simplified model and therfore the initialization is not the same)

initstate2 = initStateChen2020(model2, c_ne, c_pe);
Expand Down

0 comments on commit 8bf71aa

Please sign in to comment.