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.CrossSectionModuleAssembly: DHI.Mike1D.CrossSectionModule (in DHI.Mike1D.CrossSectionModule.dll) Version: 24.0.0.0 (11.1.1.1111)
public static bool ConvertResistances(
ResistanceFormulation currentFormulation,
ResistanceFormulation newFormulation,
double[] currentResistances,
ref double[] newResistances,
double[] hydraulicRadii
)
- 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
Booleantrue if conversion was successfull, false otherwise