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)	saftvrmiec                       s*   e Zd ZdZ fddZdddZ  ZS )	
saftvrqmiez#
    Interface to SAFT-VRQ Mie
    c                    s(   t t|   t| j| dd| _dS )z=
        Initialize cubic specific function pointers
        Z
eoslibinitZinit_quantum_saftvrmieN)superr
   __init__getattrtpZget_export_name#s_eoslibinit_init_quantum_saftvrmie)self	__class__ `/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/pyctp/saftvrqmie.pyr      s    zsaftvrqmie.__init__r   Defaultc           	      C   s   |    t|d}tt|}t|}t|d}tt|}ttttttg| j_d| j_	| |t
|||| tt|dt|d| _dS )u  Initialize SAFT-VRQ Mie model in thermopack

        Equation of state and force fields for Feynman--Hibbs-corrected Mie fluids. I. Application to pure helium, neon, hydrogen, and deuterium
        (doi.org/10.1063/1.5111364
        Equation of state and force fields for Feynman–Hibbs-corrected Mie fluids. II. Application to mixtures of helium, neon, hydrogen, and deuterium
        (doi.org/10.1063/1.5136079)

        Args:
            comps (str): Comma separated list of component names
            feynman_hibbs_order (int): Order of Feynman-Hibbs quantum corrections (1 or 2 supported). Defaults to 1.
            parameter_reference (str, optional): Which parameters to use?. Defaults to "Default".
        asciiN ,)activatec_char_pencode
c_len_typelenc_intPOINTERr   argtypesrestypebyrefmaxsplitZnc)	r   compsZfeynman_hibbs_orderZparameter_referenceZcomp_string_cZcomp_string_lenZfh_cZref_string_cZref_string_lenr   r   r   init$   s(    zsaftvrqmie.init)r   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   