9.0
general documentation
Loading...
Searching...
No Matches
cs_coolprop.cxx File Reference
#include "base/cs_defs.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include "CoolPropLib.h"
#include "bft/bft_error.h"
#include "bft/bft_printf.h"
#include "base/cs_fp_exception.h"
#include "base/cs_mem.h"
#include "cs_coolprop.hxx"
Include dependency graph for cs_coolprop.cxx:

Functions

void cs_phys_prop_coolprop (char *coolprop_material, const char *coolprop_backend, cs_phys_prop_thermo_plane_type_t thermo_plane, cs_phys_prop_type_t property, const cs_lnum_t n_vals, const cs_real_t var1[], const cs_real_t var2[], cs_real_t val[])
 Computes physical properties in (P,h,Yi) for compressible flow.
void cs_coolprop_finalize (void)
 Free state for Coolprop plugin.

Variables

static int _n_states = 0
static cs_coolprop_state_t * _states = nullptr

Function Documentation

◆ cs_coolprop_finalize()

void cs_coolprop_finalize ( void )

Free state for Coolprop plugin.

◆ cs_phys_prop_coolprop()

void cs_phys_prop_coolprop ( char * coolprop_material,
const char * coolprop_backend,
cs_phys_prop_thermo_plane_type_t thermo_plane,
cs_phys_prop_type_t property,
const cs_lnum_t n_vals,
const cs_real_t var1[],
const cs_real_t var2[],
cs_real_t val[] )

Computes physical properties in (P,h,Yi) for compressible flow.

Parameters
[in]coolprop_materialCoolProp material
[in]coolprop_backendCoolProp backend ("HEOS" by default, "SRK" for cubic, "TTSE&HEOS" or "BICUBIC&HEOS" for tabulated)
[in]thermo_planetype of thermal plane
[in]propertytype of property to compute
(in]n_vals size of variable and property arrays
[in]var1first variable of thermodynamic plane (pressure)
[in]var2second variable of thermodynamic plane
[out]valcomputed property values

Variable Documentation

◆ _n_states

int _n_states = 0
static

◆ _states

cs_coolprop_state_t* _states = nullptr
static