programmer's documentation
Functions
cs_cdofb_uzawa.h File Reference
#include "cs_defs.h"
#include "cs_base.h"
#include "cs_cdo_connect.h"
#include "cs_cdo_quantities.h"
#include "cs_equation_common.h"
#include "cs_equation_param.h"
#include "cs_field.h"
#include "cs_matrix.h"
#include "cs_mesh.h"
#include "cs_navsto_coupling.h"
#include "cs_navsto_param.h"
#include "cs_source_term.h"
#include "cs_time_step.h"
Include dependency graph for cs_cdofb_uzawa.h:

Go to the source code of this file.

Functions

void cs_cdofb_uzawa_init_common (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_cdofb_uzawa_init_scheme_context (const cs_navsto_param_t *nsp, void *nsc_input)
 Initialize a cs_cdofb_uzawa_t structure. More...
 
void * cs_cdofb_uzawa_free_scheme_context (void *scheme_context)
 Destroy a cs_cdofb_uzawa_t structure. More...
 
void cs_cdofb_uzawa_init_velocity (const cs_navsto_param_t *nsp, void *scheme_context)
 Initialize the velocity values. More...
 
void cs_cdofb_uzawa_init_pressure (const cs_navsto_param_t *nsp, void *scheme_context)
 Initialize the pressure values. More...
 
void cs_cdofb_uzawa_compute (const cs_mesh_t *mesh, const cs_navsto_param_t *nsp, double dt_cur, void *scheme_context)
 Solve the Navier-Stokes system with a CDO face-based scheme using a Uzawa-Lagrangian Augmented approach. More...
 
cs_real_tcs_cdofb_uzawa_get_face_velocity (void *scheme_context)
 Retrieve the values of the velocity on the faces. More...
 

Function Documentation

◆ cs_cdofb_uzawa_compute()

void cs_cdofb_uzawa_compute ( const cs_mesh_t mesh,
const cs_navsto_param_t nsp,
double  dt_cur,
void *  scheme_context 
)

Solve the Navier-Stokes system with a CDO face-based scheme using a Uzawa-Lagrangian Augmented approach.

Parameters
[in]meshpointer to a cs_mesh_t structure
[in]nsppointer to a cs_navsto_param_t structure
[in]dt_curcurrent value of the time step
[in]scheme_contextpointer to a structure cast on-the-fly
[in]meshpointer to a cs_mesh_t structure
[in]nsppointer to a cs_navsto_param_t structure
[in]dt_curcurrent value of the time step
[in,out]scheme_contextpointer to a structure cast on-the-fly

◆ cs_cdofb_uzawa_free_scheme_context()

void* cs_cdofb_uzawa_free_scheme_context ( void *  scheme_context)

Destroy a cs_cdofb_uzawa_t structure.

Parameters
[in]scheme_contextpointer to a scheme context structure to free
Returns
a NULL pointer

◆ cs_cdofb_uzawa_get_face_velocity()

cs_real_t* cs_cdofb_uzawa_get_face_velocity ( void *  scheme_context)

Retrieve the values of the velocity on the faces.

Parameters
[in]scheme_contextpointer to a structure cast on-the-fly
Returns
a pointer to an array of cs_real_t

◆ cs_cdofb_uzawa_init_common()

void cs_cdofb_uzawa_init_common ( 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.

Parameters
[in]quantadditional mesh quantities struct.
[in]connectpointer to a cs_cdo_connect_t struct.
[in]time_steppointer to a cs_time_step_t structure

◆ cs_cdofb_uzawa_init_pressure()

void cs_cdofb_uzawa_init_pressure ( const cs_navsto_param_t nsp,
void *  scheme_context 
)

Initialize the pressure values.

Parameters
[in]nsppointer to a cs_navsto_param_t structure
[in]scheme_contextpointer to a structure cast on-the-fly

◆ cs_cdofb_uzawa_init_scheme_context()

void* cs_cdofb_uzawa_init_scheme_context ( const cs_navsto_param_t nsp,
void *  nsc_input 
)

Initialize a cs_cdofb_uzawa_t structure.

Parameters
[in]nsppointer to a cs_navsto_param_t structure
[in]nsc_inputpointer to a cs_navsto_uzawa_t structure
Returns
a pointer to a new allocated cs_cdofb_uzawa_t structure

◆ cs_cdofb_uzawa_init_velocity()

void cs_cdofb_uzawa_init_velocity ( const cs_navsto_param_t nsp,
void *  scheme_context 
)

Initialize the velocity values.

Parameters
[in]nsppointer to a cs_navsto_param_t structure
[in]scheme_contextpointer to a structure cast on-the-fly