FlowResistanceConvertResistances Method

Convert resistances from current formulation to new formalation 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 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 ConvertResistances(
	ResistanceFormulation currentFormulation,
	ResistanceFormulation newFormulation,
	double[] currentResistances,
	ref double[] newResistances,
	double[] hydraulicRadii
)

Parameters

currentFormulation  ResistanceFormulation
Current formulation
newFormulation  ResistanceFormulation
New formulation
currentResistances  Double
Array of current resistances.
newResistances  Double
Array to store converted resistances. If using the same as for currentResistances, that will be updated
hydraulicRadii  Double
Array of hydraulic radii, to be used for some of the conversions only

Return Value

Boolean
true if conversion was successfull, false otherwise

See Also