psychart
Version:
View air conditions on a psychrometric chart
69 lines (68 loc) • 1.38 kB
TypeScript
import { Options, Point, State } from './types.js';
/**
* Represents a single air condition using several states.
*/
export declare class PsyState {
readonly state: State;
private readonly options;
/**
* Calculation tolerance
*/
private static readonly TOL;
/**
* 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 readonly atm;
/**
* Maximum Humidity Ratio
*/
private readonly hrMax;
/**
* Initialize a new psychrometric state.
*/
constructor(state: State, options: Options);
/**
* Convert this psychrometric state to an X-Y coordinate on a psychrometric chart.
*/
toXY(): Point;
/**
* Calculate the dry bulb temperature of dry air with enthalpy `h`
*/
static getDryBulbWithEnthalpy(h: number): number;
}