#include "base/cs_defs.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>
#include <assert.h>
#include "lagr/cs_lagr_agglo.h"
#include <limits.h>
#include <stddef.h>
#include <ctype.h>
#include "bft/bft_mem.h"
#include "bft/bft_printf.h"
#include "base/cs_base.h"
#include "base/cs_field.h"
#include "base/cs_field_pointer.h"
#include "base/cs_math.h"
#include "base/cs_prototypes.h"
#include "base/cs_parameters.h"
#include "base/cs_time_step.h"
#include "base/cs_physical_constants.h"
#include "base/cs_thermal_model.h"
#include "turb/cs_turbulence_model.h"
#include "lagr/cs_lagr.h"
#include "lagr/cs_lagr_particle.h"
#include "base/cs_random.h"
Functions | |
void | cs_lagr_agglo_merge_arrays (cs_lnum_2_t arr1[], cs_lnum_2_t arr2[], cs_lnum_t n1, cs_lnum_t n2, cs_lnum_2_t arr3[]) |
Merge two sorted arrays in a third sorted array. | |
cs_lnum_t | cs_lagr_agglomeration (cs_lnum_t cell_id, cs_real_t dt, cs_real_t minimum_particle_diam, cs_lnum_t start_particle, cs_lnum_t end_particle) |
Agglomeration algorithm based on algorithms used in rare gas modelling. |
void cs_lagr_agglo_merge_arrays | ( | cs_lnum_2_t | arr1[], |
cs_lnum_2_t | arr2[], | ||
cs_lnum_t | n1, | ||
cs_lnum_t | n2, | ||
cs_lnum_2_t | arr3[] ) |
Merge two sorted arrays in a third sorted array.
[in] | arr1 | first sorted array |
[in] | arr2 | second sorted array |
[in] | n1 | size of first sorted array |
[in] | n2 | size of second sorted array |
[in,out] | arr3 | preallocated array that will contain the sorted merge of the two previous arrays |
cs_lnum_t cs_lagr_agglomeration | ( | cs_lnum_t | cell_id, |
cs_real_t | dt, | ||
cs_real_t | minimum_particle_diam, | ||
cs_lnum_t | start_particle, | ||
cs_lnum_t | end_particle ) |
Agglomeration algorithm based on algorithms used in rare gas modelling.
Parcels represent physical particles with similar properties (size). The number of physical particles in a parcel is represented by the statistical weight.
Working hypotheses:
1) Discrete diameters
[in] | cell_id | current cell id |
[in] | dt | time step |
[in] | minimum_particle_diam | minumum diameter (monomere diameter) |
[in] | start_particle | index of the first particle |
[in] | end_particle | index after the last particle |