-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTunedDefaults.cs
More file actions
43 lines (42 loc) · 1.87 KB
/
Copy pathTunedDefaults.cs
File metadata and controls
43 lines (42 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using CatchmentTool2;
namespace CatchmentTool.Services
{
/// <summary>
/// Tuned algorithm parameters baked in from offline tuning runs (random
/// sampling × multi-seed × 17 fixtures, composite v2 grading). These are
/// the production values; the in-Civil-3D dialog does not expose them.
/// To re-tune: run tools/CatchmentTool2.Tuner against new fixtures and
/// update these constants.
/// </summary>
public static class TunedDefaults
{
public static readonly TuningParameters V2 = new TuningParameters
{
// Phase 1 — boundary
BoundarySource = BoundarySource.StructureBufferHull,
StructureBufferDistance = 50.0,
// Phase 2 — raster: 1 ft cell locked, urban-hydrology resolution
CellSize = 1.0,
// Phase 3 — conditioning
InletSnapRadiusCells = 90.53,
InletSnapDepth = 0.55,
DepressionHandling = DepressionHandling.Breach,
MaxBreachDepth = 3.78,
PondCaptureRadiusCells = 42.37,
PipeBurnDepth = 3.48,
// Phase 4 — routing
RoutingAlgorithm = RoutingAlgorithm.D8,
MinSlopeThreshold = 0.0,
// Phase 5 — fallback
FallbackMetric = FallbackMetric.DownhillWeighted,
DownhillBiasWeight = 2.44,
DownhillBiasLengthScale = 100.0,
MinCatchmentArea = 105.52,
// Phase 7 — smoothing (note: Phase7 also forces 2 Chaikin iterations
// unconditionally for plan presentability, even when this is 0).
RdpToleranceCellMultiplier = 2.63,
ChaikinIterations = 0,
MaxAreaDriftPercent = 2.0,
};
}
}