Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top and bottom chemicals for partition settler #173

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions biosteam/units/liquid_liquid_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,33 +750,41 @@ class LiquidsPartitionSettler(LiquidsSettler):
partition_coefficients : 1d array, optional
Partition coefficients of chemicals in equilibrium (molar
composition ratio of the top fluid over the bottom fluid).
partition_IDs: tuple[str], optional
partition_IDs : tuple[str], optional
IDs of chemicals in equilibrium.

top_chemicals : tuple[str], optional
Chemicals that remain in the top fluid.
bottom_chemicals : tuple[str], optional
Chemicals that remain in the bottom fluid.
"""
line = 'Settler'
def __init__(self, ID='', ins=None, outs=(), thermo=None, *,
partition_coefficients, partion_IDs,
partition_coefficients, partition_IDs,
area_to_feed=0.1,
length_to_diameter=4,
vessel_material='Carbon steel',
vessel_type='Horizontal'):
vessel_type='Horizontal',
top_chemicals=None,
bottom_chemicals=None,
):
bst.Unit.__init__(self, ID, ins, outs, thermo)
self.vessel_material = vessel_material
self.vessel_type = vessel_type
self.length_to_diameter = length_to_diameter
self.area_to_feed = area_to_feed
self.partition_coefficients = partition_coefficients
self.partion_IDs = partion_IDs
self.partition_IDs = partition_IDs
self.top_chemicals = top_chemicals
self.bottom_chemicals = bottom_chemicals
self.reset_cache()

def reset_cache(self, isdynamic=None):
self._phi = None

def _run(self):
self._phi = sep.partition(*self.ins, *self.outs,
self.partion_IDs, self.partition_coefficients,
self._phi)
self.partition_IDs, self.partition_coefficients,
self._phi, self.top_chemicals, self.bottom_chemicals)

# %% Mixer-settlers

Expand Down