8.0
general documentation
Loading...
Searching...
No Matches
cs_sat_coupling.c File Reference
#include "cs_defs.h"
#include <assert.h>
#include <math.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ple_coupling.h>
#include <ple_locator.h>
#include "bft_mem.h"
#include "bft_printf.h"
#include "fvm_nodal.h"
#include "fvm_writer.h"
#include "cs_base.h"
#include "cs_coupling.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
#include "cs_mesh_connect.h"
#include "cs_prototypes.h"
#include "cs_selector.h"
#include "cs_sat_coupling.h"
Include dependency graph for cs_sat_coupling.c:

Functions

void nbccpl (int *n_couplings)
void defloc (const int *numcpl)
void nbecpl (const int *numcpl, cs_lnum_t *ncesup, cs_lnum_t *nfbsup, cs_lnum_t *ncecpl, cs_lnum_t *nfbcpl, cs_lnum_t *ncencp, cs_lnum_t *nfbncp)
void lelcpl (const int *numcpl, const cs_lnum_t *ncecpl, const cs_lnum_t *nfbcpl, cs_lnum_t *lcecpl, cs_lnum_t *lfbcpl)
void lencpl (const int *numcpl, const cs_lnum_t *ncencp, const cs_lnum_t *nfbncp, cs_lnum_t *lcencp, cs_lnum_t *lfbncp)
void npdcpl (const int *numcpl, cs_lnum_t *ncedis, cs_lnum_t *nfbdis)
void coocpl (const int *numcpl, const cs_lnum_t *nbrpts, const int *itydis, int *ityloc, cs_lnum_t *locpts, cs_real_t *coopts, cs_real_t *djppts, cs_real_t *dofpts, cs_real_t *pndpts)
void pondcp (const int *numcpl, const cs_lnum_t *nbrpts, int *ityloc, cs_real_t *pndcpl, cs_real_t *distof)
void varcpl (const int *numcpl, const cs_lnum_t *nbrdis, const cs_lnum_t *nbrloc, const int *ityvar, const cs_lnum_t *stride, cs_real_t *vardis, cs_real_t *varloc)
void tbicpl (const int *numcpl, const cs_lnum_t *nbrdis, const cs_lnum_t *nbrloc, cs_lnum_t *vardis, cs_lnum_t *varloc)
void tbrcpl (const int *numcpl, const cs_lnum_t *nbrdis, const cs_lnum_t *nbrloc, cs_real_t *vardis, cs_real_t *varloc)
void mxicpl (const int *const numcpl, cs_lnum_t *const vardis, cs_lnum_t *const varmax)
void cs_sat_coupling_define (const char *saturne_name, const char *boundary_cpl_criteria, const char *volume_cpl_criteria, const char *boundary_loc_criteria, const char *volume_loc_criteria, int verbosity)
 Define new code_saturne coupling.
int cs_sat_coupling_n_couplings (void)
cs_sat_coupling_tcs_sat_coupling_by_id (int coupling_id)
void cs_sat_coupling_all_init (void)
void cs_sat_coupling_add (const char *face_cpl_sel_c, const char *cell_cpl_sel_c, const char *face_loc_sel_c, const char *cell_loc_sel_c, const char *sat_name, int verbosity)
void cs_sat_coupling_add_internal (cs_sat_coupling_tag_t *tag_func, void *tag_context, const char *boundary_cpl_criteria, const char *volume_cpl_criteria, const char *boundary_loc_criteria, const char *volume_loc_criteria, float loc_tolerance, int verbosity)
void cs_sat_coupling_all_finalize (void)

Function Documentation

◆ coocpl()

void coocpl ( const int * numcpl,
const cs_lnum_t * nbrpts,
const int * itydis,
int * ityloc,
cs_lnum_t * locpts,
cs_real_t * coopts,
cs_real_t * djppts,
cs_real_t * dofpts,
cs_real_t * pndpts )

◆ cs_sat_coupling_add()

