FlowResistanceConvertToStandardResistances Method

Convert from the current formulation to the new/standard formulation. To make inplace conversion, give the resistance array to both of the currentResistances and newResistances arguments. Not all type of conversions are supported. Currently only : - Mannings n is converted to Mannings M

Definition

Namespace: DHI.Mike1D.CrossSectionModule
Assembly: DHI.Mike1D.CrossSectionModule (in DHI.Mike1D.CrossSectionModule.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public static bool ConvertToStandardResistances(
	ResistanceFormulation currentFormulation,
	out ResistanceFormulation newFormulation,
	double[] currentResistances,
	ref double[] newResistances,
	double[] hydraulicRadii
)

Parameters

currentFormulation  ResistanceFormulation
Formulation to convert from
newFormulation  ResistanceFormulation
Outputs the new/standard formulation
currentResistances  Double
Current resistance values
newResistances  Double
New resistance values. If no conversion takes place, newResistances will point to currentResistances. If null, then it will be created automatically
hydraulicRadii  Double
Hydraulic radii, to be used for some of the conversions.

Return Value

Boolean
True if a conversion has taken place. False if no conversion has taken place.

See Also