Routines to handle the cs_navsto_system_t structure.
More...
#include "cs_defs.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <bft_mem.h>
#include "cs_cdofb_navsto.h"
#include "cs_hho_stokes.h"
#include "cs_equation.h"
#include "cs_log.h"
#include "cs_post.h"
#include "cs_navsto_coupling.h"
#include "cs_navsto_system.h"
|
bool | cs_navsto_system_is_activated (void) |
| Check if the resolution of the Navier-Stokes system has been activated. More...
|
|
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. More...
|
|
void | cs_navsto_system_destroy (void) |
| Free the main structure related to the Navier-Stokes system. More...
|
|
cs_navsto_param_t * | cs_navsto_system_get_param (void) |
| Recover the structure storing the parameters for the Navier–Stokes system. More...
|
|
void | cs_navsto_system_init_setup (void) |
| Start setting-up the Navier-Stokes system At this stage, numerical settings should be completely determined but connectivity and geometrical information is not yet available. More...
|
|
void | cs_navsto_system_finalize_setup (const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant) |
| Last step of the setup of the Navier-Stokes system. More...
|
|
void | cs_navsto_system_initialize (void) |
| Initialize the context structure used to build the algebraic system This is done after the setup step. More...
|
|
void | cs_navsto_system_compute (const cs_mesh_t *mesh, double dt_cur) |
| Build, solve and update the Navier-Stokes system. More...
|
|
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 fixed since it is a function pointer defined in cs_post.h (cs_post_time_mesh_dep_output_t) More...
|
|
void | cs_navsto_system_log_setup (void) |
| Summary of the main cs_navsto_system_t structure. More...
|
|
Routines to handle the cs_navsto_system_t structure.
◆ CS_NAVSTO_SYSTEM_DBG
#define CS_NAVSTO_SYSTEM_DBG 0 |
◆ cs_navsto_system_activate()
Allocate and initialize the Navier-Stokes (NS) system.
- Parameters
-
[in] | model | type of model related to the NS system |
[in] | time_state | state of the time for the NS equations |
[in] | algo_coupling | algorithm used for solving the NS system |
- Returns
- a pointer to a new allocated cs_navsto_system_t structure
◆ cs_navsto_system_compute()
void cs_navsto_system_compute |
( |
const cs_mesh_t * |
mesh, |
|
|
double |
dt_cur |
|
) |
| |
Build, solve and update the Navier-Stokes system.
- Parameters
-
[in] | mesh | pointer to a cs_mesh_t structure |
[in] | dt_cur | current value of the time step |
◆ cs_navsto_system_destroy()
void cs_navsto_system_destroy |
( |
void |
| ) |
|
Free the main structure related to the Navier-Stokes system.
◆ cs_navsto_system_extra_post()
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 fixed since it is a function pointer defined in cs_post.h (cs_post_time_mesh_dep_output_t)
- Parameters
-
[in,out] | input | pointer to a optional structure (here a cs_gwf_t structure) |
[in] | mesh_id | id of the output mesh for the current call |
[in] | cat_id | category id of the output mesh for this call |
[in] | ent_flag | indicate global presence of cells (ent_flag[0]), interior faces (ent_flag[1]), boundary faces (ent_flag[2]), particles (ent_flag[3]) or probes (ent_flag[4]) |
[in] | n_cells | local number of cells of post_mesh |
[in] | n_i_faces | local number of interior faces of post_mesh |
[in] | n_b_faces | local number of boundary faces of post_mesh |
[in] | cell_ids | list of cells (0 to n-1) |
[in] | i_face_ids | list of interior faces (0 to n-1) |
[in] | b_face_ids | list of boundary faces (0 to n-1) |
[in] | time_step | pointer to a cs_time_step_t struct. |
◆ cs_navsto_system_finalize_setup()
Last step of the setup of the Navier-Stokes system.
- Parameters
-
◆ cs_navsto_system_get_param()
Recover the structure storing the parameters for the Navier–Stokes system.
◆ cs_navsto_system_init_setup()
void cs_navsto_system_init_setup |
( |
void |
| ) |
|
Start setting-up the Navier-Stokes system At this stage, numerical settings should be completely determined but connectivity and geometrical information is not yet available.
◆ cs_navsto_system_initialize()
void cs_navsto_system_initialize |
( |
void |
| ) |
|
Initialize the context structure used to build the algebraic system This is done after the setup step.
◆ cs_navsto_system_is_activated()
bool cs_navsto_system_is_activated |
( |
void |
| ) |
|
Check if the resolution of the Navier-Stokes system has been activated.
- Returns
- true or false
◆ cs_navsto_system_log_setup()
void cs_navsto_system_log_setup |
( |
void |
| ) |
|