Skip to content

Zeolite Adsorber

DWSIM Plus

Available with a DWSIM Plus (Patreon) subscription.

Zeolite Adsorber unit operation for DWSIM. Ports ───── Inlet 0 : Feed gas stream Outlet 0 : Raffinate (non/less-adsorbed product) Outlet 1 : Desorbate (adsorbed product, released on regeneration) Modes ───── Equilibrium – steady-state shortcut using working capacity PSA Cycle – 4-step Skarstrom cycle with explicit pressurisation, feed, blowdown and purge steps Isotherm models: single-site Langmuir, dual-site Langmuir, Freundlich.

DWSIM.UnitOperations.ZeoliteAdsorber.ZeoliteAdsorberUnitOperation
Assembly DWSIM.UnitOperations.ZeoliteAdsorber.dll · Object ← BaseClass ← UnitOpBaseClass ← ZeoliteAdsorberUnitOperation

At a glance

Zeolite Adsorber in the example flowsheet

Port Index Connected in the example
Inlet, material 0 Biogas
Outlet, material 0 Upgraded gas
Outlet, material 1 Tail gas

Example

This code runs on every build of this site, and the output below is what it printed.

fs = (Flowsheet.Create("ZeoliteExample")
      .WithCompounds("Methane", "Carbon dioxide")
      .WithPropertyPackage(PropertyPackages.PengRobinson))

biogas = (fs.AddMaterialStream("Biogas")
          .At(Q.Celsius(30.0), Q.Bar(6.0))
          .SetCompoundMolarFlow("Methane", 30.0)          # mol/s
          .SetCompoundMolarFlow("Carbon dioxide", 20.0))
product = fs.AddMaterialStream("Upgraded gas")              # raffinate
tail = fs.AddMaterialStream("Tail gas")                     # desorbate

ads = (fs.AddZeoliteAdsorber("ADS-1")
       .ConnectFeed(biogas)
       .ConnectProduct(product, 0)
       .ConnectProduct(tail, 1))

cfg = ads.Config
cfg.OperationMode = OperationMode.Equilibrium
cfg.RegenerationMode = RegenerationMode.PressureSwing
cfg.IsothermModel = IsothermModel.Langmuir
cfg.DesorptionPressure = 0.2e5            # Pa
cfg.CycleTime = 600.0                     # s
cfg.Bed.AdsorbentMass = 2000.0            # kg
cfg.Bed.VesselDiameter = 1.4              # m
cfg.Bed.BedLength = 3.0                   # m

cfg.Preset = ZeolitePreset.Zeolite13X     # 13X isotherm parameters for CO2 and methane

fs.AutoLayout()
fs.Solve()

r = ads.Object.Results
co2 = next(c for c in r.ComponentResults if c.ComponentName == "Carbon dioxide")
y_co2 = co2.RaffinateMolarFlow / r.RaffinateMolarFlow
print(f"CO2 working capacity = {co2.LoadingAdsorption - co2.LoadingDesorption:.2f} mol/kg")
print(f"CO2 adsorbed         = {co2.AdsorbedMolarFlow:.2f} of 20.00 mol/s")
print(f"Upgraded gas         = {r.RaffinateMolarFlow:.2f} mol/s, {y_co2 * 100:.1f} mol% CO2")
print(f"Tail gas             = {r.DesorbateMolarFlow:.2f} mol/s")
print(f"Bed pressure drop    = {r.PressureDrop / 1000:.2f} kPa")

Output

CO2 working capacity = 4.17 mol/kg
CO2 adsorbed         = 13.89 of 20.00 mol/s
Upgraded gas         = 32.46 mol/s, 16.9 mol% CO2
Tail gas             = 17.54 mol/s
Bed pressure drop    = 1.29 kPa

DWSIM 10.2.11.0, generated 2026-10-08.

Properties

IDs accepted by GetPropertyValue, SetPropertyValue, the sensitivity analysis, the optimizer, the Adjust block and dynamic events. Units are SI; pass another unit system to GetPropertyValue to get them converted.

ID Name Unit (SI) Input
Operation Mode NF yes
Isotherm Model NF yes
Regeneration Mode NF yes
Use Inlet Temperature NF yes
Adsorption Temperature K yes
Desorption Pressure Pa yes
Desorption Temperature K yes
Adsorbent Mass kg yes
Bed Void Fraction NF yes
Bulk Density kg/m3 yes
Number of Beds NF yes
Vessel Diameter mm yes
Bed Length mm yes
Particle Diameter mm yes
Particle Sphericity NF yes
Cycle Time s yes
Purge Fraction NF yes
Pressurisation Time Fraction NF yes
Feed Molar Flow mol/s result
Raffinate Molar Flow mol/s result
Desorbate Molar Flow mol/s result
Key Component Recovery % result
Key Component Purity (Desorbate) % result
Key Component Purity (Raffinate) % result
Heat of Adsorption kW result
Purge Molar Flow mol/s result
Pressure Drop Pa result

