 |
6.3
general documentation
|
|
Go to the documentation of this file. 1 #ifndef __CS_MAXWELL_H__
2 #define __CS_MAXWELL_H__
54 #define CS_MAXWELL_ESTATIC_EQNAME "electrostatic"
55 #define CS_MAXWELL_EFIELD_NAME "electric_field"
56 #define CS_MAXWELL_DFIELD_NAME "electric_induction"
58 #define CS_MAXWELL_MSTATIC_EQNAME "magnetostatic"
59 #define CS_MAXWELL_MFIELD_NAME "magnetic_field"
60 #define CS_MAXWELL_BFIELD_NAME "magnetic_induction"
62 #define CS_MAXWELL_JEFFECT_NAME "joule_effect"
92 #define CS_MAXWELL_MODEL_ELECTROSTATIC (1 << 0)
93 #define CS_MAXWELL_MODEL_MAGNETOSTATIC (1 << 1)
109 #define CS_MAXWELL_A_PHI_FORMULATION (1 << 0)
110 #define CS_MAXWELL_JOULE_EFFECT (1 << 1)
120 typedef struct _maxwell_t cs_maxwell_t;
void cs_maxwell_extra_op(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant)
Predefined extra-operations for the Maxwell module.
Definition: cs_maxwell.c:812
#define END_C_DECLS
Definition: cs_defs.h:493
#define BEGIN_C_DECLS
Definition: cs_defs.h:492
bool cs_maxwell_is_activated(void)
Test if the computation of Maxwell equations is activated.
Definition: cs_maxwell.c:325
cs_maxwell_t * cs_maxwell_activate(cs_flag_t model, cs_flag_t options)
Activate the future computation of the Maxwell equations.
Definition: cs_maxwell.c:345
void cs_maxwell_extra_post(void *input, int mesh_id, int cat_id, int ent_flag[5], cs_lnum_t n_cells, cs_lnum_t n_i_faces, cs_lnum_t n_b_faces, const cs_lnum_t cell_ids[], const cs_lnum_t i_face_ids[], const cs_lnum_t b_face_ids[], const cs_time_step_t *time_step)
Predefined post-processing output for the Maxwell module. Prototype of this function is fixed since i...
Definition: cs_maxwell.c:851
void cs_maxwell_finalize_setup(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant)
Finalize the setup stage for equations related to the Maxwell module.
Definition: cs_maxwell.c:544
time step descriptor
Definition: cs_time_step.h:64
Definition: cs_cdo_quantities.h:124
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:298
Definition: cs_cdo_connect.h:76
cs_maxwell_t * cs_maxwell_destroy_all(void)
Free the main structure related to the Maxwell module.
Definition: cs_maxwell.c:433
void cs_maxwell_log_setup(void)
Log a summary of the Maxwell module.
Definition: cs_maxwell.c:599
void cs_maxwell_compute_steady_state(const cs_mesh_t *mesh, const cs_time_step_t *time_step, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant)
Solve if needed the steady-state equations related to the Maxwell module.
Definition: cs_maxwell.c:634
unsigned short int cs_flag_t
Definition: cs_defs.h:306
void cs_maxwell_compute(const cs_mesh_t *mesh, const cs_time_step_t *time_step, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant)
Solve equations related to the Maxwell module.
Definition: cs_maxwell.c:685
void cs_maxwell_init_setup(void)
Setup equations/properties related to the Maxwell module.
Definition: cs_maxwell.c:462
void cs_maxwell_update(const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_time_step_t *ts, bool cur2prev)
Update/initialize the Maxwell module according to the settings.
Definition: cs_maxwell.c:715