Go to the source code of this file.
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)
void cs_fan_destroy_all (void)
Destroy the structures associated with fans.
int cs_fan_n_fans (void)
Return number of fans.
void cs_fan_field_create (void)
void cs_fan_log_setup (void)
Log fans definition setup information.
void cs_fan_log_iteration (void)
Log fan information for a given iteration.
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.
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.
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).
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)
void cs_fan_cells_select (void *input, cs_lnum_t *n_cells, cs_lnum_t **cell_ids)
Selection function for cells belonging to fans.
◆ cs_fan_t
◆ cs_fan_build_all()
Define the cells belonging to the different fans.
Parameters
[in] mesh associated mesh structure
[in] mesh_quantities mesh quantities
◆ cs_fan_cells_select()
Selection function for cells belonging to fans.
This function may be used for the definition of postprocessing meshes.
Parameters
[in,out] input pointer to input (unused here)
[out] n_cells number of selected cells
[out] cell_ids array of selected cell ids (0 to n-1 numbering)
◆ cs_fan_compute_flows()
Compute the flows through the fans.
Parameters
[in] mesh mesh structure
[in] mesh_quantities mesh quantities
[in] i_mass_flux interior faces mass flux
[in] b_mass_flux boundary faces mass flux
[in] c_rho density at cells
[in] b_rho density at boundary faces
◆ cs_fan_compute_force()
Compute the force induced by the fans (needs a previous calculation of the flows through each fan).
Parameters
[in] mesh_quantities mesh quantities
[in] source_t explicit source term for the velocity
◆ cs_fan_define()
Fan definition (added to the ones previously defined)
Fans are handled as explicit momentum source terms at the given location, based on the fan's axis and diameter. The fan's pressure characteristic curve is defined by 3 coefficients, such that: . An axial torque may also be defined for the 3D model.
Parameters
[in] fan_dim fan dimension: 2: pseudo-2D (extruded mesh) 3: 3D (standard)
[in] mode mode: 0: fan 1: wind turbine
[in] inlet_axis_coords intersection of axis and inlet face
[in] outlet_axis_coords intersection of axis and outlet face
[in] fan_radius fan radius
[in] blades_radius blades radius
[in] hub_radius hub radius
[in] curve_coeffs coefficients of degre 0, 1 and 2 of the pressure drop/flow rate characteristic curve
[in] axial_torque fan axial torque
◆ cs_fan_destroy_all()
void cs_fan_destroy_all
(
void )
Destroy the structures associated with fans.
◆ cs_fan_field_create()
void cs_fan_field_create
(
void )
◆ cs_fan_flag_cells()
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)
Parameters
[in] mesh assosiated mesh structure
[out] cell_fan_id fan id (or -1) for each cell
◆ cs_fan_log_iteration()
void cs_fan_log_iteration
(
void )
Log fan information for a given iteration.
◆ cs_fan_log_setup()
void cs_fan_log_setup
(
void )
Log fans definition setup information.
◆ cs_fan_n_fans()
int cs_fan_n_fans
(
void )
Return number of fans.
Returns number of defined fans