Click or drag to resize

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

Namespace:  DHI.Mike1D.CrossSectionModule
Assembly:  DHI.Mike1D.CrossSectionModule (in DHI.Mike1D.CrossSectionModule.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public static bool ConvertResistances(
	ResistanceFormulation currentFormulation,
	ResistanceFormulation newFormulation,
	double[] currentResistances,
	ref double[] newResistances,
	double[] hydraulicRadii
)

Parameters

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

Return Value

Type: Boolean
true if conversion was successfull, false otherwise
See Also