forked from BattMoTeam/BattMo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ReactionThermalModel.m
36 lines (22 loc) · 955 Bytes
/
ReactionThermalModel.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
classdef ReactionThermalModel < BaseModel
properties
Reaction
Thermal
end
methods
function model = ReactionThermalModel()
model.Reaction = ReactionModel();
model.Thermal = ThermalModel();
end
function model = registerVarAndPropfuncNames(model)
%% Declaration of the Dynamical Variables and Function of the model
model = registerVarAndPropfuncNames@BaseModel(model);
fn = @ReactionThermalModel.updateOCP;
inputnames = {{'Reaction', 'c_s'}, {'Thermal', 'T'}};
model = model.registerPropFunction({{'Reaction', 'OCP'}, fn, inputnames});
fn = @ReactionThermalModel.updateThermalSource;
inputnames = {{'Reaction', 'R'}};
model = model.registerPropFunction({{'Thermal', 'source'}, fn, inputnames});
end
end
end