MATHEMATICAL MODEL VIEW
==========================================================
 Model: REACTOR.reactor+a+b.partition1
 Internal Version: 6.0
 Date and Time: 27/03/2019 23:36:11.638000
 Library: REACTOR
 Library dependency list: MATH V3.2.5 REACTOR V0.0 
 Software: PROOSIS V6.0.0

==========================================================
Statistics
INFO	VALUE
Number of equations	17
Number of boxes (coupled subsystems of equations)	0
Number of linear boxes	0
Number of nonlinear boxes	0
Number of input DATA	16
Number of input BOUNDARIES	2
Number of output EXPLICIT	12
Number of output DYNAMICS or DERIVATIVES	5
Number of output ALGEBRAICS	0
Size of Jacobian matrix (DYNAMIC+ALGEBRAIC).	5x5
Sparsity factor in Jacobian matrix (% of zeros)	56
Default integration method	DASSL

Type of Variables
TYPE	VARIABLE	DATA	CONSTANT
REAL	24	16	1
INTEGER	0	0	0
STRING	0	0	0
TABLE	0	0	0

Partition Settings
SETTING	VALUE
Remove derivatives	FALSE
Use automatic reduction of equations	TRUE
Remove unused variables	FALSE
Advanced residue generation	disabled
Generate a class associated to the partition	FALSE
Generate code to check mathematical functions	TRUE
Generate code to analyse the performance of the simulation	FALSE
Obfuscate C++ generated code	FALSE
Generate mathematical view (HTML)	TRUE
Generate mathematical view in other formats (TXT and XML)	TRUE
Use maximum number of digits for representing real constants	FALSE
Generate residues to allow their comparison after validation	FALSE

Types
No types defined.

Variables
#	NAME	UNITS	TYPE	MATH-TYPE	INITIAL	LRANGE	RRANGE	STATION	ALIAS	IS-ALIAS	EDIT	TRACE	STORE	DECK-IN	DECK-OUT
1	A	m^2	REAL	EXPLICIT	0					NO	YES	NO	NO	NO	NO
2	Cp	kJ/(kg*K)	REAL	DATA_VAR	0.968					NO	YES	NO	NO	NO	NO
3	Cpr	kJ/(kg*K)	REAL	DATA_VAR	1.291					NO	YES	NO	NO	NO	NO
4	D	m	REAL	DATA_VAR	3.03					NO	YES	NO	NO	NO	NO
5	DH	kJ/kmol	REAL	DATA_VAR	-75755.88					NO	YES	NO	NO	NO	NO
6	F_optim		REAL[4]	EXPLICIT						NO	YES	NO	NO	NO	NO
7	F_optim[3]'		REAL	DERIVATIVE						NO	YES	NO	NO	NO	NO
8	F_optim[3]		REAL	DYNAMIC						NO	YES	NO	NO	NO	NO
9	F_optim[4]'		REAL	DERIVATIVE						NO	YES	NO	NO	NO	NO
10	F_optim[4]		REAL	DYNAMIC						NO	YES	NO	NO	NO	NO
11	Fr	m^3/h	REAL	BOUNDARY	67					NO	YES	NO	NO	NO	NO
12	J_coste		REAL	EXPLICIT						NO	YES	NO	NO	NO	NO
13	L	m	REAL	DATA_VAR	3.03					NO	YES	NO	NO	NO	NO
14	LiminfT	ºC	REAL	DATA_VAR	62					NO	YES	NO	NO	NO	NO
15	Liminfx		REAL	DATA_VAR	0.7					NO	YES	NO	NO	NO	NO
16	LimsupT	ºC	REAL	DATA_VAR	73					NO	YES	NO	NO	NO	NO
17	MATH.PI		REAL	CTE	3.14159265358979					NO	YES	NO	NO	NO	NO
18	Q	kJ/h	REAL	EXPLICIT						NO	YES	NO	NO	NO	NO
19	T	K	REAL	DYNAMIC						NO	YES	NO	NO	NO	NO
20	T'		REAL	DERIVATIVE						NO	YES	NO	NO	NO	NO
21	T0	ºC	REAL	DATA_VAR	68					NO	YES	NO	NO	NO	NO
22	Te	ºC	REAL	DATA_VAR	21.11					NO	YES	NO	NO	NO	NO
23	Tr	K	REAL	DYNAMIC						NO	YES	NO	NO	NO	NO
24	Tr'		REAL	DERIVATIVE						NO	YES	NO	NO	NO	NO
25	Tre	ºC	REAL	DATA_VAR	21.11					NO	YES	NO	NO	NO	NO
26	U	kJ/(h*m^2*K)	REAL	DATA_VAR	6129					NO	YES	NO	NO	NO	NO
27	V	m^3	REAL	EXPLICIT	0					NO	YES	NO	NO	NO	NO
28	Vr	m^3	REAL	EXPLICIT	0					NO	YES	NO	NO	NO	NO
29	cA	kmol/m^3	REAL	DYNAMIC						NO	YES	NO	NO	NO	NO
30	cA'		REAL	DERIVATIVE						NO	YES	NO	NO	NO	NO
31	cA0	kmol/m^3	REAL	DATA_VAR	14.46					NO	YES	NO	NO	NO	NO
32	cB	kmol/m^3	REAL	EXPLICIT						NO	YES	NO	NO	NO	NO
33	dc	m	REAL	DATA_VAR	0.1					NO	YES	NO	NO	NO	NO
34	k	l/h	REAL	EXPLICIT						NO	YES	NO	NO	NO	NO
35	q	m^3/h	REAL	BOUNDARY	4.1					NO	YES	NO	NO	NO	NO
36	rho	kg/m^3	REAL	DATA_VAR	800.8					NO	YES	NO	NO	NO	NO
37	rhor	kg/m^3	REAL	DATA_VAR	1041.1					NO	YES	NO	NO	NO	NO
38	x		REAL	EXPLICIT						NO	YES	NO	NO	NO	NO


