FlowResistanceInterp Method

Interpolate FlowResistance parameters by the given ratio. If either before or after FlowResistance are null, null is returned. It fails if the resistance formulation or the depth dependence differs. Interpolation is like: v = (1-ratio)*v_us + ratio*v_ds

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 FlowResistance Interp(
	FlowResistance before,
	FlowResistance after,
	double afterRatio
)

Parameters

before  FlowResistance
Before parameters
after  FlowResistance
After parameters
afterRatio  Double
Downstream ratio

Return Value

FlowResistance
An interpolated

Exceptions

See Also