
    'g<1                     `    d dl Zd Zd Zd Zd Zd dl Zd Zd Zd Zd	 Z	d dl Zd dl Zd
 Z
d Zy)    Nc                  l   t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      d} | S )u   
    Retorna os diferenciais de temperatura para paredes internas com áreas climatizadas e não climatizadas,
    agora com 13 valores para representar as 13 horas do dia (06:00 às 18:00).
    )            r   r   r   r   r   r   r            ?)r   r   r      r   r   r   r   r   r   r   r         @)r   r   r   r   r   r   r   r   r   r   r   r   r   interna_nao_climatizada_norteinterna_nao_climatizada_sulinterna_nao_climatizada_lesteinterna_nao_climatizada_oesteinterna_climatizada_norteinterna_climatizada_sulinterna_climatizada_lesteinterna_climatizada_oestenparray)diferenciais_temperaturas    4C:\grfgraph\atual\cag\calculotermica\ctermicacalc.py&obter_diferenciais_temperatura_paredesr      s|     *,2[)\')xx0Y'Z)+2[)\)+2[)\%'XX.U%V#%88,S#T%'XX.U%V%'XX.U%V
  $#    c                     t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      d} | S )u   
    Retorna os diferenciais de temperatura devido à insolação para cada orientação,
    agora com 13 valores para representar as 13 horas do dia (06:00 às 18:00).
    )r         @      @      @      @r   r   r   r          @r	         ?      ?)r   r   r   r          @r    r   r   r   r   r!   r	   r"   )r   r   r    r$         @r$   r    r   r   r   r   r!   r	   )r   r   r   r   r   r   r   r   r   r   r   r   r   )r   r    r$   r%         @r%   r$   r    r   r   r   r   r!   )r    r$   r%   r&         @r&   r%   r$   r    r   r   r   r   )parede_clara_norteparede_media_norteparede_escura_norteparede_clara_sulparede_media_sulparede_escura_sulparede_clara_lesteparede_media_lesteparede_escura_lesteparede_clara_oesteparede_media_oesteparede_escura_oester   )diferenciais_insolacaos    r   /obter_diferenciais_temperatura_insolacao_pareder5      s     !hh'hi hh'hi!xx(ijHH%LMHH%LMXX&MN hh'hi hh'hi!xx(ij hh'hi hh'hi!xx(ij( "!r   c                     t        j                  g d      t        j                  g d      t        j                  dgdz        t        j                  d      t        j                  d      t        j                  d      t        j                  g d      t        j                  g d      t        j                  dgdz        t        j                  g d      t        j                  g d      t        j                  dgdz        d} | S )u   
    Retorna os diferenciais de temperatura devido à insolação para vidros em diferentes orientações,
    considerando variações para materiais e características específicas de cada tipo.
    r!   r   r   r   r   r   r!   r   r   r   r!   r	   r"   r	   r!   r   r   r   r!   r	   r!   r   r!   r	   r"   r#   r"      r   r   r   r   r   r   r   r   r   r   r   r!   r	   )vidro_transparente_nortevidro_cortina_clara_nortevidro_blackout_preto_nortevidro_transparente_sulvidro_cortina_clara_sulvidro_blackout_preto_sulvidro_transparente_lestevidro_cortina_clara_lestevidro_blackout_preto_lestevidro_transparente_oestevidro_cortina_clara_oestevidro_blackout_preto_oester   r   zerosdiferenciais_insolacao_vidross    r   /obter_diferenciais_temperatura_insolacao_vidrosrK   <   s     %'HH-n$o%'XX.o%p&(hhurz&:"$((2,#%88B<$&HHRL$&HH-n$o%'XX.o%p&(hhurz&:$&HH-n$o%'XX.o%p&(hhurz&:%! )(r   c                  |   t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  dgdz        t        j                  dgdz        t        j                  dgdz        t        j                  dgdz        d} | S )ur   
    Retorna os diferenciais de temperatura para vidros internos com áreas climatizadas e não climatizadas.
    r7   r8   r:   r"   r9   )interno_nao_climatizado_norteinterno_nao_climatizado_sulinterno_nao_climatizado_lesteinterno_nao_climatizado_oesteinterno_climatizado_norteinterno_climatizado_sulinterno_climatizado_lesteinterno_climatizado_oester   )diferenciais_temperatura_vidross    r   %obter_diferenciais_temperatura_vidrosrV   R   s    
 *,2s)t')xx0q'r)+2s)t)+2s)t%'XXsebj%9#%88SEBJ#7%'XXsebj%9%'XXsebj%9	'# +*r   c                  x   t        j                  g d      t        j                  d      t        j                  g d      t        j                  g d      t        j                  dgdz        t        j                  dgdz        t        j                  dgdz        t        j                  dgdz        d} | S )ul   
    Retorna os diferenciais de temperatura para portas de madeira em diferentes orientações e tipos.
    r8   r9   )?ffffff@ffffff@ffffff
