My Project
programmer's documentation
Functions
cs_xdef_cw_eval.c File Reference
#include "cs_defs.h"
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <bft_mem.h>
#include "cs_mesh_location.h"
#include "cs_reco.h"
#include "cs_time_step.h"
#include "cs_xdef_cw_eval.h"
Include dependency graph for cs_xdef_cw_eval.c:

Functions

void cs_xdef_cw_eval_f_int_by_analytic (const cs_cell_mesh_t *cm, double t_eval, short int f, cs_analytic_func_t *ana, void *input, cs_quadrature_tria_integral_t *qfunc, cs_real_t *eval)
 Integrate an analytic function over a face. More...
 
void cs_xdef_cw_eval_c_int_by_analytic (const cs_cell_mesh_t *cm, double t_eval, cs_analytic_func_t *ana, void *input, cs_quadrature_tetra_integral_t *qfunc, cs_real_t *eval)
 Integrate an analytic function over a cell. More...
 
void cs_xdef_cw_eval_fc_int_by_analytic (const cs_cell_mesh_t *cm, cs_real_t t_eval, cs_analytic_func_t *ana, void *input, const short int dim, cs_quadrature_tetra_integral_t *q_tet, cs_quadrature_tria_integral_t *q_tri, cs_real_t *c_int, cs_real_t *f_int)
 Routine to integrate an analytic function over a cell and its faces. More...
 
void cs_xdef_cw_eval_scalar_face_avg_by_analytic (const cs_cell_mesh_t *cm, short int f, cs_real_t time_eval, void *input, cs_quadrature_type_t qtype, cs_real_t *eval)
 Function pointer for evaluating the average on a face of a scalar function defined through a descriptor (cs_xdef_t structure) by a cellwise process (usage of a cs_cell_mesh_t structure) More...
 
void cs_xdef_cw_eval_vector_face_avg_by_analytic (const cs_cell_mesh_t *cm, short int f, cs_real_t t_eval, void *input, cs_quadrature_type_t qtype, cs_real_t *eval)
 Function pointer for evaluating the average on a face of a vector function defined through a descriptor (cs_xdef_t structure) by a cellwise process (usage of a cs_cell_mesh_t structure) More...
 
void cs_xdef_cw_eval_tensor_face_avg_by_analytic (const cs_cell_mesh_t *cm, short int f, cs_real_t t_eval, void *input, cs_quadrature_type_t qtype, cs_real_t *eval)
 Function pointer for evaluating the average on a face of a tensor function defined through a descriptor (cs_xdef_t structure) by a cellwise process (usage of a cs_cell_mesh_t structure) More...
 
void cs_xdef_cw_eval_scalar_avg_by_analytic (const cs_cell_mesh_t *cm, cs_real_t t_eval, void *input, cs_quadrature_type_t qtype, cs_real_t *eval)
 Function pointer for evaluating a quantity defined through a descriptor (cs_xdef_t structure) by a cellwise process (usage of a cs_cell_mesh_t structure). This evaluation hinges on the computation of integrals. More...
 
void cs_xdef_cw_eval_vector_avg_by_analytic (const cs_cell_mesh_t *cm, cs_real_t t_eval, void *input, cs_quadrature_type_t qtype, cs_real_t *eval)
 Function pointer for evaluating a quantity defined through a descriptor (cs_xdef_t structure) by a cellwise process (usage of a cs_cell_mesh_t structure). This evaluation hinges on the computation of integrals Vector-valued case. More...
 
void cs_xdef_cw_eval_tensor_avg_by_analytic (const cs_cell_mesh_t *cm, cs_real_t t_eval, void *input, cs_quadrature_type_t qtype, cs_real_t *eval)
 Function pointer for evaluating a quantity defined through a descriptor (cs_xdef_t structure) by a cellwise process (usage of a cs_cell_mesh_t structure). This evaluation hinges on the computation of integrals Tensor-valued case. More...
 
void cs_xdef_cw_eval_by_time_func (const cs_cell_mesh_t *cm, cs_real_t time_eval, void *input, cs_real_t *eval)
 Evaluate a quantity by a cellwise process using a definition by time function. More...
 
void cs_xdef_cw_eval_by_analytic (const cs_cell_mesh_t *cm, cs_real_t time_eval, void *input, cs_real_t *eval)
 Evaluate a quantity defined using an analytic function by a cellwise process (usage of a cs_cell_mesh_t structure) More...
 
