UNPKG

psychart

Version:

View air conditions on a psychrometric chart

87 lines (86 loc) 1.72 kB
import { Datum, Point, PsychartOptions } from './types'; /** * Represents a single air condition using several states. */ export declare class PsyState { /** * Dry Bulb */ readonly db: number; /** * Relative Humidity */ readonly rh: number; /** * Wet Bulb */ readonly wb: number; /** * Dew Point */ readonly dp: number; /** * Humidity Ratio */ readonly hr: number; /** * Vapor Pressure */ readonly vp: number; /** * Moist Air Enthalpy */ readonly h: number; /** * Moist Air Volume */ readonly v: number; /** * Degree of Saturation */ readonly s: number; /** * Standard Atmospheric Air Pressure */ private static atm; /** * Minimum Dry Bulb */ private static dbMin; /** * Maximum Dry Bulb */ private static dbMax; /** * Maximum Humidity Ratio */ private static hrMax; /** * Psychart panel size */ private static size; /** * Psychart panel padding */ private static padding; /** * Render a Mollier diagram instead */ private static flipXY; /** * Compute a first-time initialization of psychrolib. */ static initialize(options: PsychartOptions): void; /** * A static helper function to convert a humidity ratio into a dew point. */ static hr2dp(db: number, hr: number): number; /** * Initialize a new psychrometric state. */ constructor(state: Datum); /** * Convert this psychrometric state to an X-Y coordinate on a psychrometric chart. */ toXY(): Point; }