1 #ifndef __CS_MAXWELL_H__ 2 #define __CS_MAXWELL_H__ 46 #define CS_MAXWELL_ESTATIC_EQNAME "electrostatic" 47 #define CS_MAXWELL_EFIELD_NAME "electric_field" 48 #define CS_MAXWELL_DFIELD_NAME "electric_induction" 50 #define CS_MAXWELL_MSTATIC_EQNAME "magnetostatic" 51 #define CS_MAXWELL_MFIELD_NAME "magnetic_field" 52 #define CS_MAXWELL_BFIELD_NAME "magnetic_induction" 54 #define CS_MAXWELL_JEFFECT_NAME "joule_effect" 84 #define CS_MAXWELL_MODEL_ELECTROSTATIC (1 << 0) 85 #define CS_MAXWELL_MODEL_MAGNETOSTATIC (1 << 1) 101 #define CS_MAXWELL_A_PHI_FORMULATION (1 << 0) 102 #define CS_MAXWELL_JOULE_EFFECT (1 << 1) 112 typedef struct _maxwell_t cs_maxwell_t;
time step descriptor
Definition: cs_time_step.h:64
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:556
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
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:727
Definition: cs_cdo_connect.h:79
Definition: cs_cdo_quantities.h:129
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:863
void cs_maxwell_init_setup(void)
Setup equations/properties related to the Maxwell module.
Definition: cs_maxwell.c:474
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:357
bool cs_maxwell_is_activated(void)
Test if the computation of Maxwell equations is activated.
Definition: cs_maxwell.c:337
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:316
#define END_C_DECLS
Definition: cs_defs.h:511
unsigned short int cs_flag_t
Definition: cs_defs.h:324
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:824
cs_maxwell_t * cs_maxwell_destroy_all(void)
Free the main structure related to the Maxwell module.
Definition: cs_maxwell.c:445
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:646
void cs_maxwell_log_setup(void)
Log a summary of the Maxwell module.
Definition: cs_maxwell.c:611
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:697