|
programmer's documentation
|
#include "cs_defs.h"#include <assert.h>#include <math.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "bft_mem.h"#include "cs_base.h"#include "cs_fan.h"
Functions | |
| void | tstvtl (cs_lnum_t *const nbrvtl) |
| void | defvtl (const cs_int_t *dimmod, const cs_int_t *dimvtl, const cs_real_t xyzvt1[3], const cs_real_t xyzvt2[3], const cs_real_t *rvvt, const cs_real_t *rpvt, const cs_real_t *rmvt, const cs_real_t ccarac[3], const cs_real_t *tauvt) |
| void | inivtl (void) |
| void | numvtl (cs_int_t indic[]) |
| void | debvtl (cs_real_t flumas[], cs_real_t flumab[], cs_real_t rho[], cs_real_t rhofab[], cs_real_t debent[], cs_real_t debsor[]) |
| void | tsvvtl (cs_int_t *idimts, cs_real_t crvexp[]) |
| void | cs_fan_define (int model_dim, int fan_dim, 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) More... | |
| void | cs_fan_destroy_all (void) |
| Destroy the structures associated with fans. More... | |
| 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. More... | |
| 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. More... | |
| void | cs_fan_compute_force (const cs_mesh_quantities_t *mesh_quantities, int source_coo_id, cs_real_t source_t[]) |
| Compute the force induced by the fans (needs a previous calculation of the flows through each fan). More... | |
Fan modeling through velocity source terms.
| 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.
| [in] | mesh | associated mesh structure |
| [in] | mesh_quantities | mesh quantities |
| 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.
| [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 |
| void cs_fan_compute_force | ( | const cs_mesh_quantities_t * | mesh_quantities, |
| int | source_coo_id, | ||
| cs_real_t | source_t[] | ||
| ) |
Compute the force induced by the fans (needs a previous calculation of the flows through each fan).
| [in] | mesh_quantities | mesh quantities |
| [in] | source_coo_id | coordinate associated to the source term of velocity (0: X; 0: Y; 0: Z) |
| [in] | source_t | explicit source term for the velocity |
| void cs_fan_define | ( | int | model_dim, |
| int | fan_dim, | ||
| 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)
| [in] | model_dim | fan model dimension: 1: constant_f 2: force_profile 3: force_profile + tangential couple |
| [in] | fan_dim | fan dimension: 2: pseudo-2D (extruded mesh) 3: 3D (standard) |
| [in] | inlet_axis_coords | intersection coords. of axis and inlet face |
| [in] | outlet_axis_coords | intersection coords. od 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 characteristic curve |
| [in] | axial_torque | fan axial torque |
| void cs_fan_destroy_all | ( | void | ) |
Destroy the structures associated with fans.
| void debvtl | ( | cs_real_t | flumas[], |
| cs_real_t | flumab[], | ||
| cs_real_t | rho[], | ||
| cs_real_t | rhofab[], | ||
| cs_real_t | debent[], | ||
| cs_real_t | debsor[] | ||
| ) |
| void defvtl | ( | const cs_int_t * | dimmod, |
| const cs_int_t * | dimvtl, | ||
| const cs_real_t | xyzvt1[3], | ||
| const cs_real_t | xyzvt2[3], | ||
| const cs_real_t * | rvvt, | ||
| const cs_real_t * | rpvt, | ||
| const cs_real_t * | rmvt, | ||
| const cs_real_t | ccarac[3], | ||
| const cs_real_t * | tauvt | ||
| ) |
| void inivtl | ( | void | ) |
| void numvtl | ( | cs_int_t | indic[] | ) |
| void tstvtl | ( | cs_lnum_t *const | nbrvtl | ) |
1.8.9.1