42#define CS_MAXWELL_ESTATIC_EQNAME "electrostatic"
43#define CS_MAXWELL_EFIELD_NAME "electric_field"
44#define CS_MAXWELL_DFIELD_NAME "electric_induction"
46#define CS_MAXWELL_MSTATIC_EQNAME "magnetostatic"
47#define CS_MAXWELL_MFIELD_NAME "magnetic_field"
48#define CS_MAXWELL_BFIELD_NAME "magnetic_induction"
50#define CS_MAXWELL_JEFFECT_NAME "joule_effect"
80#define CS_MAXWELL_MODEL_ELECTROSTATIC (1 << 0)
81#define CS_MAXWELL_MODEL_MAGNETOSTATIC (1 << 1)
97#define CS_MAXWELL_A_PHI_FORMULATION (1 << 0)
98#define CS_MAXWELL_JOULE_EFFECT (1 << 1)
108typedef struct _maxwell_t cs_maxwell_t;
time step descriptor
Definition: cs_time_step.h:60
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:325
unsigned short int cs_flag_t
Definition: cs_defs.h:334
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.cpp:852
bool cs_maxwell_is_activated(void)
Test if the computation of Maxwell equations is activated.
Definition: cs_maxwell.cpp:338
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.cpp:358
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.cpp:746
void cs_maxwell_log_setup(void)
Log a summary of the Maxwell module.
Definition: cs_maxwell.cpp:633
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.cpp:891
cs_maxwell_t * cs_maxwell_destroy_all(void)
Free the main structure related to the Maxwell module.
Definition: cs_maxwell.cpp:452
void cs_maxwell_init_setup(void)
Setup equations/properties related to the Maxwell module.
Definition: cs_maxwell.cpp:481
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.cpp:577
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.cpp:715
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.cpp:667
Definition: cs_cdo_connect.h:57
Definition: cs_cdo_quantities.h:142