My Project
programmer's documentation
|
#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"
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... | |
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.
[in] | property | property queried |
[in] | n_vals | number of values |
[in] | var1_stride | stride between successive values of var1 |
[in] | var2_stride | stride between successive values of var2 |
[in] | var1 | values on first plane axis |
[in] | var2 | values on second plane axis |
[out] | val | resulting property values |
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.
[in] | thermo_plane | thermodynamic plane |
[in] | property | property queried |
[in] | n_vals | number of values |
[in] | var1 | values on first plane axis |
[in] | var2 | values on second plane axis |
[out] | val | resulting property values |
void cs_thermal_table_finalize | ( | void | ) |
finalize thermal table.
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.