Base electrical model data. More...
#include "cs_defs.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "cs_field.h"
#include "cs_field_default.h"
#include "cs_file.h"
#include "cs_log.h"
#include "cs_parall.h"
#include "cs_math.h"
#include "cs_mesh_quantities.h"
#include "cs_mesh_location.h"
#include "cs_time_step.h"
#include "cs_parameters.h"
#include "cs_field_pointer.h"
#include "cs_gradient.h"
#include "cs_field_operator.h"
#include "cs_physical_constants.h"
#include "cs_physical_model.h"
#include "cs_thermal_model.h"
#include "cs_turbulence_model.h"
#include "cs_gui_specific_physics.h"
#include "cs_gui_util.h"
#include "cs_post.h"
#include "cs_prototypes.h"
#include "cs_elec_model.h"
Functions | |
void | elini1 (cs_real_t *diftl0) |
void | elflux (int *iappel) |
void | elthht (int *mode, cs_real_t *ym, cs_real_t *enthal, cs_real_t *temp) |
void | ellecd (void) |
void | elphyv (void) |
void | eltssc (const int *isca, cs_real_t *smbrs) |
void | eltsvv (const int *f_id, cs_real_t *smbrv) |
void | eliniv (int *isuite) |
void | elreca (cs_real_t *dt) |
cs_elec_option_t * | cs_get_glob_elec_option (void) |
cs_data_joule_effect_t * | cs_get_glob_transformer (void) |
void | cs_electrical_model_initialize (void) |
void | cs_electrical_model_finalize (void) |
void | cs_electrical_model_specific_initialization (cs_real_t *diftl0) |
void | cs_electrical_properties_read (void) |
void | cs_elec_physical_properties (cs_domain_t *domain) |
void | cs_elec_compute_fields (const cs_mesh_t *mesh, int call_id) |
void | cs_elec_source_terms (const cs_mesh_t *mesh, const cs_mesh_quantities_t *mesh_quantities, int f_id, cs_real_t *smbrs) |
void | cs_elec_source_terms_v (const cs_mesh_t *mesh, const cs_mesh_quantities_t *mesh_quantities, int f_id, cs_real_3_t *smbrv) |
void | cs_elec_add_variable_fields (void) |
void | cs_elec_add_property_fields (void) |
void | cs_elec_fields_initialize (const cs_mesh_t *mesh, int isuite) |
void | cs_elec_scaling_function (const cs_mesh_t *mesh, const cs_mesh_quantities_t *mesh_quantities, cs_real_t *dt) |
void | cs_elec_convert_h_to_t_faces (const cs_real_t h[], cs_real_t t[]) |
Convert enthalpy to temperature at all boundary faces. More... | |
void | cs_elec_convert_t_to_h_cells (const cs_real_t t[], cs_real_t h[]) |
Convert temperature to enthalpy at all cells. More... | |
void | cs_elec_convert_t_to_h_faces (const cs_lnum_t n_faces, const cs_lnum_t face_ids[], const cs_real_t t[], cs_real_t h[]) |
Convert temperature to enthalpy at selected boundary faces. More... | |
void | cs_elec_define_functions (void) |
Create or access function objects specific to electric arcs models. More... | |
Variables | |
const cs_real_t | cs_elec_permvi = 1.2566e-6 |
const cs_real_t | cs_elec_epszer = 8.854e-12 |
Base electrical model data.
Please refer to the electric arcs section of the theory guide for more informations.
void cs_elec_add_property_fields | ( | void | ) |
void cs_elec_add_variable_fields | ( | void | ) |
void cs_elec_compute_fields | ( | const cs_mesh_t * | mesh, |
int | call_id | ||
) |
Convert enthalpy to temperature at all boundary faces.
This handles both user and model enthalpy conversions, so can be used safely whenever conversion is needed.
[in] | h | enthalpy values |
[out] | t | temperature values |
Convert temperature to enthalpy at all cells.
This handles both user and model temperature conversions, so can be used safely whenever conversion is needed.
[in] | t | temperature values |
[out] | h | enthalpy values |
void cs_elec_convert_t_to_h_faces | ( | const cs_lnum_t | n_faces, |
const cs_lnum_t | face_ids[], | ||
const cs_real_t | t[], | ||
cs_real_t | h[] | ||
) |
Convert temperature to enthalpy at selected boundary faces.
This handles both user and model temperature conversions, so can be used safely whenever conversion is needed.
[in] | n_faces | number of selected faces |
[in] | face_ids | ids of selected faces |
[in] | t | temperature values (defined on all boundary faces) |
[out] | h | enthalpy values (defined on all boundary faces) |
void cs_elec_define_functions | ( | void | ) |
Create or access function objects specific to electric arcs models.
void cs_elec_fields_initialize | ( | const cs_mesh_t * | mesh, |
int | isuite | ||
) |
void cs_elec_physical_properties | ( | cs_domain_t * | domain | ) |
void cs_elec_scaling_function | ( | const cs_mesh_t * | mesh, |
const cs_mesh_quantities_t * | mesh_quantities, | ||
cs_real_t * | dt | ||
) |
void cs_elec_source_terms | ( | const cs_mesh_t * | mesh, |
const cs_mesh_quantities_t * | mesh_quantities, | ||
int | f_id, | ||
cs_real_t * | smbrs | ||
) |
void cs_elec_source_terms_v | ( | const cs_mesh_t * | mesh, |
const cs_mesh_quantities_t * | mesh_quantities, | ||
int | f_id, | ||
cs_real_3_t * | smbrv | ||
) |
void cs_electrical_model_finalize | ( | void | ) |
void cs_electrical_model_initialize | ( | void | ) |
void cs_electrical_model_specific_initialization | ( | cs_real_t * | diftl0 | ) |
void cs_electrical_properties_read | ( | void | ) |
cs_elec_option_t* cs_get_glob_elec_option | ( | void | ) |
cs_data_joule_effect_t* cs_get_glob_transformer | ( | void | ) |
void elflux | ( | int * | iappel | ) |
void elini1 | ( | cs_real_t * | diftl0 | ) |
void eliniv | ( | int * | isuite | ) |
void ellecd | ( | void | ) |
void elphyv | ( | void | ) |
void elreca | ( | cs_real_t * | dt | ) |
void eltssc | ( | const int * | isca, |
cs_real_t * | smbrs | ||
) |
void eltsvv | ( | const int * | f_id, |
cs_real_t * | smbrv | ||
) |
const cs_real_t cs_elec_epszer = 8.854e-12 |
vacuum permittivity constant (F/m). (= 8.854e-12)
const cs_real_t cs_elec_permvi = 1.2566e-6 |
vacuum magnetic permeability constant (H/m). (= 1.2566e-6)