TYCHO  1.3.0
 All Data Structures Files Functions Variables Enumerations Enumerator
Functions
/home/kapf/tycho_docu/kinematic_dyanmic_viscosity.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "variables_global.h"
#include "prototypes.h"

Go to the source code of this file.

Functions

double kinematic_viscosity (double temperature, double density)
double dynamic_viscosity (double temperature)

Function Documentation

double dynamic_viscosity ( double  temperature)

In order to enable viscosity in an explicit way, this routine calculates the dynamic_viscosity for a given temperature according to Sutherland's law.

Definition at line 42 of file kinematic_dyanmic_viscosity.c.

References C1_visc, dynamic_viscosity(), and S_visc.

Referenced by dynamic_viscosity(), and viscosity().

{
if ((temperature >= 200) && (temperature <= 1400)) {
dynamic_viscosity = (C1_visc * pow(temperature, 1.5)) / (temperature + S_visc);
} else {
dynamic_viscosity = 0.0;
}
}
double kinematic_viscosity ( double  temperature,
double  density 
)

In order to enable viscosity in an explicit way, this routine calculates the kinematic_viscosity for a given temperature according to Sutherland's law.

Definition at line 23 of file kinematic_dyanmic_viscosity.c.

References C1_visc, kinematic_viscosity(), and S_visc.

Referenced by dt_calc(), dt_calc_first(), and kinematic_viscosity().

{
if ((temperature >= 200) && (temperature <= 1400)) {
kinematic_viscosity = (C1_visc * pow(temperature, 1.5)) / (temperature + S_visc);
kinematic_viscosity = kinematic_viscosity / density;
} else {
kinematic_viscosity = 0.0;
}
}