GetFanningFrictionFactor

Returns the Fanning friction factor for the ducts with a defined cross section.

The Fanning friction factor is defined as the ratio of the shear stress at the wall of a pipe to the dynamic pressure of the fluid:

where τw is the shear stress at the wall, ρ is the fluid density, and v is the fluid velocity. The Fanning factor is related to the Darcy friction factor as follows:

Calling convention:

bool GetFanningFrictionFactor(double* val)
Note:

To access this method, you must use the GetTMGFunction method and include the AdditionalFunctions.h file located in the [installation_path]\tmg\include\maya\expeval_utils folder in the beginning of your source file.

Argument Data type Description
val double* The Fanning friction factor value for the duct element.

For the example, see the GetAreaBC method.