Quickstart
Get up and running with Jasper simulation engine.
Installation
npm install @jasper-technology/simulation
Basic Usage
import { runSimulation } from '@jasper-technology/simulation';
const result = runSimulation({
components: ['H2O', 'C2H5OH'],
streams: [
{
id: 'feed',
T: 25, // °C
P: 1, // bar
flow: 100, // kmol/h
composition: { H2O: 0.5, C2H5OH: 0.5 }
}
],
blocks: [
{
id: 'heater',
type: 'Heater',
inlet: 'feed',
outlet: 'heated',
params: { outletT: 80 }
}
]
});
console.log(result.streams.heated);
Visual Editor
For drag-and-drop flowsheet editing, visit jaspertech.org.
Switching to Rigorous Mode
In the visual editor, use the engine toggle in the toolbar to switch between Quick and Rigorous simulation modes. Rigorous mode uses the IDAES backend for equation-oriented solving with advanced thermodynamic models.
note
Rigorous mode requires the IDAES backend to be online. The first request after a period of inactivity may take ~30 seconds while the backend wakes up.
Next Steps
- Thermodynamics - Learn about calculation methods
- Unit Operations - Explore equipment models
- Component Database - View available chemicals