1 #ifndef __CS_PHYSICAL_PROPERTIES_H__
2 #define __CS_PHYSICAL_PROPERTIES_H__
81 const char *reference,
#define BEGIN_C_DECLS
Definition: cs_defs.h:509
double cs_real_t
Floating-point value.
Definition: cs_defs.h:319
#define END_C_DECLS
Definition: cs_defs.h:510
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:313
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.
Definition: cs_physical_properties.c:658
void cs_physical_property_set_ref_value(const char *name, const cs_real_t val)
Set reference value for a physical property.
Definition: cs_physical_properties.c:1007
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.
Definition: cs_physical_properties.c:1141
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.
Definition: cs_physical_properties.c:1229
void cs_physical_properties_set_coolprop_backend(const char *backend)
Set backend for CoolProp.
Definition: cs_physical_properties.c:495
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.
Definition: cs_physical_properties.c:542
cs_phys_prop_thermo_plane_type_t
Definition: cs_physical_properties.h:40
@ CS_PHYS_PROP_PLANE_TX
Definition: cs_physical_properties.h:48
@ CS_PHYS_PROP_PLANE_PS
Definition: cs_physical_properties.h:44
@ CS_PHYS_PROP_PLANE_TS
Definition: cs_physical_properties.h:47
@ CS_PHYS_PROP_PLANE_PT
Definition: cs_physical_properties.h:43
@ CS_PHYS_PROP_PLANE_PV
Definition: cs_physical_properties.h:46
@ CS_PHYS_PROP_PLANE_PH
Definition: cs_physical_properties.h:42
@ CS_PHYS_PROP_PLANE_PU
Definition: cs_physical_properties.h:45
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.
Definition: cs_physical_properties.c:1102
cs_real_t cs_physical_property_get_ref_value(const char *name)
Get reference value of a physical property.
Definition: cs_physical_properties.c:983
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.
Definition: cs_physical_properties.c:309
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.
Definition: cs_physical_properties.c:1178
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.
Definition: cs_physical_properties.c:1030
void cs_physical_property_create(const char *name, const int dim, const cs_real_t refval)
Create a physical property.
Definition: cs_physical_properties.c:1083
cs_phys_prop_type_t
Definition: cs_physical_properties.h:52
@ CS_PHYS_PROP_THERMAL_CONDUCTIVITY
Definition: cs_physical_properties.h:64
@ CS_PHYS_PROP_SPECIFIC_VOLUME
Definition: cs_physical_properties.h:60
@ CS_PHYS_PROP_TEMPERATURE
Definition: cs_physical_properties.h:55
@ CS_PHYS_PROP_PRESSURE
Definition: cs_physical_properties.h:54
@ CS_PHYS_PROP_ISOCHORIC_HEAT_CAPACITY
Definition: cs_physical_properties.h:59
@ CS_PHYS_PROP_INTERNAL_ENERGY
Definition: cs_physical_properties.h:62
@ CS_PHYS_PROP_QUALITY
Definition: cs_physical_properties.h:63
@ CS_PHYS_PROP_DENSITY
Definition: cs_physical_properties.h:61
@ CS_PHYS_PROP_ENTHALPY
Definition: cs_physical_properties.h:56
@ CS_PHYS_PROP_SPEED_OF_SOUND
Definition: cs_physical_properties.h:66
@ CS_PHYS_PROP_ISOBARIC_HEAT_CAPACITY
Definition: cs_physical_properties.h:58
@ CS_PHYS_PROP_ENTROPY
Definition: cs_physical_properties.h:57
@ CS_PHYS_PROP_DYNAMIC_VISCOSITY
Definition: cs_physical_properties.h:65
int cs_physical_property_field_id_by_name(const char *name)
Return id of field associated to property.
Definition: cs_physical_properties.c:1206
const char * cs_physical_properties_get_coolprop_backend(void)
Get backend set for CoolProp.
Definition: cs_physical_properties.c:458
void cs_thermal_table_finalize(void)
finalize thermal table.
Definition: cs_physical_properties.c:407