My Project
programmer's documentation
|
#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"
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... | |
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.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | n_points | number of points where to compute the evaluation |
[in] | xyz | where to compute the evaluation |
[in] | time_eval | physical time at which one evaluates the term |
[in] | input | pointer to an input structure |
[in,out] | eval | result of the evaluation |
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)
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | time_eval | physical time at which one evaluates the term |
[in] | input | pointer to an input structure |
[in,out] | eval | result of the evaluation at cell center |
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.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | time_eval | physical time at which one evaluates the term |
[in] | input | pointer to an input structure |
[in,out] | eval | result of the evaluation at cell center |
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.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | time_eval | physical time at which one evaluates the term |
[in] | input | pointer to an input structure |
[in,out] | eval | value of the property at the cell center |
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.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | time_eval | physical time at which one evaluates the term |
[in] | input | pointer to an input structure |
[out] | eval | result of the evaluation |
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.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | t_eval | time at which the function is evaluated |
[in] | ana | analytic function to integrate |
[in] | input | pointer to an input structure |
[in] | qfunc | quadrature function to use |
[in,out] | eval | result of the evaluation |
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
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | t_eval | time at which the function is evaluated |
[in] | f | face id in the local cell numbering |
[in] | ana | analytic function to integrate |
[in] | input | pointer to an input structure |
[in] | qfunc | quadrature function to use |
[in,out] | eval | result of the evaluation |
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.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | t_eval | physical time at which one evaluates the term |
[in] | ana | analytic function to integrate |
[in] | input | pointer to an input structure |
[in] | dim | dimension of the function |
[in] | q_tet | quadrature function to use on tetrahedra |
[in] | q_tri | quadrature function to use on triangles |
[out] | c_int | result of the evaluation on the cell |
[out] | f_int | result of the evaluation on the faces |
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.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | f | local face id |
[in] | time_eval | physical time at which one evaluates the term |
[in] | input | pointer to an input structure |
[in] | qtype | level of quadrature to use |
[in,out] | eval | result of the evaluation (updated inside) |
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.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | f | local face id |
[in] | time_eval | physical time at which one evaluates the term |
[in] | input | pointer to an input structure |
[in,out] | eval | result of the evaluation (updated inside) |
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.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | f | local face id |
[in] | time_eval | physical time at which one evaluates the term |
[in] | input | pointer to an input structure |
[in] | qtype | level of quadrature to use |
[in,out] | eval | result of the evaluation (set inside) |
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.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | t_eval | physical time at which one evaluates the term |
[in] | qtype | quadrature type |
[in] | input | pointer to an input structure |
[in,out] | eval | result of the evaluation |
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.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | t_eval | physical time at which one evaluates the term |
[in] | qtype | quadrature type |
[in] | input | pointer to an input structure |
[in,out] | eval | result of the evaluation |
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)
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | f | local face id |
[in] | time_eval | physical time at which one evaluates the term |
[in] | input | pointer to an input structure |
[in] | qtype | level of quadrature to use |
[in,out] | eval | result of the evaluation |
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.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | t_eval | physical time at which one evaluates the term |
[in] | qtype | quadrature type |
[in] | input | pointer to an input structure |
[in,out] | eval | result of the evaluation |
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)
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | f | local face id |
[in] | t_eval | physical time at which one evaluates the term |
[in] | input | pointer to an input structure |
[in] | qtype | level of quadrature to use |
[in,out] | eval | result of the evaluation |
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.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | f | local face id |
[in] | time_eval | physical time at which one evaluates the term |
[in] | input | pointer to an input structure |
[in] | qtype | level of quadrature to use |
[in,out] | eval | result of the evaluation (set inside) |
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.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | t_eval | physical time at which one evaluates the term |
[in] | qtype | quadrature type |
[in] | input | pointer to an input structure |
[in,out] | eval | result of the evaluation |
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.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | n_points | number of points where to compute the evaluation |
[in] | xyz | where to compute the evaluation |
[in] | time_eval | physical time at which one evaluates the term |
[in] | input | pointer to an input structure |
[in,out] | eval | result of the evaluation |
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.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | n_points | number of points where to compute the evaluation |
[in] | xyz | where to compute the evaluation |
[in] | time_eval | physical time at which one evaluates the term |
[in] | input | pointer to an input structure |
[in,out] | eval | result of the evaluation |
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.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | t_eval | physical time at which one evaluates the term |
[in] | qtype | quadrature type |
[in] | input | pointer to an input structure |
[in,out] | eval | result of the evaluation |
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)
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | f | local face id |
[in] | t_eval | physical time at which one evaluates the term |
[in] | input | pointer to an input structure |
[in] | qtype | level of quadrature to use |
[in,out] | eval | result of the evaluation |