Skip to content

Commit 901128f

Browse files
authored
Merge pull request #5 from pathsim/feature/chem-docs-config
Update pathsim-chem package config and enable examples
2 parents 56295ff + 2f33ba0 commit 901128f

2 files changed

Lines changed: 33 additions & 8 deletions

File tree

scripts/lib/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"griffe_package": "pathsim_chem",
3939
"root_modules": [
4040
"pathsim_chem",
41+
"pathsim_chem.thermodynamics",
4142
"pathsim_chem.tritium",
4243
],
4344
},

src/lib/config/packages.ts

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,24 +122,48 @@ scope.plot()`,
122122
id: 'chem',
123123
name: 'PathSim-Chem',
124124
shortName: 'chem',
125-
description: 'Chemical engineering blocks for PathSim, including reactors, heat exchangers, and separation units.',
125+
description: 'Chemical engineering blocks for PathSim — IK-CAPE thermodynamic property correlations, activity coefficients, equations of state, and tritium processing.',
126126
logo: 'pathsim_chem_logo.png',
127127
docs: 'chem',
128128
api: 'chem/api',
129-
examples: null,
129+
examples: 'chem/examples',
130130
pypi: `${external.pypi}/pathsim-chem`,
131131
conda: null,
132132
github: `${external.github}/pathsim-chem`,
133-
features: [],
133+
features: [
134+
{ title: 'IK-CAPE Standard', description: '50+ blocks implementing DECHEMA thermodynamic equations' },
135+
{ title: 'Property Correlations', description: 'Antoine, Wagner, DIPPR, and 13 more temperature correlations' },
136+
{ title: 'Activity Coefficients', description: 'NRTL, Wilson, UNIQUAC, and Flory-Huggins models' },
137+
{ title: 'Equations of State', description: 'Peng-Robinson and Soave-Redlich-Kwong cubic EoS' },
138+
{ title: 'Fugacity & Enthalpy', description: 'Fugacity coefficients, excess enthalpy, departure functions' },
139+
{ title: 'Tritium Processing', description: 'GLC columns, TCAP cascades, bubblers, and splitters' }
140+
],
134141
installation: [
135142
{ name: 'pip', command: 'pip install pathsim-chem' }
136143
],
137-
quickstart: null,
144+
quickstart: {
145+
description: 'PathSim-Chem blocks follow the standard PathSim interface. Set inputs, call update, read outputs.',
146+
code: `from pathsim_chem.thermodynamics import Antoine
147+
148+
# Antoine vapor pressure correlation for water
149+
antoine = Antoine(a0=23.2256, a1=3835.18, a2=-45.343)
150+
151+
# Evaluate at 100 °C (373.15 K)
152+
antoine.inputs[0] = 373.15
153+
antoine.update(None)
154+
P_sat = antoine.outputs[0] # ≈ 101325 Pa`,
155+
title: 'Example'
156+
},
138157
apiModules: [
139-
{ name: 'pathsim_chem.reactors', description: 'CSTR, PFR, batch reactor blocks' },
140-
{ name: 'pathsim_chem.heat', description: 'Heat exchangers, heaters, coolers' },
141-
{ name: 'pathsim_chem.separation', description: 'Distillation, absorption columns' },
142-
{ name: 'pathsim_chem.thermo', description: 'Thermodynamic property calculations' }
158+
{ name: 'pathsim_chem.thermodynamics.correlations', description: '16 pure component property correlations' },
159+
{ name: 'pathsim_chem.thermodynamics.averages', description: '10 mixing rules for calculation of averages' },
160+
{ name: 'pathsim_chem.thermodynamics.activity_coefficients', description: 'NRTL, Wilson, UNIQUAC, Flory-Huggins' },
161+
{ name: 'pathsim_chem.thermodynamics.equations_of_state', description: 'Peng-Robinson, Soave-Redlich-Kwong' },
162+
{ name: 'pathsim_chem.thermodynamics.corrections', description: 'Poynting correction, Henry\'s law' },
163+
{ name: 'pathsim_chem.thermodynamics.fugacity_coefficients', description: 'RKS, PR, and virial fugacity coefficients' },
164+
{ name: 'pathsim_chem.thermodynamics.enthalpy', description: 'Excess enthalpy and enthalpy departure' },
165+
{ name: 'pathsim_chem.thermodynamics.reactions', description: 'Equilibrium constants, rate constants, power-law rates' },
166+
{ name: 'pathsim_chem.tritium', description: 'GLC, TCAP, bubbler, splitter blocks' }
143167
]
144168
},
145169
vehicle: {

0 commit comments

Comments
 (0)