# Path: eppy/constructions/thermal_properties.py
# INSIDE_FILM_R = 0.12
# OUTSIDE_FILM_R = 0.03
# def rvalue(ddtt):
# def ufactor(ddtt):
# def ufactor_ip(ddtt):
# def rvalue_ip(ddtt):
# def heatcapacity(ddtt):
# 
# Path: eppy/geometry/surface.py
# def area(poly):
# def unit_normal(pt_a, pt_b, pt_c):
# def dist(pt1, pt2):
# def width(poly):
# def height(poly):
# def angle2vecs(vec1, vec2):
# def azimuth(poly):
# def true_azimuth(bldg_north, zone_rel_north, surf_azimuth):
# def tilt(poly):


import itertools
import eppy.fanpower
from itertools import zip_longest
from eppy.constructions import thermal_properties
from eppy.geometry import surface as g_surface
    """return building name"""
    idf = ddtt.theidf
    building = idf.idfobjects["building".upper()][0]
    return building.Name


def zonesurfaces(ddtt):
    """return al list of surfaces that belong to the zone"""
    kwargs = {"fields": ["Zone_Name"], "iddgroups": ["Thermal Zones and Surfaces"]}
    return ddtt.getreferingobjs(**kwargs)


def subsurfaces(ddtt):
    """return al list of surfaces that belong to the zone"""
    kwargs = {
        "fields": ["Building_Surface_Name"],
        "iddgroups": ["Thermal Zones and Surfaces"],
    }
    return ddtt.getreferingobjs(**kwargs)


def rvalue(ddtt):
    return thermal_properties.rvalue(ddtt)


def ufactor(ddtt):
    return thermal_properties.ufactor(ddtt)


def ufactor_ip(ddtt):

# Path: eppy/constructions/thermal_properties.py
# INSIDE_FILM_R = 0.12
# OUTSIDE_FILM_R = 0.03
# def rvalue(ddtt):
# def ufactor(ddtt):
# def ufactor_ip(ddtt):
# def rvalue_ip(ddtt):
# def heatcapacity(ddtt):
# 
# Path: eppy/geometry/surface.py
# def area(poly):
# def unit_normal(pt_a, pt_b, pt_c):
# def dist(pt1, pt2):
# def width(poly):
# def height(poly):
# def angle2vecs(vec1, vec2):
# def azimuth(poly):
# def true_azimuth(bldg_north, zone_rel_north, surf_azimuth):
# def tilt(poly):


# Path: eppy/function_helpers.py
import itertools
import eppy.fanpower
from itertools import zip_longest
from eppy.constructions import thermal_properties
from eppy.geometry import surface as g_surface

    """return building name"""
    idf = ddtt.theidf
    building = idf.idfobjects["building".upper()][0]
    return building.Name


def zonesurfaces(ddtt):
    """return al list of surfaces that belong to the zone"""
    kwargs = {"fields": ["Zone_Name"], "iddgroups": ["Thermal Zones and Surfaces"]}
    return ddtt.getreferingobjs(**kwargs)


def subsurfaces(ddtt):
    """return al list of surfaces that belong to the zone"""
    kwargs = {
        "fields": ["Building_Surface_Name"],
        "iddgroups": ["Thermal Zones and Surfaces"],
    }
    return ddtt.getreferingobjs(**kwargs)


def rvalue(ddtt):
    return thermal_properties.rvalue(ddtt)


def ufactor(ddtt):
    return thermal_properties.ufactor(ddtt)


def ufactor_ip(ddtt):

    return thermal_properties.ufactor_ip(ddtt)