27 double heat_transfer_coefficient;
28 double velocity_component_at_obstacle;
31 if (direction == 0) velocity_component_at_obstacle = sqrt(pow(
vy[x][y][z],2)+pow(
vz[x][y][z],2));
32 if (direction == 1) velocity_component_at_obstacle = sqrt(pow(
vx[x][y][z],2)+pow(
vz[x][y][z],2));
33 if (direction == 2) velocity_component_at_obstacle = sqrt(pow(
vx[x][y][z],2)+pow(
vy[x][y][z],2));
36 if (velocity_component_at_obstacle <= 5) heat_transfer_coefficient = 5.6 + 4.0 * velocity_component_at_obstacle;
37 if (velocity_component_at_obstacle > 5) heat_transfer_coefficient = 7.2 + pow(velocity_component_at_obstacle, 0.78);
39 return heat_transfer_coefficient;