My Project
programmer's documentation
Functions
cs_physical_properties.c File Reference
#include "cs_defs.h"
#include <assert.h>
#include <math.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "bft_error.h"
#include "bft_mem.h"
#include "bft_printf.h"
#include "cs_physical_properties.h"
Include dependency graph for cs_physical_properties.c:

Functions

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...
 
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...
 

Function Documentation

◆ cs_phys_prop_compute()

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.

For values var1 and var2, we can use a stride so that accesses for a given element with id i will be of the form: var[i*stride]; this allows regular access with stride 1, and access to constant variables stored as a single-valued array with a stride of 0.

Parameters
[in]propertyproperty queried
[in]n_valsnumber of values
[in]var1_stridestride between successive values of var1
[in]var2_stridestride between successive values of var2
[in]var1values on first plane axis
[in]var2values on second plane axis
[out]valresulting property values

◆ cs_phys_prop_freesteam()

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.

Parameters
[in]thermo_planethermodynamic plane
[in]propertyproperty queried
[in]n_valsnumber of values
[in]var1values on first plane axis
[in]var2values on second plane axis
[out]valresulting property values

◆ cs_thermal_table_finalize()

void cs_thermal_table_finalize ( void  )

finalize thermal table.

◆ cs_thermal_table_set()

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.