#include "cs_defs.h"
#include "cs_base.h"
#include "cs_cdo_connect.h"
#include "cs_cdo_quantities.h"
#include "cs_equation.h"
#include "cs_mesh.h"
#include "cs_navsto_param.h"
#include "cs_time_step.h"
Go to the source code of this file.
Functions | |
static cs_real_t * | cs_macfb_monolithic_get_face_velocity (bool previous) |
Retrieve the values of the velocity on the faces. More... | |
void | cs_macfb_monolithic_init_sharing (const cs_equation_param_t *mom_eqp, const cs_mesh_t *mesh, const cs_cdo_quantities_t *quant, const cs_cdo_connect_t *connect, const cs_time_step_t *time_step) |
Set shared pointers from the main domain members. More... | |
void | cs_macfb_monolithic_finalize_common (void) |
Free shared pointers with lifecycle dedicated to this file. More... | |
void * | cs_macfb_monolithic_init_scheme_context (const cs_navsto_param_t *nsp, cs_adv_field_t *adv_field, cs_real_t *mflux, cs_real_t *mflux_pre, cs_boundary_type_t *bf_type, void *cc_context) |
Initialize a cs_macfb_monolithic_t structure. More... | |
void * | cs_macfb_monolithic_free_scheme_context (void *scheme_context) |
Destroy a cs_macfb_monolithic_t structure. More... | |
void | cs_macfb_monolithic_steady (const cs_mesh_t *mesh, const cs_navsto_param_t *nsp, void *scheme_context) |
Solve the steady Navier-Stokes system with a MAC face-based scheme using a monolithic approach. More... | |
void | cs_macfb_monolithic_steady_nl (const cs_mesh_t *mesh, const cs_navsto_param_t *nsp, void *scheme_context) |
Solve the steady Navier-Stokes system with a MAC face-based scheme using a monolithic approach and Picard iterations to solve the non-linearities arising from the advection term. More... | |
void | cs_macfb_monolithic (const cs_mesh_t *mesh, const cs_navsto_param_t *nsp, void *scheme_context) |
Solve the unsteady Navier-Stokes system with a MAC face-based scheme using a monolithic approach. According to the settings, this function can handle either an implicit Euler time scheme or more generally a theta time scheme. More... | |
void | cs_macfb_monolithic_nl (const cs_mesh_t *mesh, const cs_navsto_param_t *nsp, void *scheme_context) |
Solve the unsteady Navier-Stokes system with a MAC face-based scheme using a monolithic approach. According to the settings, this function can handle either an implicit Euler time scheme or more generally a theta time scheme. Rely on Picard iterations to solve the non-linearities arising from the advection term. More... | |
void cs_macfb_monolithic | ( | const cs_mesh_t * | mesh, |
const cs_navsto_param_t * | nsp, | ||
void * | scheme_context | ||
) |
Solve the unsteady Navier-Stokes system with a MAC face-based scheme using a monolithic approach. According to the settings, this function can handle either an implicit Euler time scheme or more generally a theta time scheme.
[in] | mesh | pointer to a cs_mesh_t structure |
[in] | nsp | pointer to a cs_navsto_param_t structure |
[in] | scheme_context | pointer to a structure cast on-the-fly |
void cs_macfb_monolithic_finalize_common | ( | void | ) |
Free shared pointers with lifecycle dedicated to this file.
void * cs_macfb_monolithic_free_scheme_context | ( | void * | scheme_context | ) |
Destroy a cs_macfb_monolithic_t structure.
[in] | scheme_context | pointer to a scheme context structure to free |
|
inlinestatic |
Retrieve the values of the velocity on the faces.
[in] | previous | retrieve the previous state (true/false) |
void * cs_macfb_monolithic_init_scheme_context | ( | const cs_navsto_param_t * | nsp, |
cs_adv_field_t * | adv_field, | ||
cs_real_t * | mflux, | ||
cs_real_t * | mflux_pre, | ||
cs_boundary_type_t * | bf_type, | ||
void * | cc_context | ||
) |
Initialize a cs_macfb_monolithic_t structure.
[in] | nsp | pointer to a cs_navsto_param_t structure |
[in] | adv_field | pointer to cs_adv_field_t structure |
[in] | mflux | current values of the mass flux across primal faces |
[in] | mflux_pre | current values of the mass flux across primal faces |
[in] | bf_type | type of boundary for each boundary face |
[in] | cc_context | pointer to a cs_navsto_monolithic_t structure |
void cs_macfb_monolithic_init_sharing | ( | const cs_equation_param_t * | eqp, |
const cs_mesh_t * | mesh, | ||
const cs_cdo_quantities_t * | quant, | ||
const cs_cdo_connect_t * | connect, | ||
const cs_time_step_t * | time_step | ||
) |
Set shared pointers from the main domain members.
[in] | mom_eqp | equation parameter settings |
[in] | mesh | pointer to a cs_mesh_t structure |
[in] | quant | additional mesh quantities struct. |
[in] | connect | pointer to a cs_cdo_connect_t struct. |
[in] | time_step | pointer to a cs_time_step_t structure |
[in] | eqp | equation parameter settings |
[in] | mesh | pointer to a cs_mesh_t structure |
[in] | quant | additional mesh quantities struct. |
[in] | connect | pointer to a cs_cdo_connect_t struct. |
[in] | time_step | pointer to a cs_time_step_t structure |
void cs_macfb_monolithic_nl | ( | const cs_mesh_t * | mesh, |
const cs_navsto_param_t * | nsp, | ||
void * | scheme_context | ||
) |
Solve the unsteady Navier-Stokes system with a MAC face-based scheme using a monolithic approach. According to the settings, this function can handle either an implicit Euler time scheme or more generally a theta time scheme. Rely on Picard iterations to solve the non-linearities arising from the advection term.
[in] | mesh | pointer to a cs_mesh_t structure |
[in] | nsp | pointer to a cs_navsto_param_t structure |
[in,out] | scheme_context | pointer to a structure cast on-the-fly |
void cs_macfb_monolithic_steady | ( | const cs_mesh_t * | mesh, |
const cs_navsto_param_t * | nsp, | ||
void * | scheme_context | ||
) |
Solve the steady Navier-Stokes system with a MAC face-based scheme using a monolithic approach.
[in] | mesh | pointer to a cs_mesh_t structure |
[in] | nsp | pointer to a cs_navsto_param_t structure |
[in] | scheme_context | pointer to a structure cast on-the-fly |
Solve the steady Navier-Stokes system with a MAC face-based scheme using a monolithic approach.
[in] | mesh | pointer to a cs_mesh_t structure |
[in] | nsp | pointer to a cs_navsto_param_t structure |
[in,out] | scheme_context | pointer to a structure cast on-the-fly |
void cs_macfb_monolithic_steady_nl | ( | const cs_mesh_t * | mesh, |
const cs_navsto_param_t * | nsp, | ||
void * | scheme_context | ||
) |
Solve the steady Navier-Stokes system with a MAC face-based scheme using a monolithic approach and Picard iterations to solve the non-linearities arising from the advection term.
[in] | mesh | pointer to a cs_mesh_t structure |
[in] | nsp | pointer to a cs_navsto_param_t structure |
[in,out] | scheme_context | pointer to a structure cast on-the-fly |
Solve the steady Navier-Stokes system with a MAC face-based scheme using a monolithic approach and Picard iterations to solve the non-linearities arising from the advection term.
[in] | mesh | pointer to a cs_mesh_t structure |
[in] | nsp | pointer to a cs_navsto_param_t structure |
[in,out] | scheme_context | pointer to a structure cast on-the-fly |