udfGetResidualRatio()
Return the current residual ratio of the requested equation.
Syntax
conv = udfGetResidualRatio( udfHd, eqnName) ;
Type
AcuSolve User-Defined Function Global
Parameters
- udfHd
- The opaque handle (pointer) which was passed to the user function.
- eqnName (integer)
- Symbolic name of the requested equation.
- UDF_EQN_PRESSURE
- Pressure.
- UDF_EQN_VELOCITY
- Velocity.
- UDF_EQN_SPECIES
- Species.
- UDF_EQN_EDDY_VISCOSITY
- Turbulence eddy viscosity.
- UDF_EQN_KINETIC_ENERGY
- Turbulence kinetic energy.
- UDF_EQN_EDDY_FREQUENCY
- Turbulence eddy frequency.
- UDF_EQN_MESH_DISPLACEMENT
- Mesh displacement.
- UDF_EQN_RADIATION
- Radiation.
Return Value
- conv (real)
- This routine returns a pointer containing the current convergence information. If the requested
convergence information is not available, an assertion is given. The dimension of the returned array depends on eqnName as follows:
eqnName Array Dimension UDF_EQN_PRESSURE 1 UDF_EQN_VELOCITY 1 UDF_EQN_SPECIES udfGetNumSpecs() UDF_EQN_EDDY_VISCOSITY 1 UDF_EQN_KINETIC_ENERGY 1 UDF_EQN_EDDY_FREQUENCY 1 UDF_EQN_MESH_DISLACEMENT 1 UDF_EQN_RADIATION 1
Description
This routine returns the current residual ratio convergence level. For
example,
Real* conv ;
Real presResRatio;
...
conv = udfGetResidualRatio( udfHd, UDF_EQN_PRESSURE) ;
presResRatio = conv[0];
Errors
This routine expects a valid udfHd and eqnName.