void cs_xdef_cw_eval_by_array (const cs_cell_mesh_t *cm, cs_real_t time_eval, void *input, cs_real_t *eval)
 Evaluate a quantity at cells defined by an array. Array is assumed to be interlaced. Variation using a cs_cell_mesh_t structure. More...
 
void cs_xdef_cw_eval_by_field (const cs_cell_mesh_t *cm, cs_real_t time_eval, void *input, cs_real_t *eval)
 Evaluate a quantity inside a cell defined using a field Variation using a cs_cell_mesh_t structure. More...
 
void cs_xdef_cw_eval_at_xyz_by_analytic (const cs_cell_mesh_t *cm, cs_lnum_t n_points, const cs_real_t *xyz, cs_real_t time_eval, void *input, cs_real_t *eval)
 Function pointer for evaluating a quantity defined by analytic function at a precise location (x, y, z) inside a cell Use of a cs_cell_mesh_t structure. More...
 
void cs_xdef_cw_eval_vector_at_xyz_by_array (const cs_cell_mesh_t *cm, cs_lnum_t n_points, const cs_real_t *xyz, cs_real_t time_eval, void *input, cs_real_t *eval)
 Function pointer for evaluating a quantity defined by analytic function at a precise location inside a cell Use of a cs_cell_mesh_t structure. Vector-valued case. More...
 
void cs_xdef_cw_eval_vector_at_xyz_by_field (const cs_cell_mesh_t *cm, cs_lnum_t n_points, const cs_real_t *xyz, cs_real_t time_eval, void *input, cs_real_t *eval)
 Function pointer for evaluating a quantity defined by a field at a precise location inside a cell Use of a cs_cell_mesh_t structure. Vector-valued case. More...
 
void cs_xdef_cw_eval_flux_at_vtx_by_val (const cs_cell_mesh_t *cm, short int f, cs_real_t time_eval, void *input, cs_real_t *eval)
 Function pointer for evaluating the normal flux of a quantity defined by values. The normal flux is then added to each portion of face related to a vertex. Use of a cs_cell_mesh_t structure. More...
 
void cs_xdef_cw_eval_flux_at_vtx_by_analytic (const cs_cell_mesh_t *cm, short int f, cs_real_t time_eval, void *input, cs_quadrature_type_t qtype, cs_real_t *eval)
 Function pointer for evaluating the normal flux of a quantity defined by analytic function. The normal flux is then added to each portion of face related to a vertex. Use of a cs_cell_mesh_t structure. More...
 
void cs_xdef_cw_eval_flux_by_analytic (const cs_cell_mesh_t *cm, short int f, cs_real_t time_eval, void *input, cs_quadrature_type_t qtype, cs_real_t *eval)
 Function pointer for evaluating the normal flux of a quantity defined by analytic function. Use of a cs_cell_mesh_t structure. More...
 
void cs_xdef_cw_eval_tensor_flux_by_analytic (const cs_cell_mesh_t *cm, short int f, cs_real_t time_eval, void *input, cs_quadrature_type_t qtype, cs_real_t *eval)
 Function pointer for evaluating the normal flux of a quantity defined by analytic function. Use of a cs_cell_mesh_t structure. Case of tensor-valued quantities. More...
 
void cs_xdef_cw_eval_scal_avg_reduction_by_analytic (const cs_cell_mesh_t *cm, cs_real_t t_eval, void *input, cs_quadrature_type_t qtype, cs_real_t *eval)
 Function pointer for evaluating the reduction by averages of a analytic function by a cellwise process (usage of a cs_cell_mesh_t structure). This evaluation hinges on the computation of integrals (faces first, then cell) Scalar-valued case. More...
 
void cs_xdef_cw_eval_vect_avg_reduction_by_analytic (const cs_cell_mesh_t *cm, cs_real_t t_eval, void *input, cs_quadrature_type_t qtype, cs_real_t *eval)
 Function pointer for evaluating the reduction by averages of a analytic function by a cellwise process (usage of a cs_cell_mesh_t structure). This evaluation hinges on the computation of integrals (faces first, then cell) Vector-valued case. More...
 

Function Documentation

◆ cs_xdef_cw_eval_at_xyz_by_analytic()

void cs_xdef_cw_eval_at_xyz_by_analytic ( const cs_cell_mesh_t cm,
cs_lnum_t  n_points,
const cs_real_t xyz,
cs_real_t  time_eval,
void *  input,
cs_real_t eval 
)

Function pointer for evaluating a quantity defined by analytic function at a precise location (x, y, z) inside a cell Use of a cs_cell_mesh_t structure.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]n_pointsnumber of points where to compute the evaluation
[in]xyzwhere to compute the evaluation
[in]time_evalphysical time at which one evaluates the term
[in]inputpointer to an input structure
[in,out]evalresult of the evaluation

