Skip to content

Problem using CrossSectionExtensions mehtods from MIKE 1D API #21

Answered by JesperGr
MonicaCoppo asked this question in Q&A
Discussion options

You must be logged in to vote

The obsolete method is still working, though it does not take sediments into account, if present.

The most convenient method is available on the CrossSectionSlotDecorator, something like (C# code syntax here):

hdParams = new HDParameterData();
csd = new CrossSectionSlotDecorator(ics);
nd = csd.GetNaturalDepth(Q, slope, hdParams);

Details of GetNaturalDepth MIKE 1D Class Library: CrossSectionSlotDecorator.GetNaturalDepth Method. The hdParams are required for some Colebrook-White parameters, in case the cross section resistance is based on that.

It is also possible to use the extension method. Details of the CalculateNaturalDepth can be found here: MIKE 1D Class Library: CrossSectionExtens…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JesperGr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants