B
    {^/                 @   sL   d dl Zd dlmZ d dlmZ d dlZdd Z	dd Z
ejdfddZdS )	    Nc          	   C   sr   t jtt jt j t jd | t j|  d   t jd t jt jt j d     t jt j d|  dt j     S )N      )	ctrnpexpZA0RTeqZTrZQd)T r   K/Users/vegardjervell/Documents/6_semester/matmod/matmod11a copy/c_curves.pyt_star_func   s    
"
r   c             C   s8   t |}|ttd|  tdtj  dtj  S )Nr   )r   r   powerlogr   ZXcn)Xr
   Zt_starr   r   r   t_func_isotherm   s    r   i  c          
   C   sH  t jdddd}t | |dd }tjddgd td	}d
}||d }xt|D ]l}|d
kr||d }tjt|||d |dt	t
|d dd d}qRtjt|||d |d |d7 }qRW |dkr| dk rtjdtt|d |gtjd tjd gdddd td t  td td td t  d S )Ng?r   )stepd   i        )figsizeZplasma_r   r   g333333?zX = r   :)colorlabel	linestyle)r   i  i  greenz--z$T_{eq}$)r   r   r   r   zTime [s]u   Temperature [℃]z[T-t curves for different fractions transformed, distance between lines is $\Delta X = 0.05$)r   arangelinspacepltfigurecmget_cmapplotr   strroundmaxr   r	   xscalelegendxlabelylabeltitleshow)T_minT_maxZX_valsZT_linecmapZlabel_counterr   r   r   r   r   plot_C_curves!   s.    

*



r2   )numpyr   matplotlib.pyplotpyplotr!   Zmatplotlib.cmr#   	constantsr   r   r   ZT_min_c_curver2   r   r   r   r   <module>   s   