// Copyright (C) Stichting Deltares 2025. All rights reserved. // // This file is part of the Dam Engine. // // The Dam Engine is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . // // All names, logos, and references to "Deltares" are registered trademarks of // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. using Deltares.DamEngine.Data.Geotechnics; using Deltares.DamEngine.Data.Standard; using Deltares.DamEngine.Data.Standard.Validation; namespace Deltares.DamEngine.Data.General; public class FailureMechanismParametersMStab : IAssignable, ICloneable { /// /// Additional specifications/settings of calculation using MStab /// public FailureMechanismParametersMStab() { MStabParameters = new MStabParameters(); IsStabilityCheckOnUplift = false; } /// /// Gets or sets the project working path. /// /// /// The project working path. /// public string ProjectWorkingPath { get; set; } public Location Location { get; set; } public SurfaceLine2 SurfaceLine { get; set; } public PlLines.PlLines PlLines { get; set; } public SoilProfile1D SoilProfile { get; set; } public string SoilGeometry2DName { get; set; } public double RiverLevel { get; set; } public double DikeTableHeight { get; set; } public double TrafficLoad { get; set; } /// /// Gets or sets the traffic load degree of consolidation. /// Note: this number is a fraction so between 0-1 /// /// /// The traffic load degree of consolidation. /// public double? TrafficLoadDegreeOfConsolidation { get; set; } /// /// Indicates whether in stability calculation a check on uplift will be performed before performin UpliftVan calculation. /// Default it is false (set in constructor) /// public bool IsStabilityCheckOnUplift { get; set; } public EmbankmentDesignParameters EmbankmentDesignParameters { get; set; } [Validate] public MStabParameters MStabParameters { get; set; } /// /// Performs the Assignment /// /// public void Assign(FailureMechanismParametersMStab failureMechanismParametersMStab) { ProjectWorkingPath = failureMechanismParametersMStab.ProjectWorkingPath; Location = failureMechanismParametersMStab.Location; SurfaceLine = failureMechanismParametersMStab.SurfaceLine; SoilProfile = failureMechanismParametersMStab.SoilProfile; SoilGeometry2DName = failureMechanismParametersMStab.SoilGeometry2DName; PlLines = failureMechanismParametersMStab.PlLines; RiverLevel = failureMechanismParametersMStab.RiverLevel; DikeTableHeight = failureMechanismParametersMStab.DikeTableHeight; TrafficLoad = failureMechanismParametersMStab.TrafficLoad; EmbankmentDesignParameters = failureMechanismParametersMStab.EmbankmentDesignParameters; MStabParameters.Assign(failureMechanismParametersMStab.MStabParameters); } /// /// Clones the object. /// /// FailureMechanismParametersMStab public FailureMechanismParametersMStab Clone() { var failureMechanismParametersMStab = new FailureMechanismParametersMStab(); failureMechanismParametersMStab.MStabParameters = MStabParameters.Clone(); failureMechanismParametersMStab.Assign(this); return failureMechanismParametersMStab; } }