|
void | cs_syr_coupling_define (const char *syrthes_name, const char *boundary_criteria, const char *volume_criteria, char projection_axis, bool allow_nonmatching, float tolerance, int verbosity, int visualization) |
| Define new SYRTHES coupling. More...
|
|
void | cs_syr_coupling_add_zone (const char *syrthes_name, const cs_zone_t *z) |
| Associated a zone to a defined SYRTHES coupling. More...
|
|
void | cs_syr_coupling_all_init (void) |
|
void | cs_syr_coupling_all_finalize (void) |
|
int | cs_syr_coupling_n_couplings (void) |
|
void | cs_syr_coupling_set_conservativity (int flag) |
|
void | cs_syr_coupling_set_explicit_treatment (void) |
|
void | cs_syr_coupling_set_time_sync_flag (int cpl_id, int flag) |
| Set time synchronization mode for a given SYRTHES coupling. More...
|
|
void | cs_syr_coupling_log_setup (void) |
| Log SYRTHES coupling setup information. More...
|
|
void | cs_syr_coupling_init_meshes (void) |
| Create coupled meshes and setup PLE locator for Syrthes couplings. More...
|
|
int | cs_syr_coupling_is_surf (int cpl_id) |
| Check if the given SYRTHES coupling number is a surface couplings. More...
|
|
void | cs_syr_coupling_recv_boundary (const int nvar, int bc_type[]) |
| Read boundary field/variable values relative to a SYRTHES coupling. More...
|
|
void | cs_syr_coupling_send_boundary (const cs_real_t h_wall[], cs_real_t v_fluid[]) |
| Send field/variable values relative to a SYRTHES coupling. More...
|
|
void | cs_syr_coupling_exchange_volume (void) |
| Exchange volume values relative to a SYRTHES coupling. More...
|
|
void | cs_syr_coupling_volume_source_terms (int field_id, cs_real_t st_exp[], cs_real_t st_imp[]) |
| Compute the source term (implicit and/or explicit part) for a volume coupling with SYRTHES. More...
|
|
cs_lnum_t | cs_syr_coupling_n_elts (int cpl_id, int mode) |
| Get number of coupled elements with SYRTHES. More...
|
|
void | cs_syr_coupling_elt_ids (int cpl_id, int mode, cs_lnum_t elt_ids[]) |
| Get local ids of elements coupled with SYRTHES. More...
|
|
void | cs_syr_coupling_recv_tsolid (int cpl_id, int mode, cs_real_t t_solid[]) |
| Receive coupling variables from SYRTHES. More...
|
|
void | cs_syr_coupling_send_tf_hf (int cpl_id, int mode, const cs_lnum_t elt_ids[], cs_real_t t_fluid[], cs_real_t h_fluid[]) |
| Send coupling variables to SYRTHES. More...
|
|
void | cs_syr_coupling_recv_tf_hf (int cpl_id, int mode, const cs_lnum_t elt_ids[], cs_real_t t_fluid[], cs_real_t h_fluid[]) |
| Receive coupling variables (Tf,hf) from code_saturne (called by CDO thermal solver). More...
|
|
void | cs_syr_coupling_send_tsolid (int cpl_id, int mode, const cs_real_t t_solid[]) |
| Send coupling variables (Ts) to code_saturne (called by CDO thermal solver). More...
|
|
int | cs_syr_coupling_is_bnd_zone_coupled (const cs_zone_t *z) |
| Check if a boundary zone is coupled. More...
|
|
void cs_syr_coupling_define |
( |
const char * |
syrthes_name, |
|
|
const char * |
boundary_criteria, |
|
|
const char * |
volume_criteria, |
|
|
char |
projection_axis, |
|
|
bool |
allow_nonmatching, |
|
|
float |
tolerance, |
|
|
int |
verbosity, |
|
|
int |
visualization |
|
) |
| |
Define new SYRTHES coupling.
- Parameters
-
[in] | syrthes_name | matching SYRTHES application name |
[in] | boundary_criteria | surface selection criteria, or nullptr |
[in] | volume_criteria | volume selection criteria, or nullptr |
[in] | projection_axis | x', 'y', or 'y' for 2D projection axis (case independent), or ' ' for standard 3D coupling |
[in] | allow_nonmatching | allow nearest-neighbor mapping where matching within tolerance is not available (useful when meshes have a different level of detail) |
[in] | tolerance | addition to local extents of each element extent = base_extent * (1 + tolerance) |
[in] | verbosity | verbosity level |
[in] | visualization | visualization output level (0 or 1) |
In the case of a single code_saturne and single SYRTHES instance, the 'syrthes_name' argument is ignored, as there is only one matching possibility.
In case of multiple couplings, a coupling will be matched with available SYRTHES instances based on the 'syrthes_name' argument.
void cs_syr_coupling_set_time_sync_flag |
( |
int |
cpl_id, |
|
|
int |
flag |
|
) |
| |
Set time synchronization mode for a given SYRTHES coupling.
This will suggest options on the SYRTHES side.
- Parameters
-
[in] | cpl_id | matching SYRTHES coupling id |
[in] | flag | suggested synchronization flags for the SYRTHES side This should be a combination of
- PLE_COUPLING_TS_MIN (use smallest time step)
- PLE_COUPLING_TS_LEADER (prescribe time step for all)
- PLE_COUPLING_TS_FOLLOWER (time step of this domain is ignored by coupled applications)
- PLE_COUPLING_TS_INDEPENDENT (do not modify time step based on other applications)
|
By default, no flags are set for constant and local (pseudo-steady) time stepping schemes. With a adaptive time step, the default is PLE_COUPLING_TS_MIN | PLE_COUPLING_TS_FOLLOWER so that the smallest time step of code_saturne domains will be used, but the time step of the SYRTHES domains is ignored (as it does not recompute an adaptive time step, not making it a follower would let it provide the smallest time step encountered, preventing time steps from icnreasing again in the case of multiple fluid domains).