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
)
Public Shared Function ConvertResistances (
currentFormulation As ResistanceFormulation,
newFormulation As ResistanceFormulation,
currentResistances As Double(),
ByRef newResistances As Double(),
hydraulicRadii As Double()
) As Boolean
public:
static bool ConvertResistances(
ResistanceFormulation currentFormulation,
ResistanceFormulation newFormulation,
array<double>^ currentResistances,
array<double>^% newResistances,
array<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:
Booleantrue if conversion was successfull, false otherwise
See Also