UNPKG

ccs-sim

Version:
31 lines (30 loc) 1.17 kB
import PipeSeg from './pipeSeg'; import Fluid from './fluid'; import IElement, { IPhysicalElement, PressureSolution } from './element'; import Transport from './transport'; import { Pressure, Flowrate } from 'physical-quantities'; export default class Splitter extends Transport { destinations: IElement[]; constructor(name: string, physical: IPhysicalElement, source: PipeSeg); addDestination(dest: IElement): void; setDestinations(destinations: IElement[]): void; applyFlowrate(branch: number, flowrate: Flowrate): Promise<{ pressureSolution: PressureSolution; pressure: Pressure; target: null | Pressure; }>; searchBranchFlowrate(branch: number, fluid: Fluid): Promise<{ flowrate: number; pressureSolution: PressureSolution; }>; getBranchTarget(branchNum: number, fluid: Fluid): Promise<{ pressureSolution: PressureSolution; pressure: Pressure; target: Pressure; } | undefined>; process(fluid: Fluid): Promise<{ pressureSolution: PressureSolution; pressure: Pressure; target: null | Pressure; }>; }