void cs_fan_build_all(const cs_mesh_t *mesh, const cs_mesh_quantities_t *mesh_quantities)
Define the cells belonging to the different fans.
Definition: cs_fan.c:430
void cs_fan_log_setup(void)
Log fans definition setup information.
Definition: cs_fan.c:348
struct _cs_fan_t cs_fan_t
Definition: cs_fan.h:51
int cs_fan_n_fans(void)
Return number of fans.
Definition: cs_fan.c:336
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
void cs_fan_log_iteration(void)
Log fan information for a given iteration.
Definition: cs_fan.c:394
void debvtl(cs_real_t flumas[], cs_real_t flumab[], cs_real_t rhofac[], cs_real_t rhofab[])
Definition: cs_fan.c:157
double cs_real_t
Floating-point value.
Definition: cs_defs.h:322
void cs_fan_cells_select(void *input, cs_lnum_t *n_cells, cs_lnum_t **cell_ids)
Selection function for cells belonging to fans.
Definition: cs_fan.c:966
void cs_fan_define(int fan_dim, int mode, const cs_real_t inlet_axis_coords[3], const cs_real_t outlet_axis_coords[3], cs_real_t fan_radius, cs_real_t blades_radius, cs_real_t hub_radius, const cs_real_t curve_coeffs[3], cs_real_t axial_torque)
Fan definition (added to the ones previously defined)
Definition: cs_fan.c:231
Definition: cs_mesh_quantities.h:89
void cs_fan_compute_flows(const cs_mesh_t *mesh, const cs_mesh_quantities_t *mesh_quantities, const cs_real_t i_mass_flux[], const cs_real_t b_mass_flux[], const cs_real_t c_rho[], const cs_real_t b_rho[])
Compute the flows through the fans.
Definition: cs_fan.c:625
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:335
void tsvvtl(cs_real_3_t crvexp[])
Definition: cs_fan.c:189
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:316
#define END_C_DECLS
Definition: cs_defs.h:511
void cs_fan_flag_cells(const cs_mesh_t *mesh, int cell_fan_id[])
Flag the cells belonging to the different fans (by the fan id, -1 otherwise)
Definition: cs_fan.c:918
#define CS_PROCF(x, y)
Definition: cs_defs.h:524
void cs_fan_destroy_all(void)
Destroy the structures associated with fans.
Definition: cs_fan.c:314
void cs_fan_compute_force(const cs_mesh_quantities_t *mesh_quantities, cs_real_3_t source_t[])
Compute the force induced by the fans (needs a previous calculation of the flows through each fan)...
Definition: cs_fan.c:759