◆ cs_xdef_cw_eval_by_analytic()

void cs_xdef_cw_eval_by_analytic ( const cs_cell_mesh_t cm,
cs_real_t  time_eval,
void *  input,
cs_real_t eval 
)

Evaluate a quantity defined using an analytic function by a cellwise process (usage of a cs_cell_mesh_t structure)

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]time_evalphysical time at which one evaluates the term
[in]inputpointer to an input structure
[in,out]evalresult of the evaluation at cell center

◆ cs_xdef_cw_eval_by_array()

void cs_xdef_cw_eval_by_array ( const cs_cell_mesh_t cm,
cs_real_t  time_eval,
void *  input,
cs_real_t eval 
)

Evaluate a quantity at cells defined by an array. Array is assumed to be interlaced. Variation using a cs_cell_mesh_t structure.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]time_evalphysical time at which one evaluates the term
[in]inputpointer to an input structure
[in,out]evalresult of the evaluation at cell center

◆ cs_xdef_cw_eval_by_field()

void cs_xdef_cw_eval_by_field ( const cs_cell_mesh_t cm,
cs_real_t  time_eval,
void *  input,
cs_real_t eval 
)

Evaluate a quantity inside a cell defined using a field Variation using a cs_cell_mesh_t structure.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]time_evalphysical time at which one evaluates the term
[in]inputpointer to an input structure
[in,out]evalvalue of the property at the cell center

◆ cs_xdef_cw_eval_by_time_func()

void cs_xdef_cw_eval_by_time_func ( const cs_cell_mesh_t cm,
cs_real_t  time_eval,
void *  input,
cs_real_t eval 
)

Evaluate a quantity by a cellwise process using a definition by time function.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]time_evalphysical time at which one evaluates the term
[in]inputpointer to an input structure
[out]evalresult of the evaluation

◆ cs_xdef_cw_eval_c_int_by_analytic()

void cs_xdef_cw_eval_c_int_by_analytic ( const cs_cell_mesh_t cm,
double  t_eval,
cs_analytic_func_t ana,
void *  input,
cs_quadrature_tetra_integral_t qfunc,
cs_real_t eval 
)

Integrate an analytic function over a cell.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]t_evaltime at which the function is evaluated
[in]anaanalytic function to integrate
[in]inputpointer to an input structure
[in]qfuncquadrature function to use
[in,out]evalresult of the evaluation

◆ cs_xdef_cw_eval_f_int_by_analytic()

void cs_xdef_cw_eval_f_int_by_analytic ( const cs_cell_mesh_t cm,
double  t_eval,
short int  f,
cs_analytic_func_t ana,
void *  input,
cs_quadrature_tria_integral_t qfunc,
cs_real_t eval 
)

Integrate an analytic function over a face.

DOXYGEN_SHOULD_SKIP_THIS

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]t_evaltime at which the function is evaluated
[in]fface id in the local cell numbering
[in]anaanalytic function to integrate
[in]inputpointer to an input structure
[in]qfuncquadrature function to use
[in,out]evalresult of the evaluation

◆ cs_xdef_cw_eval_fc_int_by_analytic()

void cs_xdef_cw_eval_fc_int_by_analytic ( const cs_cell_mesh_t cm,
cs_real_t  t_eval,
cs_analytic_func_t ana,
void *  input,
const short int  dim,
cs_quadrature_tetra_integral_t q_tet,
cs_quadrature_tria_integral_t q_tri,
cs_real_t c_int,
cs_real_t f_int 
)

Routine to integrate an analytic function over a cell and its faces.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]t_evalphysical time at which one evaluates the term
[in]anaanalytic function to integrate
[in]inputpointer to an input structure
[in]dimdimension of the function
[in]q_tetquadrature function to use on tetrahedra
[in]q_triquadrature function to use on triangles
[out]c_intresult of the evaluation on the cell
[out]f_intresult of the evaluation on the faces

◆ cs_xdef_cw_eval_flux_at_vtx_by_analytic()

void cs_xdef_cw_eval_flux_at_vtx_by_analytic ( const cs_cell_mesh_t cm,
short int  f,
cs_real_t  time_eval,
void *  input,
cs_quadrature_type_t  qtype,
cs_real_t eval 
)

