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;
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:544
#define BEGIN_C_DECLS
Definition: cs_defs.h:495
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
Definition: cs_cdo_connect.h:76
Definition: cs_cdo_quantities.h:124
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_init_setup(void)
Setup equations/properties related to the Maxwell module.
Definition: cs_maxwell.c:462
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
bool cs_maxwell_is_activated(void)
Test if the computation of Maxwell equations is activated.
Definition: cs_maxwell.c:325
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:301
#define END_C_DECLS
Definition: cs_defs.h:496
unsigned short int cs_flag_t
Definition: cs_defs.h:309
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
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_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
void cs_maxwell_log_setup(void)
Log a summary of the Maxwell module.
Definition: cs_maxwell.c:599
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