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 (void) |
| void | elthht (int *mode, cs_real_t *ym, cs_real_t *enthal, cs_real_t *temp) |
| void | ellecd (void) |
| void | elphyv (void) |
| void | eliniv (int *isuite) |
| 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 (void) |
| 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. | |
| cs_real_t | cs_elec_convert_h_to_t (const cs_real_t ym[], cs_real_t enthal) |
| Convert single enthalpy value to temperature. | |
| void | cs_elec_convert_t_to_h_cells (const cs_real_t t[], cs_real_t h[]) |
| Convert temperature to enthalpy at all cells. | |
| 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. | |
| cs_real_t | cs_elec_convert_t_to_h (const cs_real_t ym[], cs_real_t temp) |
| Convert single temperature value to enthalpy. | |
| void | cs_elec_define_functions (void) |
| Create or access function objects specific to electric arcs models. | |
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 single enthalpy value to temperature.
| [in] | ym | mass fraction for each gas |
| [in,out] | enthal | enthlapy value |
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 single temperature value to enthalpy.
| [in] | ym | mass fraction for each gas |
| [in,out] | temp | temperature value |
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 | ( | void | ) |
| 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 elini1 | ( | void | ) |
| void eliniv | ( | int * | isuite | ) |
| void ellecd | ( | void | ) |
| void elphyv | ( | void | ) |
| 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)