Click or drag to resize

STAdditionalOutputAddToQuantitiesConditional Method

Add a set of quantities for one or more components

To get bed load quantites for all non cohesive components that has bed load enabled:

AddToQuantitiesConditional(quantities, stData, st => STComponentQuantities.BedLoad(st), st => st.HasBedLoad);

Namespace:  DHI.Mike1D.STDataAccess
Assembly:  DHI.Mike1D.HDParameterDataAccess (in DHI.Mike1D.HDParameterDataAccess.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public static void AddToQuantitiesConditional(
	List<IQuantity> quantities,
	STData stData,
	Func<STBaseComponent, IQuantity> quantityCreator,
	Func<STBaseComponent, bool> condition
)

Parameters

quantities
Type: System.Collections.GenericListIQuantity
List of quantities to add to
stData
Type: DHI.Mike1D.STDataAccessSTData
STData object
quantityCreator
Type: SystemFuncSTBaseComponent, IQuantity
Quantity creator
condition
Type: SystemFuncSTBaseComponent, Boolean
Condition on which components to consider
See Also