Learn more

API members

Public members declared by this class. Inherited members are documented on the base classes.

Constructors

ZeoliteAdsorberUnitOperation()
public ZeoliteAdsorberUnitOperation()
Public Sub New()

Properties

ComponentDescription: Gets or sets the CAPE-OPEN component description for this unit operation.

Gets or sets the CAPE-OPEN component description for this unit operation.

public override string ComponentDescription { get; set; }
Public Overrides Property ComponentDescription As String

Config: Gets or sets the input configuration: operation mode, isotherm model and per-compound isotherm data, zeolite preset...

Gets or sets the input configuration: operation mode, isotherm model and per-compound isotherm data, zeolite preset, regeneration mode and bed geometry.

public AdsorberConfiguration Config { get; set; }
Public Property Config As AdsorberConfiguration

IsPremium: Gets a value indicating that this unit operation is listed in the Premium group of the object palette (always true).

Gets a value indicating that this unit operation is listed in the Premium group of the object palette (always true).

public bool IsPremium { get; }
Public ReadOnly Property IsPremium As Boolean

MobileCompatible: Gets a value indicating whether this unit operation is compatible with mobile interfaces (always false).

Gets a value indicating whether this unit operation is compatible with mobile interfaces (always false).

public override bool MobileCompatible { get; }
Public Overrides ReadOnly Property MobileCompatible As Boolean

ObjectClass: Gets the simulation object class category (separators).

Gets the simulation object class category (separators).

public override SimulationObjectClass ObjectClass { get; }
Public Overrides Property ObjectClass As SimulationObjectClass

Prefix: Gets the default name prefix for this unit operation ('ZA-').

Gets the default name prefix for this unit operation ("ZA-").

public string Prefix { get; }
Public ReadOnly Property Prefix As String

Methods

Calculate(object): Calculates the object.

Calculates the object.

Parameter Type Description
args Object
public override void Calculate(object args = null)
Public Overrides Sub Calculate(args As Object = Nothing)

CloneXML(): Creates a deep copy of this object by round-tripping through XML serialization.

Creates a deep copy of this object by round-tripping through XML serialization.

public override object CloneXML()
Public Overrides Function CloneXML() As Object

CloseEditForm(): Closes the editor of this object, if it is open.

Closes the editor of this object, if it is open.

public override void CloseEditForm()
Public Overrides Sub CloseEditForm()

CreateConnectors(): Creates the graphic connector definitions on the flowsheet: one feed gas inlet on the left and two outlets on the...

Creates the graphic connector definitions on the flowsheet: one feed gas inlet on the left and two outlets on the right (raffinate on top, desorbate below). The energy connector is disabled.

public void CreateConnectors()
Public Sub CreateConnectors()

DeCalculate(): Decalculates the object.

Decalculates the object.

public override void DeCalculate()
Public Overrides Sub DeCalculate()

DisplayEditForm(): Opens the editor of this object.

Opens the editor of this object. A host that has no editor for it does nothing.

public override void DisplayEditForm()
Public Overrides Sub DisplayEditForm()

Draw(object): Draws the unit operation on the given SkiaSharp canvas: the embedded photo in photorealistic mode (draw mode 2)...

Draws the unit operation on the given SkiaSharp canvas: the embedded photo in photorealistic mode (draw mode 2), otherwise the vector icon.

Parameter Type Description
g Object The SkiaSharp canvas.
public void Draw(object g)
Public Sub Draw(g As Object)

GetChartModel(string): Builds an OxyPlot model of the bed pressure through the cycle steps of the last calculation, one segment per step...

Builds an OxyPlot model of the bed pressure through the cycle steps of the last calculation, one segment per step, in the flowsheet's pressure unit.

Parameter Type Description
name String
public override object GetChartModel(string name)
Public Overrides Function GetChartModel(name As String) As Object

GetChartModelNames(): Chart names the PFD chart object can embed.

Chart names the PFD chart object can embed.

public override List<string> GetChartModelNames()
Public Overrides Function GetChartModelNames() As List(Of String)

GetDisplayDescription(): Returns the description string for this unit operation type.

Returns the description string for this unit operation type.

