1 #ifndef __CS_NAVSTO_SYSTEM_H__ 2 #define __CS_NAVSTO_SYSTEM_H__ 131 void *scheme_context);
time step descriptor
Definition: cs_time_step.h:64
void cs_navsto_system_compute(const cs_mesh_t *mesh, const cs_time_step_t *time_step, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq)
Build, solve and update the Navier-Stokes system.
Definition: cs_navsto_system.c:1212
cs_field_t * enstrophy
Definition: cs_navsto_system.h:235
int cs_boundary_type_t
Definition: cs_boundary.h:65
cs_navsto_free_scheme_context_t * free_scheme_context
Definition: cs_navsto_system.h:288
bool cs_navsto_system_is_activated(void)
Check if the resolution of the Navier-Stokes system has been activated.
Definition: cs_navsto_system.c:201
Definition: cs_advection_field.h:149
void cs_navsto_system_set_sles(void)
Define the settings for SLES related to the Navier-Stokes system.
Definition: cs_navsto_system.c:729
cs_navsto_param_coupling_t
Choice of algorithm for solving the system.
Definition: cs_navsto_param.h:447
Field descriptor.
Definition: cs_field.h:125
void cs_navsto_system_set_solid_cells(cs_lnum_t n_solid_cells, cs_lnum_t solid_cell_ids[])
Set a solid zone related to the Navier-Stokes equations.
Definition: cs_navsto_system.c:1105
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:95
void cs_navsto_system_finalize_setup(const cs_mesh_t *mesh, 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:793
cs_navsto_compute_t * compute_steady
Definition: cs_navsto_system.h:306
#define BEGIN_C_DECLS
Definition: cs_defs.h:495
cs_equation_t * cs_navsto_system_get_momentum_eq(void)
Retrieve a pointer to the equation related to the momentum equation.
Definition: cs_navsto_system.c:425
void *() cs_navsto_init_scheme_context_t(const cs_navsto_param_t *nsp, cs_boundary_type_t *fb_type, void *nscc)
Allocate and initialize the context structure related to a given discretization scheme for the resolu...
Definition: cs_navsto_system.h:78
cs_navsto_init_values_t * init_velocity
Definition: cs_navsto_system.h:294
Routines to handle the cs_thermal_system_t structure. The temperature field is automatically defined ...
Definition: cs_cdo_connect.h:76
Structure storing information related to the "physical" boundaries associated with the computational ...
Definition: cs_boundary.h:151
void() cs_navsto_compute_t(const cs_mesh_t *mesh, const cs_navsto_param_t *nsp, 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:129
Structure storing the parameters related to the resolution of the Navier-Stokes system.
Definition: cs_navsto_param.h:462
void cs_navsto_system_update(const cs_mesh_t *mesh, const cs_time_step_t *time_step, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq)
Update variables and related quantities when a new state of the Navier-Stokes system has been compute...
Definition: cs_navsto_system.c:1150
double cs_real_t
Floating-point value.
Definition: cs_defs.h:307
Definition: cs_cdo_quantities.h:124
void * scheme_context
Definition: cs_navsto_system.h:268
cs_equation_t * stream_function_eq
Definition: cs_navsto_system.h:248
cs_real_t * cs_navsto_get_mass_flux(bool previous)
Retrieve the mass flux array related to the Navier-Stokes system.
Definition: cs_navsto_system.c:507
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:1305
cs_field_t * velocity
Definition: cs_navsto_system.h:165
cs_navsto_init_scheme_context_t * init_scheme_context
Definition: cs_navsto_system.h:281
cs_field_t * helicity
Definition: cs_navsto_system.h:229
cs_navsto_param_t * cs_navsto_system_get_param(void)
Retrieve the structure storing the parameters for the Navier–Stokes system.
Definition: cs_navsto_system.c:406
cs_navsto_init_values_t * init_pressure
Definition: cs_navsto_system.h:300
cs_field_t * pressure
Definition: cs_navsto_system.h:171
Structure managing the Navier-Stokes system.
Definition: cs_navsto_system.h:142
void cs_navsto_system_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 *cdoq)
Build, solve and update the Navier-Stokes system in case of a steady-state approach.
Definition: cs_navsto_system.c:1180
void() cs_navsto_init_values_t(const cs_navsto_param_t *nsp, const cs_cdo_quantities_t *quant, const cs_time_step_t *ts, cs_field_t *field)
According to the model, coupling algorithm and the space discretization, initialize the field values ...
Definition: cs_navsto_system.h:111
cs_thermal_system_t * thm
Definition: cs_navsto_system.h:188
cs_boundary_type_t * bf_type
Definition: cs_navsto_system.h:152
cs_flag_t cs_navsto_param_model_t
Definition: cs_navsto_param.h:99
cs_field_t * kinetic_energy
Definition: cs_navsto_system.h:217
void cs_navsto_system_extra_op(const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, const cs_time_step_t *ts)
Predefined extra-operations for the Navier-Stokes system.
Definition: cs_navsto_system.c:1244
cs_navsto_param_t * param
Definition: cs_navsto_system.h:147
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:1049
cs_navsto_system_t * cs_navsto_system_activate(const cs_boundary_t *boundaries, cs_navsto_param_model_t model, cs_navsto_param_coupling_t algo_coupling, cs_flag_t option_flag, cs_flag_t post_flag)
Allocate and initialize the Navier-Stokes (NS) system.
Definition: cs_navsto_system.c:224
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:301
cs_navsto_compute_t * compute
Definition: cs_navsto_system.h:312
cs_adv_field_t * cs_navsto_get_adv_field(void)
Retrieve the advection field structure (the mass flux) related to the Navier-Stokes system...
Definition: cs_navsto_system.c:466
Structure and routines handling the Maxwell module dedicated to the resolution of electro-magnetic eq...
cs_field_t * vorticity
Definition: cs_navsto_system.h:223
#define END_C_DECLS
Definition: cs_defs.h:496
unsigned short int cs_flag_t
Definition: cs_defs.h:309
cs_maxwell_t * mxl
Definition: cs_navsto_system.h:195
Definition: cs_thermal_system.h:145
void cs_navsto_system_log_setup(void)
Summary of the main cs_navsto_system_t structure.
Definition: cs_navsto_system.c:1424
cs_field_t * velocity_gradient
Definition: cs_navsto_system.h:240
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:548
Main structure to handle the discretization and the resolution of an equation.
void * coupling_context
Definition: cs_navsto_system.h:261
void cs_navsto_system_destroy(void)
Free the main structure related to the Navier-Stokes system.
Definition: cs_navsto_system.c:345
cs_field_t * velocity_divergence
Definition: cs_navsto_system.h:210