No equivalent variables detected.

No discrete statement detected.

No design variables defined.

No high index problems detected.


Boundary Variables
#	NAME	ALIAS	UNITS	DESCRIPTION	INITIAL	PRIVATE
1	Fr		m^3/h	Caudal de refrigerante	67	NO
2	q		m^3/h	Caudal de entrada	4.1	NO



Jacobian Independent Variables
POS	VARIABLE	ALIAS	CATEGORY	UNITS	DESCRIPTION	INITIAL	RESIDUE EQUATION	BOX
1	<font color="red"><font color="red">cA</font></font>	<font color="red"><font color="red"></font></font>	DYNAMIC	kmol/m^3	Concentración de elemento A		cA' = (q * (cA0 - cA) - V * k * cA) / V	0
2	<font color="red"><font color="red">T</font></font>	<font color="red"><font color="red"></font></font>	DYNAMIC	K	Temperatura del tanque		T' = (q * rho * Cp * (Te - T) - V * k * cA * DH - Q) / (V * rho * Cp)	0
3	<font color="red"><font color="red">Tr</font></font>	<font color="red"><font color="red"></font></font>	DYNAMIC	K	Temperatura de la camisa de refrigeracion		Tr' = (Fr * rhor * Cpr * (Tre - Tr) + Q) / (Vr * rhor * Cpr)	0
4	<font color="red"><font color="red">F_optim[3]</font></font>	<font color="red"><font color="red"></font></font>	DYNAMIC				F_optim[3]' = MATH.min(T, LiminfT) - LiminfT	0
5	<font color="red"><font color="red">F_optim[4]</font></font>	<font color="red"><font color="red"></font></font>	DYNAMIC				F_optim[4]' = MATH.max(T, LimsupT) - LimsupT	0





Note 1: Variables called "__aux_int_..." are internal integer variables, used to iterate
Note 2: FOR statements are converted to WHILE statements

  -- init(reactorAB,0)
T = T0
Tr = 51.5
cA = 2.891
J_coste = 0
F_optim[1] = 0
F_optim[2] = 0
F_optim[3] = 0
F_optim[4] = 0


Equations: 17
Note 3: In equations 'E' means explicit,'I' implicit,'L' linear,'F' function
[E-1] F_optim[3] = F_optim[3].
[E-2] F_optim[4] = F_optim[4].
[E-3] V = MATH.PI * D * D * L / 4
[E-4] A = MATH.PI * D * L
[E-5] Vr = MATH.PI * (D + 2 * dc) * (D + 2 * dc) * L / 4 - MATH.PI * D * D * L / 4
[E-6] cB = cA0 - cA
[E-7] x = (cA0 - cA) / cA0
[E-8] k = 5.967 * exp(-826 / (T + 273.14))
[E-9] cA' = (q * (cA0 - cA) - V * k * cA) / V
[E-10] Q = U * A * (T - Tr)
[E-11] T' = (q * rho * Cp * (Te - T) - V * k * cA * DH - Q) / (V * rho * Cp)
[E-12] Tr' = (Fr * rhor * Cpr * (Tre - Tr) + Q) / (Vr * rhor * Cpr)
[E-13] J_coste = -q * (cA0 - cA)
[E-14] F_optim[1] = J_coste
[E-15] F_optim[2] = x
[E-16] F_optim[3]' = MATH.min(T, LiminfT) - LiminfT
[E-17] F_optim[4]' = MATH.max(T, LimsupT) - LimsupT


No differences with last validation detected.



