ccs-sim
Version:
Modelling CCS systems
17 lines (16 loc) • 652 B
TypeScript
import Fluid from './fluid';
import IElement, { IPhysicalElement, PressureSolution } from './element';
import Transport from './transport';
import { Pressure } from 'physical-quantities';
export default class Valve extends Transport {
inputPressure: Pressure;
constructor(name: string, physical: IPhysicalElement, inputPressure: Pressure);
setDestination(dest: IElement): void;
searchPressure(): Promise<Pressure>;
getNewFluid(pressure: Pressure): Promise<Fluid>;
process(fluid: Fluid): Promise<{
pressureSolution: PressureSolution;
pressure: Pressure;
target: null | Pressure;
}>;
}