Skip to content

Commit 37f284b

Browse files
committed
Restructure state accordingly
1 parent b54a13f commit 37f284b

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

CADETPythonSimulator/unit_operation.py

+23-9
Original file line numberDiff line numberDiff line change
@@ -833,32 +833,46 @@ class DeadEndFiltration(UnitOperationBase):
833833
'dimensions': {},
834834
'entries': {
835835
'c': 'n_comp',
836-
'n_feed': 'n_comp',
836+
'n': 'n_comp'
837837
},
838838
'n_inlet_ports': 1,
839839
}
840+
permeate = {
841+
'dimensions': (),
842+
'entries': {
843+
'c': 'n_comp',
844+
'n': 'n_comp',
845+
'V': 1,
846+
},
847+
}
848+
retentate = {
849+
'dimensions': (),
850+
'entries': {
851+
'c': 'n_comp',
852+
'n': 'n_comp',
853+
'V': 1,
854+
}
855+
}
840856
cake = {
841857
'dimensions': (),
842858
'entries': {
843-
'c_in': 'n_comp',
844-
# 'c_cake': 'n_comp',
845-
'volume': 'n_comp',
846-
'n_in': 'n_comp',
859+
'c': 'n_comp',
860+
'n': 'n_comp',
861+
'V': 1,
847862
'pressure': 1
848863
},
849864
}
850865
permeate_tank = {
851866
'dimensions': (),
852867
'entries': {
853-
'c_in': 'n_comp',
854868
'c': 'n_comp',
855-
'volume': 1,
856-
'n_in': 'n_comp',
869+
'n': 'n_comp',
870+
'V': 1,
857871
},
858872
'n_outlet_ports': 1,
859873
}
860874

861-
_state_structures = ['inlet', 'cake', 'permeate_tank']
875+
_state_structures = ['inlet', 'permeate', 'retentate', 'cake', 'permeate_tank']
862876

863877
membrane_area = UnsignedFloat()
864878
membrane_resistance = UnsignedFloat()

0 commit comments

Comments
 (0)