U
    }N€_U  ã                   @   s`   d dl mZ d dlT d dlZd dlmZmZ d dlm	Z	 ddl
mZ ejZG dd	„ d	ejƒZdS )
é    )Úprint_function)Ú*N)ÚplatformÚexit)Úpathé   )Úthermoc                       s(   e Zd ZdZ‡ fdd„Zdd„ Z‡  ZS )Ú
multiparamz)
    Interface to multiparameter EOS
    c                    s(   t t| ƒ ¡  t| j|  dd¡ƒ| _dS )zJ
        Initialize multiparameter EOS specific function pointers
        Ú
eoslibinitZinit_multiparameterN)Úsuperr	   Ú__init__ÚgetattrÚtpÚget_export_nameÚeoslibinit_init_multiparameter)Úself©Ú	__class__© úX/home/ubuntu/Home/Documents/9_semester/soret_model/pycThermopack/pyctp/multiparameter.pyr      s    zmultiparam.__init__c                 C   s€   t | d¡ƒ}tt|ƒƒ}t | d¡ƒ}tt|ƒƒ}t t ttg| j_d| j_|  ||||¡ tt| d¡ƒt| d¡ƒƒ| _	dS )z¼Initialize multiparameter EOS

        Args:
            comps (str): Comma separated list of component names
            eos (str): Equation of state. (NIST_MEOS, MBWR32, MBWR19)
        ÚasciiNú ú,)
Úc_char_pÚencodeÚ
c_len_typeÚlenr   ÚargtypesÚrestypeÚmaxÚsplitÚnc)r   ÚcompsÚeosÚeos_cÚeos_lenÚcomp_string_cÚcomp_string_lenr   r   r   Úinit"   s     ýýzmultiparam.init)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r(   Ú__classcell__r   r   r   r   r	      s   r	   )Ú
__future__r   ÚctypesÚnumpyÚnpÚsysr   r   Úosr   Ú r   r   Ú
thermopackr	   r   r   r   r   Ú<module>   s   