programmer's documentation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions | Variables
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 <dlfcn.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:

Macros

#define DIR_SEPARATOR   '/'
 

Typedefs

typedef void( cs_eos_create_t )(char *EOSMethod, char *EOSRef)
 
typedef void( cs_eos_destroy_t )(void)
 
typedef void( cs_phys_prop_eos_t )(cs_phys_prop_thermo_plane_type_t thermo_plane, cs_phys_prop_type_t property, const cs_lnum_t n_vals, double var1[], double var2[], cs_real_t val[])
 

Functions

void cs_thermal_table_set (const char *material, const char *method, const char *phas, const char *reference, cs_phys_prop_thermo_plane_type_t thermo_plane, const 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, const cs_lnum_t n_vals, const cs_real_t var1[], const cs_real_t var2[], cs_real_t val[])
 Compute a 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...
 

Variables

cs_thermal_table_t * cs_glob_thermal_table = NULL
 

Macro Definition Documentation

#define DIR_SEPARATOR   '/'

Typedef Documentation

typedef void( cs_eos_create_t)(char *EOSMethod, char *EOSRef)
typedef void( cs_eos_destroy_t)(void)
typedef void( cs_phys_prop_eos_t)(cs_phys_prop_thermo_plane_type_t thermo_plane, cs_phys_prop_type_t property, const cs_lnum_t n_vals, double var1[], double var2[], cs_real_t val[])

Function Documentation

void cs_phys_prop_compute ( 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 a property.

Parameters
[in]propertyproperty queried
[in]n_valsnumber of values
[in]var1values on first plane axis
[in]var2values on second plane axis
[out]valresulting 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.

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
void cs_thermal_table_finalize ( void  )

finalize thermal table.

void cs_thermal_table_set ( const char *  material,
const char *  method,
const char *  phas,
const char *  reference,
cs_phys_prop_thermo_plane_type_t  thermo_plane,
const int  temp_scale 
)

Define thermal table.

Variable Documentation

cs_thermal_table_t* cs_glob_thermal_table = NULL