|
void | cs_thermal_table_set (const char *material, const char *method, const char *reference, cs_phys_prop_thermo_plane_type_t thermo_plane, int temp_scale) |
| Define thermal table. More...
|
|
void | cs_thermal_table_finalize (void) |
| finalize thermal table. More...
|
|
const char * | cs_physical_properties_get_coolprop_backend (void) |
| Get backend set for CoolProp. More...
|
|
void | cs_physical_properties_set_coolprop_backend (const char *backend) |
| Set backend for CoolProp. More...
|
|
void | cs_phys_prop_compute (cs_phys_prop_type_t property, cs_lnum_t n_vals, cs_lnum_t var1_stride, cs_lnum_t var2_stride, const cs_real_t var1[], const cs_real_t var2[], cs_real_t val[]) |
| Compute a physical property. More...
|
|
void | cs_phys_prop_freesteam (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[]) |
| Compute properties with Freesteam in a defined thermal plane. More...
|
|
cs_real_t | cs_physical_property_get_ref_value (const char *name) |
| Get reference value of a physical property. More...
|
|
void | cs_physical_property_set_ref_value (const char *name, const cs_real_t val) |
| Set reference value for a physical property. More...
|
|
void | cs_physical_property_get_zone_values (const char *name, const char *zname, cs_real_t retval[]) |
| Get property reference values for a given zone. More...
|
|
void | cs_physical_property_create (const char *name, const int dim, const cs_real_t refval) |
| Create a physical property. More...
|
|
void | cs_physical_property_define_from_value (const char *name, const char *zname, const int dim, const cs_real_t val) |
| Add a property definition on a given zone using a single value. More...
|
|
void | cs_physical_property_define_from_values (const char *name, const char *zname, const int dim, cs_real_t vals[]) |
| Add a property multi-diemnsional definition on a given zone. More...
|
|
void | cs_physical_property_define_from_field (const char *name, int type_flag, int location_id, int dim, bool has_previous) |
| Add a property definition based on a cs_field_t. More...
|
|
int | cs_physical_property_field_id_by_name (const char *name) |
| Return id of field associated to property. More...
|
|
void | cs_physical_property_update_zone_values (const char *name, const char *zname, const cs_real_t vals[]) |
| Update reference values for a property on a given zone. More...
|
|
void cs_physical_properties_set_coolprop_backend |
( |
const char * |
backend | ) |
|
Set backend for CoolProp.
Ignored if CoolProp is not used.
When called from user-defined functions, this should be set from cs_user_model rather than cs_user_parameters, as some reference property values may be computed before calling cs_user_parameters.
A few primary backends in CoolProp are:
- "HEOS": The Helmholtz Equation of State backend for use with pure and pseudo-pure fluids, and mixtures, all of which are based on multi-parameter Helmholtz Energy equations of state.
- "REFPROP": only if REFPROP library is available (set ALTERNATIVE_REFPROP_PATH environment variable if needed)
- "INCOMP": Incompressible backend (for pure fluids)
- "TTSE&XXXX": TTSE backend, with tables generated using the XXXX backend where XXXX is one of the base backends("HEOS", "REFPROP", etc.)
- "BICUBIC&XXXX": Bicubic backend, with tables generated using the XXXX backend where XXXX is one of the base backends("HEOS", "REFPROP", etc.)
- Parameters
-
Ignored if CoolProp is not used.
When called from user-defined functions, this should be set from cs_user_model rather than cs_user_parameters, as some reference property values may be computed before calling cs_user_parameters.
A few primary backends in CoolProp are:
- "HEOS": The Helmholtz Equation of State backend for use with pure and pseudo-pure fluids, and mixtures, all of which are based on multi-parameter Helmholtz Energy equations of state.
- "REFPROP": only if REFPROP library is available (set ALTERNATIVE_REFPROP_PATH environment variable if needed)
- "INCOMP": Incompressible backend (for pure fluids)
- "TTSE&XXXX": TTSE backend, with tables generated using the XXXX backend where XXXX is one of the base backends("HEOS", "REFPROP", etc.)
- "BICUBIC&XXXX": Bicubic backend, with tables generated using the XXXX backend where XXXX is one of the base backends("HEOS", "REFPROP", etc.)
- Parameters
-
[in] | backend | backend name; "HEOS" used if NULL. |