StructuralSurfaceConnection Class |
[This is preliminary documentation and is subject to change.]
Namespace: ModelExchanger.AnalysisDataModel.StructuralElements
public sealed class StructuralSurfaceConnection : StructuralAnalysisObjectBase, IEquatable<StructuralSurfaceConnection>, IStructuralElementAnalysisObject, IStructuralAnalysisObject, IAnalysisObject, IHasSubsoil, IHasParentId
The StructuralSurfaceConnection type exposes the following members.
Name | Description | |
---|---|---|
StructuralSurfaceConnection(Guid, String, StructuralSurfaceMember, Subsoil) |
Create a connection between a StructuralSurfaceMember and a Subsoil | |
StructuralSurfaceConnection(Guid, String, StructuralSurfaceMember, StructuralSurfaceMemberRegion, Subsoil) |
Name | Description | |
---|---|---|
Id |
The ID of the Analysis object.
Needs to be unique within the entire model
(Inherited from StructuralAnalysisObjectBase.) | |
Member2D |
The 2D member to which the connection is made
| |
Member2DRegion |
The 2D member region to which the connection is made.
The region should be linked with the same 2D member as the connection.
| |
Name |
The name of the Analysis object.
Needs to be unique within it's type
(Inherited from StructuralAnalysisObjectBase.) | |
ParentId |
The ID of the parent object of the same type
| |
Subsoil |
The subsoil
|
Name | Description | |
---|---|---|
Equals(Object) | (Overrides StructuralAnalysisObjectBaseEquals(Object).) | |
Equals(StructuralAnalysisObjectBase) |
Check if this object is the same as the provided object.
(Inherited from StructuralAnalysisObjectBase.) | |
Equals(StructuralSurfaceConnection) | ||
GetHashCode |
Retrieves the hashcode of the object
(Overrides StructuralAnalysisObjectBaseGetHashCode.) |
Name | Description | |
---|---|---|
PropertyChanged | (Inherited from StructuralAnalysisObjectBase.) |
Name | Description | |
---|---|---|
ToObjectIdentifier |
Converts the provided IAnalysisObject into an AnalysisObjectIdentifier (Defined by IAnalysisObjectExtensions.) |
using System; using System.Collections.Generic; using System.Linq; using ModelExchanger.AnalysisDataModel.Models; using ModelExchanger.AnalysisDataModel.StructuralElements; using ModelExchanger.AnalysisDataModel.Subtypes; using UnitsNet; namespace ModelExchanger.AnalysisDataModel.Example.StructuralElements { public sealed class StructuralSurfaceConnectionExample : BaseExample<StructuralSurfaceConnection> { protected override IReadOnlyCollection<StructuralSurfaceConnection> CreateAnalysisObjects(AnalysisModel model) { IReadOnlyDictionary<string, StructuralSurfaceMember> surfaces = model.OfType<StructuralSurfaceMember>().ToDictionary(x => x.Name, x => x); IReadOnlyDictionary<string, StructuralSurfaceMemberRegion> regions = model.OfType<StructuralSurfaceMemberRegion>().ToDictionary(x => x.Name, x => x); IReadOnlyDictionary<string, Subsoil> subsoils = CreateSubsoils(); return new[] { new StructuralSurfaceConnection(Guid.NewGuid(), "SS1", surfaces["S6"], subsoils["Gravel"]), new StructuralSurfaceConnection(Guid.NewGuid(), "SS2", surfaces["S6"], regions["R3"], subsoils["Sand"]), }; } #region Subsoils private IReadOnlyDictionary<string, Subsoil> CreateSubsoils() { return new Dictionary<string, Subsoil>() { { "Gravel", new Subsoil("Gravel", SpecificWeight.FromMeganewtonsPerCubicMeter(120D), SpecificWeight.FromMeganewtonsPerCubicMeter(100D), SpecificWeight.FromMeganewtonsPerCubicMeter(160D), ForcePerLength.FromMeganewtonsPerMeter(120D), ForcePerLength.FromMeganewtonsPerMeter(125D)) { Description = "Very silty / stiff", C1Z = "Flexible" }}, { "Sand", new Subsoil("Sand", SpecificWeight.FromMeganewtonsPerCubicMeter(100D), SpecificWeight.FromMeganewtonsPerCubicMeter(90D), SpecificWeight.FromMeganewtonsPerCubicMeter(80D), ForcePerLength.FromMeganewtonsPerMeter(70D), ForcePerLength.FromMeganewtonsPerMeter(60D)) { Description = "Wet" }} }; } #endregion } }