void cs_sat_coupling_add ( const char * face_cpl_sel_c,
const char * cell_cpl_sel_c,
const char * face_loc_sel_c,
const char * cell_loc_sel_c,
const char * sat_name,
int verbosity )

◆ cs_sat_coupling_add_internal()

void cs_sat_coupling_add_internal ( cs_sat_coupling_tag_t * tag_func,
void * tag_context,
const char * boundary_cpl_criteria,
const char * volume_cpl_criteria,
const char * boundary_loc_criteria,
const char * volume_loc_criteria,
float loc_tolerance,
int verbosity )

◆ cs_sat_coupling_all_finalize()

void cs_sat_coupling_all_finalize ( void )

◆ cs_sat_coupling_all_init()

void cs_sat_coupling_all_init ( void )

◆ cs_sat_coupling_by_id()

cs_sat_coupling_t * cs_sat_coupling_by_id ( int coupling_id)

◆ cs_sat_coupling_define()

void cs_sat_coupling_define ( const char * saturne_name,
const char * boundary_cpl_criteria,
const char * volume_cpl_criteria,
const char * boundary_loc_criteria,
const char * volume_loc_criteria,
int verbosity )

Define new code_saturne coupling.

The arguments to cs_sat_coupling_define are:

Parameters
[in]saturne_namematching code_saturne application name
[in]boundary_cpl_criteriaboundary face selection criteria for coupled faces, or NULL
[in]volume_cpl_criteriacell selection criteria for coupled cells, or NULL
[in]boundary_loc_criteriaboundary face selection criteria for location (not functional)
[in]volume_loc_criteriacell selection criteria for location
[in]verbosityverbosity level

In the case of only 2 code_saturne instances, the 'saturne_name' argument is ignored, as there is only one matching possibility.

In case of multiple couplings, a coupling will be matched with available code_saturne instances based on the 'saturne_name' argument.

◆ cs_sat_coupling_n_couplings()

int cs_sat_coupling_n_couplings ( void )

◆ defloc()

void defloc ( const int * numcpl)

◆ lelcpl()

void lelcpl ( const int * numcpl,
const cs_lnum_t * ncecpl,
const cs_lnum_t * nfbcpl,
cs_lnum_t * lcecpl,
cs_lnum_t * lfbcpl )

◆ lencpl()

void lencpl ( const int * numcpl,
const cs_lnum_t * ncencp,
const cs_lnum_t * nfbncp,
cs_lnum_t * lcencp,
cs_lnum_t * lfbncp )

◆ mxicpl()

void mxicpl ( const int *const numcpl,
cs_lnum_t *const vardis,
cs_lnum_t *const varmax )

◆ nbccpl()

void nbccpl ( int * n_couplings)

◆ nbecpl()

void nbecpl ( const int * numcpl,
cs_lnum_t * ncesup,
cs_lnum_t * nfbsup,
cs_lnum_t * ncecpl,
cs_lnum_t * nfbcpl,
cs_lnum_t * ncencp,
cs_lnum_t * nfbncp )

◆ npdcpl()

void npdcpl ( const int * numcpl,
cs_lnum_t * ncedis,
cs_lnum_t * nfbdis )

◆ pondcp()

void pondcp ( const int * numcpl,
const cs_lnum_t * nbrpts,
int * ityloc,
cs_real_t * pndcpl,
cs_real_t * distof )

◆ tbicpl()

void tbicpl ( const int * numcpl,
const cs_lnum_t * nbrdis,
const cs_lnum_t * nbrloc,
cs_lnum_t * vardis,
cs_lnum_t * varloc )

◆ tbrcpl()

void tbrcpl ( const int * numcpl,
const cs_lnum_t * nbrdis,
const cs_lnum_t * nbrloc,
cs_real_t * vardis,
cs_real_t * varloc )

◆ varcpl()

void varcpl ( const int * numcpl,
const cs_lnum_t * nbrdis,
const cs_lnum_t * nbrloc,
const int * ityvar,
const cs_lnum_t * stride,
cs_real_t * vardis,
cs_real_t * varloc )