9.1
general documentation
cs_lagr_coupling.cpp File Reference
#include "base/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/bft_error.h"
#include "base/cs_array.h"
#include "base/cs_base.h"
#include "base/cs_math.h"
#include "base/cs_mem.h"
#include "base/cs_physical_constants.h"
#include "base/cs_time_step.h"
#include "mesh/cs_mesh.h"
#include "mesh/cs_mesh_quantities.h"
#include "turb/cs_turbulence_model.h"
#include "lagr/cs_lagr.h"
#include "lagr/cs_lagr_particle.h"
#include "lagr/cs_lagr_coupling.h"
+ Include dependency graph for cs_lagr_coupling.cpp:

Functions

void cs_lagr_coupling_initialize (void)
 Prepare source terms for Lagrangian 2-way coupling. More...
 
void cs_lagr_coupling_increment_part_contrib (cs_lagr_particle_set_t *p_set, const cs_lnum_t p_id, const cs_real_t dt_part, const bool rebound, const cs_real_t taup, const cs_real_3_t force_p, const cs_real_2_t tempct)
 Increment the source terms for Lagrangian 2-way coupling with quantites attached to a given particle. More...
 
void cs_lagr_coupling_finalize (void)
 Finalize source terms for Lagrangian 2-way coupling by treating cell-attached properties. More...
 

Function Documentation

◆ cs_lagr_coupling_finalize()

void cs_lagr_coupling_finalize ( void  )

Finalize source terms for Lagrangian 2-way coupling by treating cell-attached properties.

◆ cs_lagr_coupling_increment_part_contrib()

void cs_lagr_coupling_increment_part_contrib ( cs_lagr_particle_set_t p_set,
const cs_lnum_t  p_id,
const cs_real_t  dt_part,
const bool  rebound,
const cs_real_t  taup,
const cs_real_3_t  force_p,
const cs_real_2_t  tempct 
)

Increment the source terms for Lagrangian 2-way coupling with quantites attached to a given particle.

Remarks
Source terms are computed for the starting cell of a particle during a given iteration. Even if particle exits the domain, it s necessary to compute a source term matching the exchange between the carrier fluid and the particle at the beginning of the time step. If nor == 2 and the particle interacts with a boundary, then the source terms are computed as if nor == 1.
Parameters
[in]p_setpointer to particle set
[in]p_idparticle id
[in]dt_partremaining time step associated to the particle
[in]reboundtrue if a rebound occured over last trajectory step
[in]taupdynamic characteristic time
[in]force_pforces per mass unit on particles (m/s^2)
[in]tempctthermal characteristic time

◆ cs_lagr_coupling_initialize()

void cs_lagr_coupling_initialize ( void  )

Prepare source terms for Lagrangian 2-way coupling.