ChemPlant Studio

v1.0.0
com.chemplantstudio/chemplant-studio Checked 4 days ago Published 6 days ago

Chemical process simulation: MESH distillation, flowsheets, IAPWS-IF97 steam, API 520 PSV.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_components

FREE & unlimited (no login needed): List or search all chemical components (exact keys, formulas, MW, boiling points) and thermodynamic models supported by ChemPlant Studio. ALWAYS call this first before running distillation or flowsheet calculations, and follow its missing_component_guidance if a chemical is not in the DB.

ParameterTypeDescription
querystringOptional search filter (e.g. 'benzene', 'ethanol', 'C3', 'Cl2'). Omit to list all supported chemicals.

steam_properties

FREE trial (10 calls/day, no login needed): Compute exact IAPWS-IF97 water and steam thermodynamic properties (phase, Tsat, Psat, enthalpy kJ/kg, entropy kJ/kg-K, density kg/m3, Cp) validated against NIST IAPWS-95.

ParameterTypeDescription
pressBarA *numberAbsolute pressure in barA (e.g. 40)
tempC *numberTemperature in degrees Celsius (e.g. 400)

solve_distillation

FREE trial (3 simulations/day, no login needed): Solve a rigorous multistage MESH distillation column using PR, SRK, NRTL, UNIQUAC, UNIFAC, or IDEAL thermodynamics (cross-validated against DWSIM 9.0.5). Call list_components (FREE) first to verify exact component keys.

ParameterTypeDescription
feedFlowsKgH *objectComponent mass flowrates in kg/h (e.g. {'Benzene': 5000, 'Toluene': 5000}, or {'EtOH': 4000, 'H2O': 6000}, or {'C3H8': 5000, 'nC4H10': 5000})
distillateMoleFracnumberDistillate-to-feed molar split ratio D/F (0.01..0.99, default 0.5)
feedStageinteger1-indexed feed stage (default N/2)
feedTempCnumberFeed temperature in °C (default 90)
refluxRationumberMolar reflux ratio L/D (default 2.0)
thermoModelstringThermodynamic property package (default PR)
topPressBarAnumberCondenser pressure in barA (default 1.01325)
totalStagesintegerTotal theoretical stages including condenser and reboiler (4..120, default 20)

solve_flowsheet

FREE trial (3 simulations/day, no login needed): Solve a steady-state multi-unit chemical process flowsheet (feed, product, pump, compressor, turbine, hex, separator/decanter, valve, mixer, splitter, reactor, evaporator) with recycle convergence. Call list_components (FREE) first to verify exact component keys.

ParameterTypeDescription
edges *arrayArray of stream edges: [{id, source, target, sourcePort?, targetPort?, streamNo?}]
nodes *arrayArray of unit nodes: [{id, tag, unitType, params}]
propertyMethodstringThermodynamic property package (default PR)

size_psv_api520

FREE trial (3 simulations/day, no login needed): Size a Pressure Safety Valve per API 520 Part I/II and select the standard API 526 letter orifice (D through T).

ParameterTypeDescription
P_set_barG *numberSet pressure in barG
T_rel_C *numberRelieving temperature in °C
W_kgh *numberRequired relieving mass flowrate in kg/h
phase *stringRelieving fluid phase
P_back_barGnumberBackpressure in barG (default 0)
Z_compnumberCompressibility factor Z (default 0.98)
k_cpcvnumberCp/Cv ratio (default 1.4)
mwnumberMolecular weight (for vapor/gas, default 28.97)
overpress_pctnumberAllowed overpressure % (default 10)
rhoL_kgm3numberLiquid density kg/m3 (for liquid phase, default 800)
valve_typestring

size_pipe_dp

FREE trial (3 runs/day shared, 1 credit after trial): Size process piping and compute line pressure drop (Darcy-Weisbach / Churchill, Crane TP-410 fittings, ASME B36.10M Sch 40/80, erosion velocity, Mach number, and 2-phase flow regime) for liquid, gas, or two-phase flow.

ParameterTypeDescription
K_extranumberAdditional fitting resistance K (default 0)
L_mnumberStraight pipe length in m (default 100)
P1_barGnumberInlet pressure in barG (default 3)
Q_m3hnumberVolumetric flowrate in m3/h (e.g. 50)
T_CnumberOperating temperature in °C (default 25)
W_kgsnumberMass flowrate in kg/s (optional alternative to Q_m3h)
dZ_mnumberElevation change in m (positive = uphill, default 0)
mu_cPnumberFluid viscosity in cP (default 1.0)
mwnumberGas molecular weight (for gas phase)
n_checkintegerNumber of check valves (default 1)
n_elbow90integerNumber of 90° elbows (default 4)
n_gateintegerNumber of gate valves (default 1)
phasestringFlow phase (default liquid)
rhonumberFluid density in kg/m3 (default 1000 for liquid)
schedulestringPipe schedule (e.g. 'Sch 40', 'Sch 80', default 'Sch 40')
selected_npsstringTarget nominal pipe size (e.g. '2"', '4"', '6"', '8"')
vaporFractionnumberMass vapor quality 0..1 (for twophase)

size_pump

FREE trial (3 runs/day shared, 1 credit after trial): Size a centrifugal process pump per API 610 & Hydraulic Institute (HI 9.6.7 viscosity correction) — computes TDH, suction/discharge friction, NPSHa & cavitation margin, shaft/motor power (kW), and impeller diameter.

ParameterTypeDescription
Q_m3h *numberDesign liquid flowrate in m3/h (e.g. 50)
L_dis_mnumberDischarge pipe length in m (default 80)
L_suc_mnumberSuction pipe length in m (default 10)
P1_barGnumberSuction vessel pressure in barG (default 0.5)
P2_barGnumberDischarge destination pressure in barG (default 5.0)
T_CnumberPumping temperature in °C (default 25)
cv_dp_barnumberControl valve ΔP allowance in bar (default 0.5)
d_dis_mmnumberDischarge pipe ID in mm (default 102.3)
d_suc_mmnumberSuction pipe ID in mm (default 154.1)
eff_pctnumberPump hydraulic efficiency % (default 72)
mu_cPnumberLiquid viscosity in cP (default 1.0)
npshr_mnumberPump NPSHr in m (default 2.5)
pv_barnumberLiquid vapor pressure in barA (default 0.032)
rhonumberLiquid density in kg/m3 (default 1000)
z1_mnumberSuction liquid elevation above pump centerline in m (default 3.0)
z2_mnumberDischarge elevation above pump centerline in m (default 15.0)

size_compressor

FREE trial (3 runs/day shared, 2 credits after trial): Size a single- or multi-stage real-gas centrifugal (API 617) or reciprocating (API 618) gas compressor — computes polytropic head, Z-factor, stage discharge temperatures, shaft/motor power (kW), and intercooler duty.

ParameterTypeDescription
dischargePressBarG *numberTarget discharge pressure in barG (e.g. 20.0)
massFlowKgH *numberGas mass flowrate in kg/h (e.g. 5000)
suctionPressBarG *numberSuction pressure in barG (e.g. 3.0)
intercoolerExitTempCnumberIntercooler outlet gas temperature in °C (default 40)
moleFracobjectGas mole fractions by component key (e.g. {'CH4': 0.95, 'C2H6': 0.05} or {'N2': 1.0}). Call list_components first if unsure.
numStagesintegerOptional number of stages (1..5); omit for automatic multi-stage selection
polytropicEfficiencynumberPolytropic efficiency 0.70..0.88 (default 0.78)
suctionTempCnumberSuction temperature in °C (default 35)
typestringCompressor type (default centrifugal)