Table of Contents

Class ExtensionMethods

Namespace
EpNet.Helpers
Assembly
EpNet.dll

Provides additional functionality in the form of extension methods.

public static class ExtensionMethods
Inheritance
ExtensionMethods

Methods

CleanSchedules(IdfReader)

Removes duplicated schedules.

public static void CleanSchedules(this IdfReader idf)

Parameters

idf IdfReader

Idf Reader

GenerateScheduleViews(IdfReader, bool, params string[])

Creates a special idf that generates schedule profiles as results once simulated.

public static void GenerateScheduleViews(this IdfReader idf, bool designDays = false, params string[] schedules)

Parameters

idf IdfReader

Idf Reader

designDays bool

Generates profiles for design days if true.

schedules string[]

List of schedule names, optional.

GetAirloopZones(IdfReader)

Get a Dictionary <Key,Value> with airloop names as Keys and List of zones as Values.

public static Dictionary<string, List<string>> GetAirloopZones(this IdfReader idf)

Parameters

idf IdfReader

IdfReader

Returns

Dictionary<string, List<string>>

Dictionary with airloops and list of zones.

GetArea(IdfObject, bool)

Get the area of a zone or any opaque, shading or window surface. If window, it includes the frame.

public static double GetArea(this IdfObject idfObject, bool includeMultiplier = true)

Parameters

idfObject IdfObject
includeMultiplier bool

Returns

double

Surface area (m²).

GetAzimuth(IdfObject)

Get the azimuth of any opaque, shading or window surface

public static double GetAzimuth(this IdfObject idfObject)

Parameters

idfObject IdfObject

Returns

double

Surface azimuth (deg).

GetDividerArea(IdfObject, bool)

Gets the area of the dividers of a window (FenestrationSurface:Detailed)

public static double GetDividerArea(this IdfObject idfObject, bool includeMultiplier = true)

Parameters

idfObject IdfObject

IdfObject of type FenestrationSurface:Detailed

includeMultiplier bool

Include the window multiplers to calculate the total area

Returns

double

GetFrameArea(IdfObject, bool)

Gets the area of the frame of a window (FenestrationSurface:Detailed)

public static double GetFrameArea(this IdfObject idfObject, bool includeMultiplier = true)

Parameters

idfObject IdfObject

IdfObject of type FenestrationSurface:Detailed

includeMultiplier bool

Include the window multiplers to calculate the total area

Returns

double

GetGlassArea(IdfObject, bool)

Get the area of a window surface without the frame (but with dividers)

public static double GetGlassArea(this IdfObject idfObject, bool includeMultiplier = true)

Parameters

idfObject IdfObject
includeMultiplier bool

Returns

double

Surface area (m²).

GetHeight(IdfObject)

Get the height of any opaque, shading or window surface

public static double GetHeight(this IdfObject idfObject)

Parameters

idfObject IdfObject

Returns

double

Surface height (m).

GetInsulationResistance(IdfObject)

Gets the thermal resistance of the most insulating layer

public static double GetInsulationResistance(this IdfObject idf)

Parameters

idf IdfObject

Returns

double

GetMaxZ(IdfObject)

Gets the maximum Z value for this idfObject (must be a surface)

public static double GetMaxZ(this IdfObject idfObject)

Parameters

idfObject IdfObject

Detailed Surface idfObject

Returns

double

Maximum Z rounded to the mm

GetMinZ(IdfObject)

Gets the minimum Z value for this idfObject (must be a surface)

public static double GetMinZ(this IdfObject idfObject)

Parameters

idfObject IdfObject

Detailed Surface idfObject

Returns

double

Minimum Z rounded to the mm

GetNetArea(IdfObject)

Get the area of a surface discounting windows area.

public static double GetNetArea(this IdfObject idfObject)

Parameters

idfObject IdfObject

Idf Object

Returns

double

Net area (m²).

GetNetGlassArea(IdfObject, bool)

Get the glass area of a window surface without the frame and dividers

public static double GetNetGlassArea(this IdfObject idfObject, bool includeMultiplier = true)

Parameters

idfObject IdfObject
includeMultiplier bool

Returns

double

Surface area (m²).

GetOpeningArea(IdfObject)

Get the area of a surface occuppied by windows.

public static double GetOpeningArea(this IdfObject idfObject)

Parameters

idfObject IdfObject

Idf Object

Returns

double

Opening area (m²).

GetOrientation(IdfObject)

Get the orientation of any opaque, shading or window surface

public static Orientation GetOrientation(this IdfObject idf)

Parameters

idf IdfObject

Returns

Orientation

Surface orientation.

GetOrientationCTE(IdfObject)

public static OrientacionCTE GetOrientationCTE(this IdfObject idf)

Parameters

idf IdfObject

Returns

OrientacionCTE

GetOutdoorAirFlow(IdfObject)

Gets Zone Outdoor airflow rate (m³/s)

public static double GetOutdoorAirFlow(this IdfObject idfZoneObject)

Parameters

idfZoneObject IdfObject

Idf Object

Returns

double

Outdoor airflow (m³/s)

GetPerimeter(IdfObject)

Gets the perimeter of a surface

public static double GetPerimeter(this IdfObject idfObject)

Parameters

idfObject IdfObject

Detailed Surface idfObject

Returns

double

GetPerimeterAt(IdfObject, double)

Gets the perimeter for the segments of a surface at a certain height

public static double GetPerimeterAt(this IdfObject idfObject, double height)

Parameters

idfObject IdfObject

Detailed Surface idfObject

height double

Height

Returns

double

GetResistance(IdfObject)

Gets the surface-to-surface resistance of a Construction idf object.

public static double GetResistance(this IdfObject idf)

Parameters

idf IdfObject

Construction Idf Object

Returns

double

Resistance (m²·K/W)

GetTilt(IdfObject)

Get the tilt of any opaque, shading or window surface

public static double GetTilt(this IdfObject idfObject)

Parameters

idfObject IdfObject

Idf Object

Returns

double

Surface tilt (deg).

GetVolume(IdfObject, bool)

Get the volume of a zone

public static double GetVolume(this IdfObject idfObject, bool includeMultiplier = true)

Parameters

idfObject IdfObject

idfObject of type Zone

includeMultiplier bool

Returns

double

Zone volume

GetWidth(IdfObject)

Get the width of any opaque, shading or window surface

public static double GetWidth(this IdfObject idfObject)

Parameters

idfObject IdfObject

Returns

double

Surface width (m).

GetZoneAirLoop(IdfReader, string)

Gets the airloop name a zone belongs to.

public static string GetZoneAirLoop(this IdfReader idf, string zone)

Parameters

idf IdfReader

IdfReader

zone string

Zone name.

Returns

string

Airloop name.

InvertSchedule(IdfObject, string)

Adds a schedule appending "_Inverted" to the name where all values are inverted (if 0 then 1 and if different from 0 then 0)

public static void InvertSchedule(this IdfObject idfSchedule, string newName = "")

Parameters

idfSchedule IdfObject

Idf schedule object to invert

newName string

Optional. Name is changed into this.

ScaleWindow(IdfObject, double)

Scales a window by a certain area ratio

public static void ScaleWindow(this IdfObject window, double scale)

Parameters

window IdfObject

FenestrationSurface:Detailed idfObject

scale double

area ratio for scaling