|
programmer's documentation
|
#include "cs_defs.h"
Go to the source code of this file.
Enumerations | |
| enum | cs_turbomachinery_model_t { CS_TURBOMACHINERY_NONE, CS_TURBOMACHINERY_FROZEN, CS_TURBOMACHINERY_TRANSIENT } |
Functions | |
| void | cs_turbomachinery_set_model (cs_turbomachinery_model_t model) |
| Define rotor/stator model. More... | |
| cs_turbomachinery_model_t | cs_turbomachinery_get_model (void) |
| Return rotor/stator model. More... | |
| void | cs_turbomachinery_add_rotor (const char *cell_criteria, double rotation_velocity, const double rotation_axis[3]) |
| Define a rotor by its axis and cell selection criteria. More... | |
| int | cs_turbomachinery_join_add (const char *sel_criteria, float fraction, float plane, int verbosity, int visualization) |
| Add a cs_join_t structure to the list of rotor/stator joinings. More... | |
| void | cs_turbomachinery_initialize (void) |
| Initializations for turbomachinery computation. More... | |
| void | cs_turbomachinery_finalize (void) |
| Free turbomachinery structure. More... | |
| void | cs_turbomachinery_update_mesh (double t_cur_mob, double *t_elapsed) |
| Update mesh for unsteady rotor/stator computation. More... | |
| void | cs_turbomachinery_reinit_i_face_fields (void) |
| Reinitialize interior face-based fields. More... | |
| void | cs_turbomachinery_resize_cell_fields (void) |
| Resize cell-based fields. More... | |
| void | cs_turbomachinery_rotation_matrix (int rotor_num, double theta, cs_real_t matrix[3][4]) |
| Compute rotation matrix. More... | |
| const int * | cs_turbomachinery_get_cell_rotor_num (void) |
| Return cell rotor number. More... | |
| double | cs_turbomachinery_get_rotation_velocity (int rotor_num) |
| Return rotation velocity. More... | |
| void | cs_turbomachinery_rotate_fields (const cs_real_t dt[]) |
| Rotation of vector and tensor fields. More... | |
| void | cs_turbomachinery_relative_velocity (int rotor_num, const cs_real_t coords[3], cs_real_t velocity[3]) |
| Compute velocity relative to fixed coordinates at a given point. More... | |
| void cs_turbomachinery_add_rotor | ( | const char * | cell_criteria, |
| double | rotation_velocity, | ||
| const double | rotation_axis[3] | ||
| ) |
Define a rotor by its axis and cell selection criteria.
| [in] | cell_criteria | cell selection criteria string |
| [in] | rotation_velocity | rotation velocity, in radians/second |
| [in] | rotation_axis | rotation axis vector |
| void cs_turbomachinery_finalize | ( | void | ) |
Free turbomachinery structure.
| const int* cs_turbomachinery_get_cell_rotor_num | ( | void | ) |
Return cell rotor number.
Each cell may be associated with a given rotor, or rotation, with 0 indicating that that cell does not rotate.
| cs_turbomachinery_model_t cs_turbomachinery_get_model | ( | void | ) |
Return rotor/stator model.
| double cs_turbomachinery_get_rotation_velocity | ( | int | rotor_num | ) |
Return rotation velocity.
| [in] | rotor_num | rotor number (1 to n numbering) |
| void cs_turbomachinery_initialize | ( | void | ) |
Initializations for turbomachinery computation.
| int cs_turbomachinery_join_add | ( | const char * | sel_criteria, |
| float | fraction, | ||
| float | plane, | ||
| int | verbosity, | ||
| int | visualization | ||
| ) |
Add a cs_join_t structure to the list of rotor/stator joinings.
| [in] | sel_criteria | boundary face selection criteria |
| [in] | fraction | value of the fraction parameter |
| [in] | plane | value of the plane parameter |
| [in] | verbosity | level of verbosity required |
| [in] | visualization | level of visualization required |
| void cs_turbomachinery_reinit_i_face_fields | ( | void | ) |
Reinitialize interior face-based fields.
| void cs_turbomachinery_relative_velocity | ( | int | rotor_num, |
| const cs_real_t | coords[3], | ||
| cs_real_t | velocity[3] | ||
| ) |
Compute velocity relative to fixed coordinates at a given point.
| [in] | rotor_num | rotor number (1 to n numbering) |
| [in] | coords | point coordinates |
| [out] | velocity | velocity relative to fixed coordinates |
| void cs_turbomachinery_resize_cell_fields | ( | void | ) |
Resize cell-based fields.
This function only handles fields owning their values.
| void cs_turbomachinery_rotate_fields | ( | const cs_real_t | dt[] | ) |
Rotation of vector and tensor fields.
| void cs_turbomachinery_rotation_matrix | ( | int | rotor_num, |
| double | theta, | ||
| cs_real_t | matrix[3][4] | ||
| ) |
Compute rotation matrix.
| [in] | rotor_num | rotor number (1 to n numbering) |
| [in] | theta | rotation angle, in radians |
| [out] | matrix | resulting rotation matrix |
| void cs_turbomachinery_set_model | ( | cs_turbomachinery_model_t | model | ) |
Define rotor/stator model.
(end ignore by Doxygen)
| void cs_turbomachinery_update_mesh | ( | double | t_cur_mob, |
| double * | t_elapsed | ||
| ) |
Update mesh for unsteady rotor/stator computation.
| [in] | t_cur_mob | current rotor time |
| [out] | t_elapsed | elapsed computation time |
1.8.7