![]() |
programmer's documentation
|
#include "cs_defs.h"
#include <limits.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_math.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_timer_stats.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_dlvo.h"
#include "cs_lagr_tracking.h"
Functions | |
void | cs_f_lagr_pointers (int dim_ipepa[2], int dim_pepa[2], int dim_eptp[2], int dim_eptpa[2], int dim_ptsvar[2], cs_int_t **p_ipeta, cs_real_t **p_peta, cs_real_t **p_eptp, cs_real_t **p_eptpa, cs_real_t **p_ptsvar, cs_int_t **p_nbpart, cs_real_t **p_dnbpar, cs_int_t **p_nbpout, cs_real_t **p_dnbpou, cs_int_t **p_nbperr, cs_real_t **p_dnbper, cs_int_t **p_nbpdep, cs_real_t **p_dnbdep, cs_int_t **p_npencr, cs_real_t **p_dnpenc) |
void | cs_f_lagr_part_copy (cs_lnum_t dest, cs_lnum_t src) |
void | cs_f_lagr_current_to_previous (cs_lnum_t pn) |
void | lagbeg (const cs_int_t *nordre, const cs_int_t *nlayer, const cs_int_t *iphyla, const cs_int_t *idepst, const cs_int_t *idlvo, const cs_int_t *irough, const cs_int_t *ireent, const cs_int_t *iclogst, const cs_int_t *nvls, const cs_int_t *nbclst, cs_lnum_t icocel[], cs_lnum_t itycel[], cs_int_t *jisor, cs_int_t *jisora, cs_int_t *jirka, cs_int_t *jord1, cs_int_t *jrval, cs_int_t *jrpoi, cs_int_t *jrtsp, cs_int_t *jdp, cs_int_t *jmp, cs_int_t *jxp, cs_int_t *jyp, cs_int_t *jzp, cs_int_t *jup, cs_int_t *jvp, cs_int_t *jwp, cs_int_t *juf, cs_int_t *jvf, cs_int_t *jwf, cs_int_t *jtaux, cs_int_t jbx1[3], cs_int_t jtsup[3], cs_int_t jtsuf[3], cs_int_t *jryplu, cs_int_t *jrinpf, cs_int_t *jdfac, cs_int_t *jimark, cs_int_t *jtp, cs_int_t jhp[], cs_int_t *jtf, cs_int_t *jmwat, cs_int_t jmch[], cs_int_t jmck[], cs_int_t *jcp, cs_int_t *jrdck, cs_int_t *jrd0p, cs_int_t *jinch, cs_int_t jrhock[], cs_int_t *jreps, cs_int_t *jdepo, cs_int_t *jnbasg, cs_int_t *jnbasp, cs_int_t *jfadh, cs_int_t *jmfadh, cs_int_t *jndisp, cs_int_t *jclst, cs_int_t *jvls, cs_int_t *jdp2, cs_int_t *jnbpoi, cs_int_t *jrtdep, cs_int_t *jrhcon) |
void | getbdy (const cs_int_t *nflagm, const cs_int_t *nfrlag, const cs_int_t *injcon, const cs_int_t ilflag[], const cs_int_t iusncl[], const cs_int_t iusclb[], const cs_real_t deblag[], const cs_int_t ifrlag[]) |
void | dplprt (cs_lnum_t *p_scheme_order, cs_real_t boundary_stat[], const cs_lnum_t *iensi3, const cs_lnum_t *inbr, const cs_lnum_t *inbrbd, const cs_lnum_t *iflm, const cs_lnum_t *iflmbd, const cs_lnum_t *iang, const cs_lnum_t *iangbd, const cs_lnum_t *ivit, const cs_lnum_t *ivitbd, const cs_lnum_t *iencnb, const cs_lnum_t *iencma, const cs_lnum_t *iencdi, const cs_lnum_t *iencck, const cs_lnum_t *iencnbbd, const cs_lnum_t *iencmabd, const cs_lnum_t *iencdibd, const cs_lnum_t *iencckbd, const cs_lnum_t *inclg, const cs_lnum_t *inclgt, const cs_lnum_t *iscovc, const cs_lnum_t *ihdepm, const cs_lnum_t *ihdepv, const cs_lnum_t *ihsum, const cs_lnum_t *nusbor, cs_lnum_t iusb[], cs_real_t visc_length[], cs_real_t dlgeo[], const cs_real_t tprenc[], const cs_real_t visref[], const cs_real_t enc1[], const cs_real_t enc2[], const cs_real_t *tkelvi) |
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... | |
int | cs_lagr_resize_particle_set (cs_lnum_t n_min_particles) |
Resize particle set buffers if needed. More... | |
void | cs_lagr_set_reallocation_factor (double f) |
Set reallocation factor for particle sets. More... | |
void | cs_lagr_set_n_g_particles_max (unsigned long long n_g_particles_max) |
Set global maximum number of particles. More... | |
void | cs_lagr_particle_set_dump (const cs_lagr_particle_set_t *particles) |
Dump a cs_lagr_particle_t structure. More... | |
void cs_f_lagr_current_to_previous | ( | cs_lnum_t | pn | ) |
void cs_f_lagr_pointers | ( | int | dim_ipepa[2], |
int | dim_pepa[2], | ||
int | dim_eptp[2], | ||
int | dim_eptpa[2], | ||
int | dim_ptsvar[2], | ||
cs_int_t ** | p_ipeta, | ||
cs_real_t ** | p_peta, | ||
cs_real_t ** | p_eptp, | ||
cs_real_t ** | p_eptpa, | ||
cs_real_t ** | p_ptsvar, | ||
cs_int_t ** | p_nbpart, | ||
cs_real_t ** | p_dnbpar, | ||
cs_int_t ** | p_nbpout, | ||
cs_real_t ** | p_dnbpou, | ||
cs_int_t ** | p_nbperr, | ||
cs_real_t ** | p_dnbper, | ||
cs_int_t ** | p_nbpdep, | ||
cs_real_t ** | p_dnbdep, | ||
cs_int_t ** | p_npencr, | ||
cs_real_t ** | p_dnpenc | ||
) |
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 |
int cs_lagr_resize_particle_set | ( | cs_lnum_t | n_min_particles | ) |
Resize particle set buffers if needed.
By default, the total number of particles is not limited. A global limit may be set using cs_lagr_set_n_g_particles_max.
[in] | n_min_particles | minimum number of particles required |
void cs_lagr_set_n_g_particles_max | ( | unsigned long long | n_g_particles_max | ) |
void cs_lagr_set_reallocation_factor | ( | double | f | ) |
Set reallocation factor for particle sets.
This factor determines the multiplier used for reallocations when the particle set's buffers are too small to handle the new number of particles.
[in] | f | reallocation size multiplier |
void dplprt | ( | cs_lnum_t * | p_scheme_order, |
cs_real_t | boundary_stat[], | ||
const cs_lnum_t * | iensi3, | ||
const cs_lnum_t * | inbr, | ||
const cs_lnum_t * | inbrbd, | ||
const cs_lnum_t * | iflm, | ||
const cs_lnum_t * | iflmbd, | ||
const cs_lnum_t * | iang, | ||
const cs_lnum_t * | iangbd, | ||
const cs_lnum_t * | ivit, | ||
const cs_lnum_t * | ivitbd, | ||
const cs_lnum_t * | iencnb, | ||
const cs_lnum_t * | iencma, | ||
const cs_lnum_t * | iencdi, | ||
const cs_lnum_t * | iencck, | ||
const cs_lnum_t * | iencnbbd, | ||
const cs_lnum_t * | iencmabd, | ||
const cs_lnum_t * | iencdibd, | ||
const cs_lnum_t * | iencckbd, | ||
const cs_lnum_t * | inclg, | ||
const cs_lnum_t * | inclgt, | ||
const cs_lnum_t * | iscovc, | ||
const cs_lnum_t * | ihdepm, | ||
const cs_lnum_t * | ihdepv, | ||
const cs_lnum_t * | ihsum, | ||
const cs_lnum_t * | nusbor, | ||
cs_lnum_t | iusb[], | ||
cs_real_t | visc_length[], | ||
cs_real_t | dlgeo[], | ||
const cs_real_t | tprenc[], | ||
const cs_real_t | visref[], | ||
const cs_real_t | enc1[], | ||
const cs_real_t | enc2[], | ||
const cs_real_t * | tkelvi | ||
) |
void getbdy | ( | const cs_int_t * | nflagm, |
const cs_int_t * | nfrlag, | ||
const cs_int_t * | injcon, | ||
const cs_int_t | ilflag[], | ||
const cs_int_t | iusncl[], | ||
const cs_int_t | iusclb[], | ||
const cs_real_t | deblag[], | ||
const cs_int_t | ifrlag[] | ||
) |
void lagbeg | ( | const cs_int_t * | nordre, |
const cs_int_t * | nlayer, | ||
const cs_int_t * | iphyla, | ||
const cs_int_t * | idepst, | ||
const cs_int_t * | idlvo, | ||
const cs_int_t * | irough, | ||
const cs_int_t * | ireent, | ||
const cs_int_t * | iclogst, | ||
const cs_int_t * | nvls, | ||
const cs_int_t * | nbclst, | ||
cs_lnum_t | icocel[], | ||
cs_lnum_t | itycel[], | ||
cs_int_t * | jisor, | ||
cs_int_t * | jisora, | ||
cs_int_t * | jirka, | ||
cs_int_t * | jord1, | ||
cs_int_t * | jrval, | ||
cs_int_t * | jrpoi, | ||
cs_int_t * | jrtsp, | ||
cs_int_t * | jdp, | ||
cs_int_t * | jmp, | ||
cs_int_t * | jxp, | ||
cs_int_t * | jyp, | ||
cs_int_t * | jzp, | ||
cs_int_t * | jup, | ||
cs_int_t * | jvp, | ||
cs_int_t * | jwp, | ||
cs_int_t * | juf, | ||
cs_int_t * | jvf, | ||
cs_int_t * | jwf, | ||
cs_int_t * | jtaux, | ||
cs_int_t | jbx1[3], | ||
cs_int_t | jtsup[3], | ||
cs_int_t | jtsuf[3], | ||
cs_int_t * | jryplu, | ||
cs_int_t * | jrinpf, | ||
cs_int_t * | jdfac, | ||
cs_int_t * | jimark, | ||
cs_int_t * | jtp, | ||
cs_int_t | jhp[], | ||
cs_int_t * | jtf, | ||
cs_int_t * | jmwat, | ||
cs_int_t | jmch[], | ||
cs_int_t | jmck[], | ||
cs_int_t * | jcp, | ||
cs_int_t * | jrdck, | ||
cs_int_t * | jrd0p, | ||
cs_int_t * | jinch, | ||
cs_int_t | jrhock[], | ||
cs_int_t * | jreps, | ||
cs_int_t * | jdepo, | ||
cs_int_t * | jnbasg, | ||
cs_int_t * | jnbasp, | ||
cs_int_t * | jfadh, | ||
cs_int_t * | jmfadh, | ||
cs_int_t * | jndisp, | ||
cs_int_t * | jclst, | ||
cs_int_t * | jvls, | ||
cs_int_t * | jdp2, | ||
cs_int_t * | jnbpoi, | ||
cs_int_t * | jrtdep, | ||
cs_int_t * | jrhcon | ||
) |