My Project
programmer's documentation
Functions
cs_basis_func.c File Reference
#include <assert.h>
#include <math.h>
#include "bft_mem.h"
#include "cs_log.h"
#include "cs_quadrature.h"
#include "cs_scheme_geometry.h"
#include "cs_basis_func.h"
Include dependency graph for cs_basis_func.c:

Functions

cs_basis_func_tcs_basis_func_create (cs_flag_t flag, short int k, short int dim)
 Allocate a cs_basis_func_t structure. More...
 
cs_basis_func_tcs_basis_func_grad_create (const cs_basis_func_t *ref)
 Allocate a cs_basis_func_t structure which is associated to an existing set of basis functions. Up to now, only cell basis functions are handled. Building a projection matrix is not possible in this case. More...
 
void cs_basis_func_copy_setup (const cs_basis_func_t *ref, cs_basis_func_t *rcv)
 Copy the center and the different axis from the reference basis Up to now, only cell basis functions are handled. More...
 
cs_basis_func_tcs_basis_func_free (cs_basis_func_t *pbf)
 Free a cs_basis_func_t structure. More...
 
void cs_basis_func_set_hho_flag (cs_flag_t face_flag, cs_flag_t cell_flag)
 Set options for basis functions when using HHO schemes. More...
 
void cs_basis_func_get_hho_flag (cs_flag_t *face_flag, cs_flag_t *cell_flag)
 Get options for basis functions when using HHO schemes. More...
 
void cs_basis_func_dump (const cs_basis_func_t *pbf)
 Dump a cs_basis_func_t structure. More...
 
void cs_basis_func_fprintf (FILE *fp, const char *fname, const cs_basis_func_t *pbf)
 Print a cs_basis_func_t structure Print into the file f if given otherwise open a new file named fname if given otherwise print into the standard output. More...
 

Function Documentation

◆ cs_basis_func_copy_setup()

void cs_basis_func_copy_setup ( const cs_basis_func_t ref,
cs_basis_func_t rcv 
)

Copy the center and the different axis from the reference basis Up to now, only cell basis functions are handled.

Parameters
[in]refset of basis function used as a reference
[in,out]rcvset of basis function where members are set

◆ cs_basis_func_create()

cs_basis_func_t* cs_basis_func_create ( cs_flag_t  flag,
short int  k,
short int  dim 
)

Allocate a cs_basis_func_t structure.

Parameters
[in]flagmetadata related to the way of building basis functions
[in]kpolynomial order
[in]dim2 or 3 w.r.t. the geometrical dimension
Returns
a pointer to the new cs_basis_func_t

◆ cs_basis_func_dump()

void cs_basis_func_dump ( const cs_basis_func_t pbf)

Dump a cs_basis_func_t structure.

Parameters
[in]pbfpointer to the cs_basis_func_t structure to dump

◆ cs_basis_func_fprintf()

void cs_basis_func_fprintf ( FILE *  fp,
const char *  fname,
const cs_basis_func_t pbf 
)

Print a cs_basis_func_t structure Print into the file f if given otherwise open a new file named fname if given otherwise print into the standard output.

Parameters
[in]fppointer to a file structure or NULL
[in]fnamefilename or NULL
[in]pbfpointer to the cs_basis_func_t structure to dump

◆ cs_basis_func_free()

cs_basis_func_t* cs_basis_func_free ( cs_basis_func_t pbf)

Free a cs_basis_func_t structure.

Parameters
[in,out]pbfpointer to the cs_basis_func_t structure to free
Returns
a NULL pointer

◆ cs_basis_func_get_hho_flag()

void cs_basis_func_get_hho_flag ( cs_flag_t face_flag,
cs_flag_t cell_flag 
)

Get options for basis functions when using HHO schemes.

Parameters
[out]face_flagpointer to options related to face basis functinos
[out]cell_flagpointer to options related to cell basis functinos

◆ cs_basis_func_grad_create()

cs_basis_func_t* cs_basis_func_grad_create ( const cs_basis_func_t ref)

Allocate a cs_basis_func_t structure which is associated to an existing set of basis functions. Up to now, only cell basis functions are handled. Building a projection matrix is not possible in this case.

Parameters
[in]refset of basis function used as a reference
Returns
a pointer to the new cs_basis_func_t for gradient of the current basis functions

◆ cs_basis_func_set_hho_flag()

void cs_basis_func_set_hho_flag ( cs_flag_t  face_flag,
cs_flag_t  cell_flag 
)

Set options for basis functions when using HHO schemes.

Parameters
[in]face_flagoptions related to face basis functinos
[in]cell_flagoptions related to cell basis functinos