|
programmer's documentation
|
#include "cs_defs.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <assert.h>#include <float.h>#include <bft_mem.h>#include <bft_printf.h>#include "cs_mesh_location.h"#include "cs_evaluate.h"
Functions | |
| static double | _analytic_quad_tet1 (double tcur, cs_real_3_t xv, cs_real_3_t xe, cs_real_3_t xf, cs_real_3_t xc, cs_analytic_func_t *ana) |
| Compute the integral over a tetrahedron of the barycentric subdiv. using a barycentric quadrature rule. More... | |
| static double | _analytic_quad_tet4 (double tcur, cs_real_3_t xv, cs_real_3_t xe, cs_real_3_t xf, cs_real_3_t xc, cs_analytic_func_t *ana) |
| Compute the integral over a tetrahedron of the barycentric subdiv. with a quadrature rule using 4 Gauss points and a unique weight. More... | |
| static double | _analytic_quad_tet5 (double tcur, cs_real_3_t xv, cs_real_3_t xe, cs_real_3_t xf, cs_real_3_t xc, cs_analytic_func_t *ana) |
| Compute the integral over a tetrahedron of the barycentric subdiv. with a quadrature rule using 5 Gauss points and 5 weights. More... | |
| static void | _scd_by_analytic_func (const cs_mesh_t *m, const cs_cdo_quantities_t *quant, const cs_cdo_connect_t *connect, cs_analytic_func_t *ana, double tcur, int loc_id, cs_quadra_type_t quad_type, double values[]) |
| Compute the integral over a dual cell (or a portion) of a variable defined by a user function on a selection of (primal) cells. More... | |
| static void | _scp_by_analytic_func (const cs_mesh_t *m, const cs_cdo_quantities_t *quant, const cs_cdo_connect_t *connect, cs_analytic_func_t *ana, double tcur, int loc_id, cs_quadra_type_t quad_type, double values[]) |
| Compute the integral over primal cells (or a portion) of a variable defined by a analytical function. More... | |
| static void | _scd_by_val (const cs_cdo_quantities_t *quant, const cs_cdo_connect_t *connect, const double const_val, int loc_id, double values[]) |
| Compute the integral over a dual cell (or a portion) of a value defined on a selection of (primal) cells. More... | |
| static void | _scp_by_val (const cs_cdo_quantities_t *quant, const double const_val, int loc_id, double values[]) |
| Compute the integral over a (primal) cell of a value defined on a selection of (primal) cells. More... | |
| void | cs_evaluate (const cs_mesh_t *m, const cs_cdo_quantities_t *quant, const cs_cdo_connect_t *connect, double tcur, cs_flag_t dof_flag, int loc_id, cs_param_def_type_t def_type, cs_quadra_type_t quad_type, cs_def_t def, double *p_values[]) |
| Compute the contribution related to a source term or a boundary condition for instance. More... | |
|
inlinestatic |
Compute the integral over a tetrahedron of the barycentric subdiv. using a barycentric quadrature rule.
| [in] | tcur | current physical time of the simulation |
| [in] | xv | first point of the tetrahedron |
| [in] | xe | second point of the tetrahedron |
| [in] | xf | third point of the tetrahedron |
| [in] | xc | fourth point of the tetrahedron |
| [in] | ana | pointer to the analytic function |
|
inlinestatic |
Compute the integral over a tetrahedron of the barycentric subdiv. with a quadrature rule using 4 Gauss points and a unique weight.
| [in] | tcur | current physical time of the simulation |
| [in] | xv | first point of the tetrahedron |
| [in] | xe | second point of the tetrahedron |
| [in] | xf | third point of the tetrahedron |
| [in] | xc | fourth point of the tetrahedron |
| [in] | ana | pointer to the analytic function |
|
inlinestatic |
Compute the integral over a tetrahedron of the barycentric subdiv. with a quadrature rule using 5 Gauss points and 5 weights.
| [in] | tcur | current physical time of the simulation |
| [in] | xv | first point of the tetrahedron |
| [in] | xe | second point of the tetrahedron |
| [in] | xf | third point of the tetrahedron |
| [in] | xc | fourth point of the tetrahedron |
| [in] | ana | pointer to the analytic function |
|
static |
Compute the integral over a dual cell (or a portion) of a variable defined by a user function on a selection of (primal) cells.
| [in] | m | pointer to a cs_mesh_t struct. |
| [in] | quant | additional mesh quantities struct. |
| [in] | connect | pointer to a cs_cdo_connect_t struct. |
| [in] | ana | pointer to the analytic function |
| [in] | tcur | current physical time of the simulation |
| [in] | loc_id | id related to a cs_mesh_location_t struct. |
| [in] | quad_type | type of quadrature to use |
| [in,out] | values | pointer to the computed values |
|
static |
Compute the integral over a dual cell (or a portion) of a value defined on a selection of (primal) cells.
| [in] | quant | additional mesh quantities struct. |
| [in] | connect | pointer to a cs_cdo_connect_t struct. |
| [in] | const_val | constant value |
| [in] | loc_id | id related to a cs_mesh_location_t struct. |
| [in] | get | accessor to the value |
| [in,out] | values | pointer to the computed values |
|
static |
Compute the integral over primal cells (or a portion) of a variable defined by a analytical function.
| [in] | m | pointer to a cs_mesh_t struct. |
| [in] | quant | additional mesh quantities struct. |
| [in] | connect | pointer to a cs_cdo_connect_t struct. |
| [in] | ana | pointer to the analytic function |
| [in] | tcur | current physical time of the simulation |
| [in] | loc_id | id related to a cs_mesh_location_t struct. |
| [in] | quad_type | type of quadrature to use |
| [in,out] | values | pointer to the computed values |
|
static |
Compute the integral over a (primal) cell of a value defined on a selection of (primal) cells.
| [in] | quant | additional mesh quantities struct. |
| [in] | const_val | constant value |
| [in] | loc_id | id related to a cs_mesh_location_t struct. |
| [in,out] | p_values | pointer to the computed values |
| void cs_evaluate | ( | const cs_mesh_t * | m, |
| const cs_cdo_quantities_t * | quant, | ||
| const cs_cdo_connect_t * | connect, | ||
| double | tcur, | ||
| cs_flag_t | dof_flag, | ||
| int | loc_id, | ||
| cs_param_def_type_t | def_type, | ||
| cs_quadra_type_t | quad_type, | ||
| cs_def_t | def, | ||
| double * | p_values[] | ||
| ) |
Compute the contribution related to a source term or a boundary condition for instance.
| [in] | m | pointer to a cs_mesh_t struct. |
| [in] | quant | additional mesh quantities struct. |
| [in] | connect | pointer to a cs_cdo_connect_t struct. |
| [in] | tcur | current physical time of the simulation |
| [in] | dof_flag | indicate where the evaluation has to be done |
| [in] | loc_id | id related to a cs_mesh_location_t struct. |
| [in] | def_type | type of definition |
| [in] | quad_type | type of quadrature (not always used) |
| [in] | def | access to the definition of the values |
| [in,out] | p_values | pointer to the computed values (allocated if NULL) |
1.8.7