Skip to content

Overview

Create a Project object by instancing the Project class with a Workspace object.

import { Workspace, Project } from "epanet-js";
const ws = new Workspace();
await ws.loadModule();
const model = new Project(ws);

Every function below is labelled with a version badge indicating which EPANET engine variants expose it. See Workspace for how to load a specific engine (or one with MSX support enabled).

FunctionsDescription
Project FunctionsThese functions are used to manage a project
Hydraulic Analysis FunctionsThese functions are used to perform a hydraulic analysis
Water Quality Analysis FunctionsThese functions are used to perform a water quality analysis
MSX FunctionsMulti-species water-quality functions (require an -msx engine variant)
Reporting FunctionsThese functions are used to report simulation results
Analysis Options FunctionsThese functions are used to get and set analysis options
Network Node FunctionsThese functions are used for working with network nodes
Nodal Demand FunctionsThese functions are used for managing nodal demands
Network Link FunctionsThese functions are used for working with network links
Time Pattern FunctionsThese functions are used for working with time patterns
Data Curve FunctionsThese functions are used for working with data curves
Simple Control FunctionsThese functions are used for working with simple conditional controls
Rule-Based Control FunctionsThese functions are used for working with rule-based controls
Enumerated TypesConstants used as arguments and return values of the toolkit methods