#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"
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. More... | |
int | cs_sat_coupling_n_couplings (void) |
cs_sat_coupling_t * | cs_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) |
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 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 | ) |
void cs_sat_coupling_all_init | ( | void | ) |
cs_sat_coupling_t* cs_sat_coupling_by_id | ( | int | coupling_id | ) |
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:
[in] | saturne_name | matching code_saturne application name |
[in] | boundary_cpl_criteria | boundary face selection criteria for coupled faces, or NULL |
[in] | volume_cpl_criteria | cell selection criteria for coupled cells, or NULL |
[in] | boundary_loc_criteria | boundary face selection criteria for location (not functional) |
[in] | volume_loc_criteria | cell selection criteria for location |
[in] | verbosity | verbosity 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.
int cs_sat_coupling_n_couplings | ( | void | ) |
void defloc | ( | const int * | numcpl | ) |
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 nbccpl | ( | int * | n_couplings | ) |
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 pondcp | ( | const int * | numcpl, |
const cs_lnum_t * | nbrpts, | ||
int * | ityloc, | ||
cs_real_t * | pndcpl, | ||
cs_real_t * | distof | ||
) |
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 | ||
) |