Function pointer for evaluating the normal flux of a quantity defined by analytic function. The normal flux is then added to each portion of face related to a vertex. Use of a cs_cell_mesh_t structure.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]flocal face id
[in]time_evalphysical time at which one evaluates the term
[in]inputpointer to an input structure
[in]qtypelevel of quadrature to use
[in,out]evalresult of the evaluation (updated inside)

◆ cs_xdef_cw_eval_flux_at_vtx_by_val()

void cs_xdef_cw_eval_flux_at_vtx_by_val ( const cs_cell_mesh_t cm,
short int  f,
cs_real_t  time_eval,
void *  input,
cs_real_t eval 
)

Function pointer for evaluating the normal flux of a quantity defined by values. The normal flux is then added to each portion of face related to a vertex. Use of a cs_cell_mesh_t structure.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]flocal face id
[in]time_evalphysical time at which one evaluates the term
[in]inputpointer to an input structure
[in,out]evalresult of the evaluation (updated inside)

◆ cs_xdef_cw_eval_flux_by_analytic()

void cs_xdef_cw_eval_flux_by_analytic ( const cs_cell_mesh_t cm,
short int  f,
cs_real_t  time_eval,
void *  input,
cs_quadrature_type_t  qtype,
cs_real_t eval 
)

Function pointer for evaluating the normal flux of a quantity defined by analytic function. Use of a cs_cell_mesh_t structure.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]flocal face id
[in]time_evalphysical time at which one evaluates the term
[in]inputpointer to an input structure
[in]qtypelevel of quadrature to use
[in,out]evalresult of the evaluation (set inside)

◆ cs_xdef_cw_eval_scal_avg_reduction_by_analytic()

void cs_xdef_cw_eval_scal_avg_reduction_by_analytic ( const cs_cell_mesh_t cm,
cs_real_t  t_eval,
void *  input,
cs_quadrature_type_t  qtype,
cs_real_t eval 
)

Function pointer for evaluating the reduction by averages of a analytic function by a cellwise process (usage of a cs_cell_mesh_t structure). This evaluation hinges on the computation of integrals (faces first, then cell) Scalar-valued case.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]t_evalphysical time at which one evaluates the term
[in]qtypequadrature type
[in]inputpointer to an input structure
[in,out]evalresult of the evaluation

◆ cs_xdef_cw_eval_scalar_avg_by_analytic()

void cs_xdef_cw_eval_scalar_avg_by_analytic ( const cs_cell_mesh_t cm,
cs_real_t  t_eval,
void *  input,
cs_quadrature_type_t  qtype,
cs_real_t eval 
)

Function pointer for evaluating a quantity defined through a descriptor (cs_xdef_t structure) by a cellwise process (usage of a cs_cell_mesh_t structure). This evaluation hinges on the computation of integrals.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]t_evalphysical time at which one evaluates the term
[in]qtypequadrature type
[in]inputpointer to an input structure
[in,out]evalresult of the evaluation

◆ cs_xdef_cw_eval_scalar_face_avg_by_analytic()

void cs_xdef_cw_eval_scalar_face_avg_by_analytic ( const cs_cell_mesh_t cm,
short int  f,
cs_real_t  time_eval,
void *  input,
cs_quadrature_type_t  qtype,
cs_real_t eval 
)

Function pointer for evaluating the average on a face of a scalar function defined through a descriptor (cs_xdef_t structure) by a cellwise process (usage of a cs_cell_mesh_t structure)

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]flocal face id
[in]time_evalphysical time at which one evaluates the term
[in]inputpointer to an input structure
[in]qtypelevel of quadrature to use
[in,out]evalresult of the evaluation

◆ cs_xdef_cw_eval_tensor_avg_by_analytic()

void cs_xdef_cw_eval_tensor_avg_by_analytic ( const cs_cell_mesh_t cm,
cs_real_t  t_eval,
void *  input,
cs_quadrature_type_t  qtype,
cs_real_t eval 
)

Function pointer for evaluating a quantity defined through a descriptor (cs_xdef_t structure) by a cellwise process (usage of a cs_cell_mesh_t structure). This evaluation hinges on the computation of integrals Tensor-valued case.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]t_evalphysical time at which one evaluates the term
[in]qtypequadrature type
[in]inputpointer to an input structure
[in,out]evalresult of the evaluation

◆ cs_xdef_cw_eval_tensor_face_avg_by_analytic()

void cs_xdef_cw_eval_tensor_face_avg_by_analytic ( const cs_cell_mesh_t cm,
short int  f,
cs_real_t  t_eval,
void *  input,
cs_quadrature_type_t  qtype,
cs_real_t eval 
)

