1 #ifndef __CS_NAVSTO_SYSTEM_H__ 2 #define __CS_NAVSTO_SYSTEM_H__ 104 void *scheme_context);
123 void *scheme_context);
void cs_navsto_system_compute(const cs_mesh_t *mesh, double dt_cur)
Build, solve and update the Navier-Stokes system.
Definition: cs_navsto_system.c:635
time step descriptor
Definition: cs_time_step.h:51
cs_navsto_free_scheme_context_t * free_scheme_context
Definition: cs_navsto_system.h:211
bool cs_navsto_system_is_activated(void)
Check if the resolution of the Navier-Stokes system has been activated.
Definition: cs_navsto_system.c:161
Definition: cs_advection_field.h:118
cs_navsto_param_coupling_t
Choice of algorithm for solving the system.
Definition: cs_navsto_param.h:125
Field descriptor.
Definition: cs_field.h:124
void() cs_navsto_compute_t(const cs_mesh_t *mesh, const cs_navsto_param_t *nsp, double dt_cur, void *scheme_context)
Compute for the current time step the new state for the Navier-Stokes system. This means that equatio...
Definition: cs_navsto_system.h:120
void *() cs_navsto_free_scheme_context_t(void *scheme_context)
Free the context structure related to a given discretization scheme for the resolution of the Navier-...
Definition: cs_navsto_system.h:90
#define BEGIN_C_DECLS
Definition: cs_defs.h:462
cs_navsto_init_values_t * init_velocity
Definition: cs_navsto_system.h:217
cs_field_t * temperature
Definition: cs_navsto_system.h:178
Definition: cs_cdo_connect.h:74
Structure storing the parameters related to the resolution of the Navier-Stokes system.
Definition: cs_navsto_param.h:141
Definition: cs_cdo_quantities.h:94
void * scheme_context
Definition: cs_navsto_system.h:191
void cs_navsto_system_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 Navier-Stokes system. The prototype of this function is fix...
Definition: cs_navsto_system.c:674
void() cs_navsto_init_values_t(const cs_navsto_param_t *nsp, void *scheme_context)
Initialize field values (pressure, velocity or temperature) according to the model, the space discretization or the model.
Definition: cs_navsto_system.h:103
cs_field_t * velocity
Definition: cs_navsto_system.h:158
cs_navsto_param_time_state_t
Status of the time for the Navier-Stokes system of equations.
Definition: cs_navsto_param.h:94
cs_navsto_init_scheme_context_t * init_scheme_context
Definition: cs_navsto_system.h:204
cs_navsto_param_t * cs_navsto_system_get_param(void)
Recover the structure storing the parameters for the Navier–Stokes system.
Definition: cs_navsto_system.c:321
cs_navsto_init_values_t * init_pressure
Definition: cs_navsto_system.h:223
cs_field_t * pressure
Definition: cs_navsto_system.h:171
void cs_navsto_system_finalize_setup(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_time_step_t *time_step)
Last step of the setup of the Navier-Stokes system.
Definition: cs_navsto_system.c:447
Structure managing the Navier-Stokes system.
Definition: cs_navsto_system.h:134
cs_navsto_system_t * cs_navsto_system_activate(cs_navsto_param_model_t model, cs_navsto_param_time_state_t time_state, cs_navsto_param_coupling_t algo_coupling)
Allocate and initialize the Navier-Stokes (NS) system.
Definition: cs_navsto_system.c:182
void *() cs_navsto_init_scheme_context_t(const cs_navsto_param_t *nsp, void *nscc)
Allocate and initialize the context structure related to a given discretization scheme for the resolu...
Definition: cs_navsto_system.h:74
cs_navsto_param_t * param
Definition: cs_navsto_system.h:139
void cs_navsto_system_compute_steady_state(const cs_mesh_t *mesh)
Build, solve and update the Navier-Stokes system in case of a steady-state approach.
Definition: cs_navsto_system.c:608
void cs_navsto_system_initialize(const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_time_step_t *ts)
Initialize the context structure used to build the algebraic system This is done after the setup step...
Definition: cs_navsto_system.c:567
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:293
cs_navsto_compute_t * compute
Definition: cs_navsto_system.h:229
#define END_C_DECLS
Definition: cs_defs.h:463
cs_adv_field_t * adv_field
Definition: cs_navsto_system.h:152
void cs_navsto_system_log_setup(void)
Summary of the main cs_navsto_system_t structure.
Definition: cs_navsto_system.c:710
void cs_navsto_system_init_setup(void)
Start setting-up the Navier-Stokes system At this stage, numerical settings should be completely dete...
Definition: cs_navsto_system.c:340
cs_navsto_param_model_t
Modelling related to the Navier-Stokes system of equations.
Definition: cs_navsto_param.h:68
void * coupling_context
Definition: cs_navsto_system.h:184
void cs_navsto_system_destroy(void)
Free the main structure related to the Navier-Stokes system.
Definition: cs_navsto_system.c:259
cs_field_t * velocity_divergence
Definition: cs_navsto_system.h:165