public override string GetDisplayDescription()
Public Overrides Function GetDisplayDescription() As String

GetDisplayName(): Returns the display name for this unit operation type.

Returns the display name for this unit operation type.

public override string GetDisplayName()
Public Overrides Function GetDisplayName() As String

GetIconBitmapBytes(): Returns the raw bytes of the icon image for this unit operation.

Returns the raw bytes of the icon image for this unit operation.

public override byte[] GetIconBitmapBytes()
Public Overrides Function GetIconBitmapBytes() As Byte()

GetPreferredGraphicObjectHeight(): Returns the preferred height of the flowsheet graphic object, in pixels.

Returns the preferred height of the flowsheet graphic object, in pixels.

public override double GetPreferredGraphicObjectHeight()
Public Overrides Function GetPreferredGraphicObjectHeight() As Double

GetPreferredGraphicObjectWidth(): Returns the preferred width of the flowsheet graphic object, in pixels.

Returns the preferred width of the flowsheet graphic object, in pixels.

public override double GetPreferredGraphicObjectWidth()
Public Overrides Function GetPreferredGraphicObjectWidth() As Double

GetProperties(PropertyType): Get a list of all properties of the object.

Get a list of all properties of the object.

Parameter Type Description
proptype PropertyType Type of the property.
public override string[] GetProperties(PropertyType proptype)
Public Overrides Function GetProperties(proptype As PropertyType) As String()

GetPropertyUnit(string, IUnitsOfMeasure): Gets the units of a property.

Gets the units of a property.

Parameter Type Description
prop String Property identifier.
su IUnitsOfMeasure Units system to use. Null to use the default (SI) system.
public override string GetPropertyUnit(string prop, IUnitsOfMeasure su)
Public Overrides Function GetPropertyUnit(prop As String, su As IUnitsOfMeasure) As String

GetPropertyValue(string, IUnitsOfMeasure): Returns the value of a named property, converting from SI to the current unit system.

Returns the value of a named property, converting from SI to the current unit system. Falls back to extra properties if the property is not found in the base implementation.

Parameter Type Description
prop String The property identifier string.
su IUnitsOfMeasure Optional units-of-measure system used for conversion; uses the shared SI system when Nothing.
public override object GetPropertyValue(string prop, IUnitsOfMeasure su)
Public Overrides Function GetPropertyValue(prop As String, su As IUnitsOfMeasure) As Object

LoadData(List<XElement>): Restores the unit operation state from a list of XML elements previously produced by SaveData.

Restores the unit operation state from a list of XML elements previously produced by SaveData.

Parameter Type Description
data List<XElement> The list of XElement objects containing serialized state.
public override bool LoadData(List<XElement> data)
Public Overrides Function LoadData(data As List(Of XElement)) As Boolean

PopulateEditorPanel(object): Populates the cross-platform (Avalonia) editor panel with controls.

Populates the cross-platform (Avalonia) editor panel with controls.

Parameter Type Description
ctner Object The editor panel (layout container) to populate.
public void PopulateEditorPanel(object ctner)
Public Sub PopulateEditorPanel(ctner As Object)

ReturnInstance(string): Creates and returns a new instance for deserialization.

Creates and returns a new instance for deserialization.

Parameter Type Description
typename String The type name to instantiate.
public object ReturnInstance(string typename)
Public Function ReturnInstance(typename As String) As Object

SaveData(): Serializes the unit operation state to a list of XML elements for persistence.

Serializes the unit operation state to a list of XML elements for persistence.

public override List<XElement> SaveData()
Public Overrides Function SaveData() As List(Of XElement)

SetPropertyValue(string, object, IUnitsOfMeasure): Sets the value of a property.

Sets the value of a property.

Parameter Type Description
prop String Property identifier.
propval Object Property value to set at the specified units.
su IUnitsOfMeasure Units system to use. Null to use the default (SI) system.
public override bool SetPropertyValue(string prop, object propval, IUnitsOfMeasure su)
Public Overrides Function SetPropertyValue(prop As String, propval As Object, su As IUnitsOfMeasure) As Boolean

UpdateEditForm(): Redraws the editor of this object with the current values, if it is open.

Redraws the editor of this object with the current values, if it is open.

public override void UpdateEditForm()
Public Overrides Sub UpdateEditForm()

Fields

_editorForm: The classic (WinForms) editor window open for this unit operation, if any.

The classic (WinForms) editor window open for this unit operation, if any. Not saved with the flowsheet.

public FormEditorZeoliteAdsorber _editorForm
Public _editorForm As FormEditorZeoliteAdsorber