Function pointer for evaluating the average on a face of a tensor function defined through a descriptor (cs_xdef_t structure) by a cellwise process (usage of a cs_cell_mesh_t structure)

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]flocal face id
[in]t_evalphysical time at which one evaluates the term
[in]inputpointer to an input structure
[in]qtypelevel of quadrature to use
[in,out]evalresult of the evaluation

◆ cs_xdef_cw_eval_tensor_flux_by_analytic()

void cs_xdef_cw_eval_tensor_flux_by_analytic ( const cs_cell_mesh_t cm,
short int  f,
cs_real_t  time_eval,
void *  input,
cs_quadrature_type_t  qtype,
cs_real_t eval 
)

Function pointer for evaluating the normal flux of a quantity defined by analytic function. Use of a cs_cell_mesh_t structure. Case of tensor-valued quantities.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]flocal face id
[in]time_evalphysical time at which one evaluates the term
[in]inputpointer to an input structure
[in]qtypelevel of quadrature to use
[in,out]evalresult of the evaluation (set inside)

◆ cs_xdef_cw_eval_vect_avg_reduction_by_analytic()

void cs_xdef_cw_eval_vect_avg_reduction_by_analytic ( const cs_cell_mesh_t cm,
cs_real_t  t_eval,
void *  input,
cs_quadrature_type_t  qtype,
cs_real_t eval 
)

Function pointer for evaluating the reduction by averages of a analytic function by a cellwise process (usage of a cs_cell_mesh_t structure). This evaluation hinges on the computation of integrals (faces first, then cell) Vector-valued case.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]t_evalphysical time at which one evaluates the term
[in]qtypequadrature type
[in]inputpointer to an input structure
[in,out]evalresult of the evaluation

◆ cs_xdef_cw_eval_vector_at_xyz_by_array()

void cs_xdef_cw_eval_vector_at_xyz_by_array ( const cs_cell_mesh_t cm,
cs_lnum_t  n_points,
const cs_real_t xyz,
cs_real_t  time_eval,
void *  input,
cs_real_t eval 
)

Function pointer for evaluating a quantity defined by analytic function at a precise location inside a cell Use of a cs_cell_mesh_t structure. Vector-valued case.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]n_pointsnumber of points where to compute the evaluation
[in]xyzwhere to compute the evaluation
[in]time_evalphysical time at which one evaluates the term
[in]inputpointer to an input structure
[in,out]evalresult of the evaluation

◆ cs_xdef_cw_eval_vector_at_xyz_by_field()

void cs_xdef_cw_eval_vector_at_xyz_by_field ( const cs_cell_mesh_t cm,
cs_lnum_t  n_points,
const cs_real_t xyz,
cs_real_t  time_eval,
void *  input,
cs_real_t eval 
)

Function pointer for evaluating a quantity defined by a field at a precise location inside a cell Use of a cs_cell_mesh_t structure. Vector-valued case.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]n_pointsnumber of points where to compute the evaluation
[in]xyzwhere to compute the evaluation
[in]time_evalphysical time at which one evaluates the term
[in]inputpointer to an input structure
[in,out]evalresult of the evaluation

◆ cs_xdef_cw_eval_vector_avg_by_analytic()

void cs_xdef_cw_eval_vector_avg_by_analytic ( const cs_cell_mesh_t cm,
cs_real_t  t_eval,
void *  input,
cs_quadrature_type_t  qtype,
cs_real_t eval 
)

Function pointer for evaluating a quantity defined through a descriptor (cs_xdef_t structure) by a cellwise process (usage of a cs_cell_mesh_t structure). This evaluation hinges on the computation of integrals Vector-valued case.

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]t_evalphysical time at which one evaluates the term
[in]qtypequadrature type
[in]inputpointer to an input structure
[in,out]evalresult of the evaluation

◆ cs_xdef_cw_eval_vector_face_avg_by_analytic()

void cs_xdef_cw_eval_vector_face_avg_by_analytic ( const cs_cell_mesh_t cm,
short int  f,
cs_real_t  t_eval,
void *  input,
cs_quadrature_type_t  qtype,
cs_real_t eval 
)

Function pointer for evaluating the average on a face of a vector function defined through a descriptor (cs_xdef_t structure) by a cellwise process (usage of a cs_cell_mesh_t structure)

Parameters
[in]cmpointer to a cs_cell_mesh_t structure
[in]flocal face id
[in]t_evalphysical time at which one evaluates the term
[in]inputpointer to an input structure
[in]qtypelevel of quadrature to use
[in,out]evalresult of the evaluation