![]() |
programmer's documentation
|
#include "cs_defs.h"
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include <float.h>
#include <assert.h>
#include "bft_printf.h"
#include "bft_error.h"
#include "bft_mem.h"
#include "fvm_periodicity.h"
#include "cs_base.h"
#include "cs_halo.h"
#include "cs_interface.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
#include "cs_order.h"
#include "cs_parall.h"
#include "cs_prototypes.h"
#include "cs_search.h"
#include "cs_field.h"
#include "cs_field_pointer.h"
#include "cs_lagr_utils.h"
#include "cs_lagr_clogging.h"
#include "cs_lagr_roughness.h"
#include "cs_lagr_tracking.h"
Macros | |
#define | N_GEOL 13 |
#define | CS_LAGR_MIN_COMM_BUF_SIZE 8 |
#define | CS_LAGR_MAX_PROPAGATION_LOOPS 30 |
Enumerations | |
enum | { CS_LAGR_IENTRL = 1, CS_LAGR_ISORTL = 2, CS_LAGR_IREBOL = 3, CS_LAGR_IDEPO1 = 4, CS_LAGR_IDEPO2 = 5, CS_LAGR_IENCRL = 7, CS_LAGR_IDEPFA = 13, CS_LAGR_ISYMTL = 14 } |
enum | { CS_LAGR_PART_TO_DELETE = 0, CS_LAGR_PART_TO_SYNC = 1, CS_LAGR_PART_TREATED = 2, CS_LAGR_PART_STUCK = 3, CS_LAGR_PART_OUT = 4, CS_LAGR_PART_ERR = 5 } |
enum | { CS_LAGR_PART_IN_FLOW = 0, CS_LAGR_PART_DEPOSITED = 1, CS_LAGR_PART_ROLLING = 2, CS_LAGR_PART_NO_MOTION = 10 } |
enum | { CS_LAGR_PART_MOVE_OFF = 0, CS_LAGR_PART_MOVE_ON = 1 } |
enum | { CS_LAGR_SWITCH_OFF = 0, CS_LAGR_SWITCH_ON = 1 } |
enum | cs_lagr_tracking_error_t { CS_LAGR_TRACKING_OK, CS_LAGR_TRACKING_ERR_INSIDE_B_FACES, CS_LAGR_TRACKING_ERR_MAX_LOOPS, CS_LAGR_TRACKING_ERR_DISPLACEMENT_I_FACE, CS_LAGR_TRACKING_ERR_DISPLACEMENT_B_FACE } |
enum | _array_map_id_t { ETTP = 1, IETTP, TEPA, ITEPA, IPRKID } |
enum | { X, Y, Z } |
Functions | |
void | CS_PROCF (lagbeg, LAGBEG) const |
void | CS_PROCF (prtget, PRTGET) const |
void | CS_PROCF (prtput, PRTPUT) const |
void | CS_PROCF (getbdy, GETBDY) const |
void | CS_PROCF (dplprt, DPLPRT) |
void | CS_PROCF (ucdprt, UCDPRT) const |
void | cs_lagr_get_attr_info (const cs_lagr_particle_set_t *particles, int time_id, cs_lagr_attribute_t attr, size_t *extents, size_t *size, ptrdiff_t *displ, cs_datatype_t *datatype, int *count) |
Get data extents for a given particle attribute. More... | |
cs_lagr_particle_set_t * | cs_lagr_get_particle_set (void) |
Return pointer to the main cs_lagr_particle_set_t structure. More... | |
void | cs_lagr_destroy (void) |
Delete particle set structure and other useful buffers. More... | |
void | cs_lagr_particle_set_dump (const cs_lagr_particle_set_t *particles) |
Dump a cs_lagr_particle_t structure. More... | |
Variables | |
const char * | cs_lagr_attribute_name [] |
const cs_lagr_param_t * | cs_glob_lagr_params = &_lagr_param |
#define CS_LAGR_MAX_PROPAGATION_LOOPS 30 |
#define CS_LAGR_MIN_COMM_BUF_SIZE 8 |
#define N_GEOL 13 |
anonymous enum |
anonymous enum |
anonymous enum |
enum _array_map_id_t |
void cs_lagr_destroy | ( | void | ) |
Delete particle set structure and other useful buffers.
void cs_lagr_get_attr_info | ( | const cs_lagr_particle_set_t * | particles, |
int | time_id, | ||
cs_lagr_attribute_t | attr, | ||
size_t * | extents, | ||
size_t * | size, | ||
ptrdiff_t * | displ, | ||
cs_datatype_t * | datatype, | ||
int * | count | ||
) |
Get data extents for a given particle attribute.
For attributes not currently present, the displacement and data size should be -1 and 0 respectively.
[in] | particles | associated particle set |
[in] | time_id | associated time id (0: current, 1: previous) |
[in] | attr | particle attribute |
[out] | extents | size (in bytes) of particle structure, or NULL |
[out] | size | size (in bytes) of attribute in particle structure, or NULL |
[out] | displ | displacement (in bytes) in particle structure, or NULL |
[out] | datatype | datatype of associated attribute, or NULL |
[out] | count | number of type values associated with attribute, or NULL |
cs_lagr_particle_set_t* cs_lagr_get_particle_set | ( | void | ) |
Return pointer to the main cs_lagr_particle_set_t structure.
void cs_lagr_particle_set_dump | ( | const cs_lagr_particle_set_t * | particles | ) |
Dump a cs_lagr_particle_t structure.
[in] | particles | cs_lagr_particle_t structure to dump |
void CS_PROCF | ( | lagbeg | , |
LAGBEG | |||
) | const |
void CS_PROCF | ( | prtget | , |
PRTGET | |||
) | const |
void CS_PROCF | ( | prtput | , |
PRTPUT | |||
) | const |
void CS_PROCF | ( | getbdy | , |
GETBDY | |||
) | const |
void CS_PROCF | ( | dplprt | , |
DPLPRT | |||
) |
void CS_PROCF | ( | ucdprt | , |
UCDPRT | |||
) | const |
const cs_lagr_param_t* cs_glob_lagr_params = &_lagr_param |
const char* cs_lagr_attribute_name[] |