@rZ   rY   rX   rY   rZ   rY   rX   ?皙?r7   r"   r   rG   ) diferenciais_temperatura_madeiras    r   ,obter_diferenciais_temperatura_porta_madeirar_   n   s     *,2s)t')xx|)+2s)t)+2s)t%'XXsebj%9#%88SEBJ#7%'XXsebj%9%'XXsebj%9($ ,+r   c                  x   t        j                  g d      t        j                  d      t        j                  g d      t        j                  g d      t        j                  dgdz        t        j                  dgdz        t        j                  dgdz        t        j                  dgdz        d} | S )uj   
    Retorna os diferenciais de temperatura para portas de vidro em diferentes orientações e tipos.
    )333333?333333?皙@皙@rc   rb   ra   rb   rc   rb   ra   gffffff?g?r9   )皙? @@@rg   rf   re   rf   rg   rf   re   皙?g333333?)rf   rg   rh   g@rh   rg   rf   rg   rh   rg   rf   re   ri   r"   r   rG   )diferenciais_temperatura_vidros    r   *obter_diferenciais_temperatura_porta_vidrork      s     *,2s)t')xx|)+2s)t)+2s)t%'XXsebj%9#%88SEBJ#7%'XXsebj%9%'XXsebj%9&" *)r   c                     t        j                  g d      t        j                  g d      t        j                  g d      t        j                  d      t        j                  d      t        j                  d      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      d} | S )u   
    Retorna os diferenciais de temperatura devido à insolação para portas de madeira em diferentes orientações,
    considerando variações para materiais e características específicas de cada tipo.
    )rX   rY   rd   g	@rd   rY   rX   rY   rd   rY   rX   r\   r]   r7   )rc   rZ   r[   gffffff@r[   rZ   rc   rZ   r[   rZ   rc   rb   ra   r9   r8   r:   )porta_madeira_clara_norteporta_madeira_media_norteporta_madeira_escura_norteporta_madeira_clara_sulporta_madeira_media_sulporta_madeira_escura_sulporta_madeira_clara_lesteporta_madeira_media_lesteporta_madeira_escura_lesteporta_madeira_clara_oesteporta_madeira_media_oesteporta_madeira_escura_oesterG   )diferenciais_insolacao_madeiras    r   6obter_diferenciais_temperatura_insolacao_porta_madeirarz      s     &(XX.o%p%'XX.o%p&(hh/p&q#%88B<#%88B<$&HHRL%'XX.o%p%'XX.o%p&(hh/p&q%'XX.o%p%'XX.o%p&(hh/p&q&"$ *)r   c                     t        j                  g d      t        j                  g d      t        j                  dgdz        t        j                  d      t        j                  d      t        j                  d      t        j                  g d      t        j                  g d      t        j                  dgdz        t        j                  g d      t        j                  g d      t        j                  dgdz        d} | S )u   
    Retorna os diferenciais de temperatura devido à insolação para portas de vidro em diferentes orientações,
    considerando variações para materiais e características específicas de cada tipo.
    r7   r8   r"   r9   r:   )porta_vidro_transparente_norteporta_vidro_cortina_clara_norteporta_vidro_blackout_norteporta_vidro_transparente_sulporta_vidro_cortina_clara_sulporta_vidro_blackout_sulporta_vidro_transparente_lesteporta_vidro_cortina_clara_lesteporta_vidro_blackout_lesteporta_vidro_transparente_oesteporta_vidro_cortina_clara_oesteporta_vidro_blackout_oesterG   rI   s    r   6obter_diferenciais_temperatura_insolacao_portas_vidrosr      s     +-((3t*u+-884u+v&(hhurz&:(*)+"$&HHRL*,((3t*u+-884u+v&(hhurz&:*,((3t*u+-884u+v&(hhurz&:%!$ )(r   c                  h    t        j                  g d      t        j                  dgdz        d} | S )u   
    Retorna os diferenciais de temperatura para telhados de diferentes tipos e condições
    (externo, interno não climatizado, interno climatizado).
    )r%         @      "@      &@      *@g      -@      .@      +@r   r   g      @r'   r%   r	   r9   )interno_nao_climatizadointerno_climatizador   ) diferenciais_temperatura_telhados    r   +obter_diferenciais_temperatura_tipo_telhador      s5     $&88,s#t  "xx
3($ ,+r   c                      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      t        j                  g d      d} | S )uk   
    Retorna os diferenciais de temperatura devido à insolação para tipos de telhados específicos.
    )      !@      '@      ,@      1@      3@g     5@      6@g      4@r   r   r         #@r   )      (@g      /@r   g      7@      ;@g      >@g      ?@g      <@g      8@r   r   r   r   )r   r   r   r   g      0@      2@g     2@g     0@r         %@r   g       @r   )r   r   r         @@      B@g      C@g     C@r   r   g      :@r   r   r   )r    r%   r   r   g      $@r   r   r   r   r   r&   r$   r    )telhado_laje_claratelhado_laje_escuratelhado_americanatelhado_metal_simplestelhado_metal_sanduicher   )diferenciais_insolacao_telhados    r   0obter_diferenciais_temperatura_insolacao_telhador      s]     !hh'rs  "xx(vw  XX&op "$*x!y $&88,q#r&"" *)r   )numpyr   r   r5   rK   rV   r_   rk   rz   r   r   r    r   r   <module>r      sI    $&"H),+4 ,(*(*4)D  , *r   