#include "cs_defs.h"#include <assert.h>#include <ctype.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "bft_mem.h"#include "bft_error.h"#include "cs_log.h"#include "cs_mesh_location.h"#include "cs_assert.h"#include "cs_balance_by_zone.h"#include "cs_boundary_zone.h"#include "cs_elec_model.h"#include "cs_field_default.h"#include "cs_field_operator.h"#include "cs_function.h"#include "cs_function_default.h"#include "cs_mesh_quantities.h"#include "cs_math.h"#include "cs_parameters.h"#include "cs_physical_constants.h"#include "cs_physical_model.h"#include "cs_property.h"#include "cs_post.h"#include "cs_rotation.h"#include "cs_thermal_model.h"#include "cs_turbomachinery.h"#include "cs_volume_zone.h"Functions | |
| void | cs_function_default_define (void) |
| Define functions based on code_saturne case setup. | |
| cs_function_t * | cs_function_define_mpi_rank_id (cs_mesh_location_type_t location_id) |
| Create or access a function for evaluation of element's MPI rank id. | |
| cs_function_t * | cs_function_define_refinement_generation (cs_mesh_location_type_t location_id) |
| Create or access a function for evaluation of mesh element's refinement generation (i.e. level). | |
| cs_function_t * | cs_function_define_boundary_stress (void) |
| Define function object for computation of boundary stress. | |
| cs_function_t * | cs_function_define_boundary_stress_normal (void) |
| Define function object for computation of normal boundary stress. | |
| cs_function_t * | cs_function_define_boundary_stress_tangential (void) |
| Define function object for computation of tangential boundary stress. | |
| cs_function_t * | cs_function_define_boundary_thermal_flux (void) |
| Define function object for computation of boundary thermal flux. | |
| cs_function_t * | cs_function_define_boundary_nusselt (void) |
| Define function for computation of boundary layer Nusselt. | |
| cs_function_t * | cs_function_define_q_criterion (void) |
| Define function for computation of cell Q criterion. | |
| void | cs_function_class_or_zone_id (int location_id, cs_lnum_t n_elts, const cs_lnum_t *elt_ids, void *input, void *vals) |
| Extract optional boundary face class of element zone id. | |
| void | cs_function_field_boundary_nr (int location_id, cs_lnum_t n_elts, const cs_lnum_t *elt_ids, void *input, void *vals) |
| Compute non-reconstructed cell-based field values at boundary. | |
| void | cs_function_boundary_stress (int location_id, cs_lnum_t n_elts, const cs_lnum_t *elt_ids, void *input, void *vals) |
| Compute stress at boundary. | |
| void | cs_function_boundary_stress_normal (int location_id, cs_lnum_t n_elts, const cs_lnum_t *elt_ids, void *input, void *vals) |
| Compute normal stress at boundary. | |
| void | cs_function_boundary_stress_tangential (int location_id, cs_lnum_t n_elts, const cs_lnum_t *elt_ids, void *input, void *vals) |
| Compute tangential stress at boundary. | |
| void | cs_function_boundary_thermal_flux (int location_id, cs_lnum_t n_elts, const cs_lnum_t *elt_ids, void *input, void *vals) |
| Compute thermal flux at boundary (in | |
| void | cs_function_boundary_nusselt (int location_id, cs_lnum_t n_elts, const cs_lnum_t *elt_ids, void *input, void *vals) |
| Compute local Nusselt number near boundary. | |
| void | cs_function_q_criterion (int location_id, cs_lnum_t n_elts, const cs_lnum_t *elt_ids, void *input, void *vals) |
| Compute the Q-criterion from Hunt et. al over each cell of a specified volume region. | |
| cs_function_t * | cs_function_define_property_cells (char *property_name) |
| Define output function of a property (which is not a field). | |
Base predefined function objects.
| void cs_function_boundary_nusselt | ( | int | location_id, |
| cs_lnum_t | n_elts, | ||
| const cs_lnum_t * | elt_ids, | ||
| void * | input, | ||
| void * | vals ) |
Compute local Nusselt number near boundary.
This function matches the cs_eval_at_location_t function profile.
| [in] | location_id | base associated mesh location id |
| [in] | n_elts | number of associated elements |
| [in] | elt_ids | ids of associated elements, or null if no filtering is required |
| [in,out] | input | ignored |
| [in,out] | vals | pointer to output values (size: n_elts*dimension) |
| void cs_function_boundary_stress | ( | int | location_id, |
| cs_lnum_t | n_elts, | ||
| const cs_lnum_t * | elt_ids, | ||
| void * | input, | ||
| void * | vals ) |
Compute stress at boundary.
This function matches the cs_eval_at_location_t function profile.
| [in] | location_id | base associated mesh location id |
| [in] | n_elts | number of associated elements |
| [in] | elt_ids | ids of associated elements, or null if no filtering is required |
| [in,out] | input | ignored |
| [in,out] | vals | pointer to output values (size: n_elts*dimension) |
| void cs_function_boundary_stress_normal | ( | int | location_id, |
| cs_lnum_t | n_elts, | ||
| const cs_lnum_t * | elt_ids, | ||
| void * | input, | ||
| void * | vals ) |
Compute normal stress at boundary.
This function matches the cs_eval_at_location_t function profile.
| [in] | location_id | base associated mesh location id |
| [in] | n_elts | number of associated elements |
| [in] | elt_ids | ids of associated elements, or null if no filtering is required |
| [in,out] | input | ignored |
| [in,out] | vals | pointer to output values (size: n_elts*dimension) |
| void cs_function_boundary_stress_tangential | ( | int | location_id, |
| cs_lnum_t | n_elts, | ||
| const cs_lnum_t * | elt_ids, | ||
| void * | input, | ||
| void * | vals ) |
Compute tangential stress at boundary.
This function matches the cs_eval_at_location_t function profile.
| [in] | location_id | base associated mesh location id |
| [in] | n_elts | number of associated elements |
| [in] | elt_ids | ids of associated elements, or null if no filtering is required |
| [in,out] | input | ignored |
| [in,out] | vals | pointer to output values (size: n_elts*dimension) |
| void cs_function_boundary_thermal_flux | ( | int | location_id, |
| cs_lnum_t | n_elts, | ||
| const cs_lnum_t * | elt_ids, | ||
| void * | input, | ||
| void * | vals ) |
Compute thermal flux at boundary (in 
This function matches the cs_eval_at_location_t function profile.
| [in] | location_id | base associated mesh location id |
| [in] | n_elts | number of associated elements |
| [in] | elt_ids | ids of associated elements, or null if no filtering is required |
| [in,out] | input | ignored |
| [in,out] | vals | pointer to output values (size: n_elts*dimension) |
| void cs_function_class_or_zone_id | ( | int | location_id, |
| cs_lnum_t | n_elts, | ||
| const cs_lnum_t * | elt_ids, | ||
| void * | input, | ||
| void * | vals ) |
Extract optional boundary face class of element zone id.
For boundary faces, if no face classes have been defined by cs_boundary_zone_face_class_id the highest boundary face zone id is
For cells, the highest cell volume zone id is used.
This function matches the cs_eval_at_location_t function profile.
| [in] | location_id | base associated mesh location id |
| [in] | n_elts | number of associated elements |
| [in] | elt_ids | ids of associated elements, or null if no filtering is required |
| [in,out] | input | pointer to field |
| [in,out] | vals | pointer to output values (size: n_elts*dimension) |
| void cs_function_default_define | ( | void | ) |
Define functions based on code_saturne case setup.
| cs_function_t * cs_function_define_boundary_nusselt | ( | void | ) |
Define function for computation of boundary layer Nusselt.
| cs_function_t * cs_function_define_boundary_stress | ( | void | ) |
Define function object for computation of boundary stress.
| cs_function_t * cs_function_define_boundary_stress_normal | ( | void | ) |
Define function object for computation of normal boundary stress.
| cs_function_t * cs_function_define_boundary_stress_tangential | ( | void | ) |
Define function object for computation of tangential boundary stress.
| cs_function_t * cs_function_define_boundary_thermal_flux | ( | void | ) |
Define function object for computation of boundary thermal flux.
| cs_function_t * cs_function_define_mpi_rank_id | ( | cs_mesh_location_type_t | location_id | ) |
Create or access a function for evaluation of element's MPI rank id.
| [in] | location_id | base associated mesh location id |
| cs_function_t * cs_function_define_property_cells | ( | char * | property_name | ) |
Define output function of a property (which is not a field).
| [in] | property_name | name of the property |
| cs_function_t * cs_function_define_q_criterion | ( | void | ) |
Define function for computation of cell Q criterion.
| cs_function_t * cs_function_define_refinement_generation | ( | cs_mesh_location_type_t | location_id | ) |
Create or access a function for evaluation of mesh element's refinement generation (i.e. level).
| [in] | location_id | base associated mesh location id |
| void cs_function_field_boundary_nr | ( | int | location_id, |
| cs_lnum_t | n_elts, | ||
| const cs_lnum_t * | elt_ids, | ||
| void * | input, | ||
| void * | vals ) |
Compute non-reconstructed cell-based field values at boundary.
This function matches the cs_eval_at_location_t function profile.
| [in] | location_id | base associated mesh location id |
| [in] | n_elts | number of associated elements |
| [in] | elt_ids | ids of associated elements, or null if no filtering is required |
| [in,out] | input | pointer to field |
| [in,out] | vals | pointer to output values (size: n_elts*dimension) |
| void cs_function_q_criterion | ( | int | location_id, |
| cs_lnum_t | n_elts, | ||
| const cs_lnum_t * | elt_ids, | ||
| void * | input, | ||
| void * | vals ) |
Compute the Q-criterion from Hunt et. al over each cell of a specified volume region.
![\[ Q = \tens{\Omega}:\tens{\Omega} -
\deviator{ \left(\tens{S} \right)}:\deviator{ \left(\tens{S} \right)}
\]](form_153.png)
where 

This function matches the cs_eval_at_location_t function profile.
| [in] | location_id | base associated mesh location id |
| [in] | n_elts | number of associated elements |
| [in] | elt_ids | ids of associated elements, or null if no filtering is required |
| [in,out] | input | ignored |
| [in,out] | vals | pointer to output values (size: n_elts*dimension) |