#include "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_error.h"#include "bft_mem.h"#include "bft_printf.h"#include "cs_fp_exception.h"#include "cs_coolprop.hxx"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 = NULL |
| void cs_coolprop_finalize | ( | void | ) |
Free state for Coolprop plugin.
| 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.
| [in] | coolprop_material | CoolProp material |
| [in] | coolprop_backend | CoolProp backend ("HEOS" by default, "SRK" for cubic, "TTSE&HEOS" or "BICUBIC&HEOS" for tabulated) |
| [in] | thermo_plane | type of thermal plane |
| [in] | property | type of property to compute |
| (in] | n_vals size of variable and property arrays | |
| [in] | var1 | first variable of thermodynamic plane (pressure) |
| [in] | var2 | second variable of thermodynamic plane |
| [out] | val | computed property values |
|
static |
|
static |