a
    7b                     @   sl   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 ddl
mZ ejZG d	d
 d
ejZdS )    )print_function)*N)platformexit)path   )thermo)cubicc                       s*   e Zd ZdZ fddZdddZ  ZS )qcubicz
    Interface to cubic
    c                    s(   t t|   t| j| dd| _dS )z=
        Initialize cubic specific function pointers
        Z
eoslibinitZinit_quantum_cubicN)superr
   __init__getattrtpZget_export_nameeoslibinit_init_quantum_cubic)self	__class__ c/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/pyctp/quantum_cubic.pyr      s    zqcubic.__init__vdWc                 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 )a  Initialize Quantum Cubic Peng-Robinson equation of state by Aasen et al.
        (10.1016/j.fluid.2020.112790)

        Args:
            comps (str): Comma separated list of component names
            mixing (str, optional): Mixture model. Defaults to "vdW".
        asciiN ,)activatec_char_pencode
c_len_typelenr   argtypesrestypemaxsplitZnc)r   compsZmixingZmixing_cZ
mixing_lenZcomp_string_cZcomp_string_lenr   r   r   init%   s"    zqcubic.init)r   )__name__
__module____qualname____doc__r   r#   __classcell__r   r   r   r   r
      s   r
   )
__future__r   ctypesZnumpynpsysr   r   osr    r   r	   r   r
   r   r   r   r   <module>   s   