StructuralEdgeConnection Class |
[This is preliminary documentation and is subject to change.]
Namespace: ModelExchanger.AnalysisDataModel.StructuralElements
public sealed class StructuralEdgeConnection : StructuralAnalysisObjectBase, IEquatable<StructuralEdgeConnection>, IHasBoundaryNodeCondition<Pressure?, RotationalStiffnessPerLength?>, IHasBoundaryNodeConditionBase, IHasTranslationConstraints<Pressure?>, IHasTranslationConstraintsBase<Constraint<Pressure?>>, IHasRotationalConstraints<RotationalStiffnessPerLength?>, IHasRotationalConstraintsBase<Constraint<RotationalStiffnessPerLength?>>, IStructuralElementAnalysisObject, IStructuralAnalysisObject, IAnalysisObject, IHasCoordinateDefinition, IHasEdgeIndexOfStructuralSurfaceMember, IHasEdgeIndex, IHasParentId
The StructuralEdgeConnection type exposes the following members.
Name | Description | |
---|---|---|
StructuralEdgeConnection(Guid, String, StructuralSurfaceMember, Int32) |
Create a line support which is connected to a StructuralSurfaceMember's edge.
| |
StructuralEdgeConnection(Guid, String, StructuralSurfaceMemberOpening, Int32) |
Create a line support which is connected to a StructuralSurfaceMemberOpening's edge.
| |
StructuralEdgeConnection(Guid, String, StructuralSurfaceMemberRegion, Int32) |
Create a line support which is connected to a StructuralSurfaceMemberRegion's edge.
|
Name | Description | |
---|---|---|
BoundaryCondition |
Specifies on which type of object the force acts
| |
CoordinateDefinition |
Specifies the coordinate system that is used to define the length.
| |
CoordinateSystem |
Defines the coordinate system of the member in which the support is applied
| |
Edge |
The 0-based index of the edge
| |
EndPointAbsolute |
Defines the position of the end point in absolute coordinates
| |
EndPointRelative |
Defines the position of the end point in relative coordinates
| |
Id |
The ID of the Analysis object.
Needs to be unique within the entire model
(Inherited from StructuralAnalysisObjectBase.) | |
Member2D |
The StructuralSurfaceMember to which this structural edge connection is connected
| |
Member2DOpening |
The StructuralSurfaceMemberOpening to which this structural edge connection is connected
| |
Member2DRegion |
The to which this structural edge connection is connected
| |
Name |
The name of the Analysis object.
Needs to be unique within it's type
(Inherited from StructuralAnalysisObjectBase.) | |
Origin |
Specifies the origin of the coordinate system used for the definition of the length
| |
ParentId |
The ID of the parent object of the same type
| |
RotationX |
Rotational stiffness & the flexibility in rotation of the connection around local X axis
| |
RotationY |
Rotational stiffness & the flexibility in rotation of the connection around local Y axis
| |
RotationZ |
Rotational stiffness & the flexibility in rotation of the connection around local Z axis
| |
StartPointAbsolute |
Defines the position of the start point in absolute coordinates
| |
StartPointRelative |
Defines the position of the start point in relative coordinates
| |
TranslationX |
Translation & flexibility of the connection in the X direction;
| |
TranslationY |
Translation & flexibility of the connection in the Y direction;
| |
TranslationZ |
Translation & flexibility of the connection in the Z direction;
| |
Type |
The way the support acts in individual directions
The value is determined by looking at the constraints.
|
Name | Description | |
---|---|---|
Equals(Object) |
Check if this object is the same as the provided object.
(Overrides StructuralAnalysisObjectBaseEquals(Object).) | |
Equals(StructuralAnalysisObjectBase) |
Check if this object is the same as the provided object.
(Inherited from StructuralAnalysisObjectBase.) | |
Equals(StructuralEdgeConnection) | Indicates whether the current object is equal to another object of the same type. | |
GetHashCode |
Retrieves the hashcode of the object
(Overrides StructuralAnalysisObjectBaseGetHashCode.) |
Name | Description | |
---|---|---|
PropertyChanged | (Inherited from StructuralAnalysisObjectBase.) |
Name | Description | |
---|---|---|
GetRotationConstraintsNullableRotationalStiffnessPerLength |
Retrieve the rotational constraints from an object which implements IHasRotationalConstraintsT (Defined by ConstraintExtensions.) | |
GetTranslationConstraintsNullablePressure |
Retrieve the translational constraints from an object which implements IHasTranslationConstraintsTStiffness (Defined by ConstraintExtensions.) | |
ToObjectIdentifier |
Converts the provided IAnalysisObject into an AnalysisObjectIdentifier (Defined by IAnalysisObjectExtensions.) |
using System; using System.Collections.Generic; using System.Linq; using ModelExchanger.AnalysisDataModel.Enums; using ModelExchanger.AnalysisDataModel.Models; using ModelExchanger.AnalysisDataModel.StructuralElements; using ModelExchanger.AnalysisDataModel.Subtypes; using UnitsNet; namespace ModelExchanger.AnalysisDataModel.Example.StructuralElements { public sealed class StructuralEdgeConnectionExample : BaseExample<StructuralEdgeConnection> { protected override IReadOnlyCollection<StructuralEdgeConnection> CreateAnalysisObjects(AnalysisModel model) { IReadOnlyDictionary<string, StructuralSurfaceMember> surfaces = model.OfType<StructuralSurfaceMember>().ToDictionary(x => x.Name, x => x); IReadOnlyDictionary<string, StructuralSurfaceMemberOpening> openings = model.OfType<StructuralSurfaceMemberOpening>().ToDictionary(opening => opening.Name); IReadOnlyDictionary<string, StructuralSurfaceMemberRegion> subregions = model.OfType<StructuralSurfaceMemberRegion>().ToDictionary(region => region.Name); return new[] { new StructuralEdgeConnection(Guid.NewGuid(), "Sle1", surfaces["S9"], 0) { RotationX = new Constraint<RotationalStiffnessPerLength?>(ConstraintType.Free, null) }, new StructuralEdgeConnection(Guid.NewGuid(), "Sle2", surfaces["S10"], 0) { RotationX = new Constraint<RotationalStiffnessPerLength?>(ConstraintType.Free, null), RotationY = new Constraint<RotationalStiffnessPerLength?>(ConstraintType.Free, null), RotationZ = new Constraint<RotationalStiffnessPerLength?>(ConstraintType.Free, null) }, new StructuralEdgeConnection(Guid.NewGuid(), "Sle3", subregions["R4"], 3) { CoordinateSystem = CoordinateSystem.Global, CoordinateDefinition = CoordinateDefinition.Relative, Origin = Origin.FromEnd, StartPointRelative = 0, EndPointRelative = 1, StartPointAbsolute = null, EndPointAbsolute = null }, new StructuralEdgeConnection(Guid.NewGuid(), "Sle4", subregions["R1"],1) { TranslationZ = new Constraint<Pressure?>(ConstraintType.Flexible, Pressure.FromMeganewtonsPerSquareMeter(10)), CoordinateSystem = CoordinateSystem.Local, CoordinateDefinition = CoordinateDefinition.Absolute, Origin = Origin.FromStart, StartPointAbsolute = Length.Zero, EndPointAbsolute = Length.FromMeters(0.75), EndPointRelative = null, StartPointRelative = null, }, new StructuralEdgeConnection(Guid.NewGuid(), "Sle5", openings["O6"], 3) { TranslationY = new Constraint<Pressure?>(ConstraintType.Free, null), RotationX = new Constraint<RotationalStiffnessPerLength?>(ConstraintType.Free, null), RotationY = new Constraint<RotationalStiffnessPerLength?>(ConstraintType.Free, null), RotationZ = new Constraint<RotationalStiffnessPerLength?>(ConstraintType.Free, null), CoordinateSystem = CoordinateSystem.Global, CoordinateDefinition = CoordinateDefinition.Absolute, Origin = Origin.FromStart, StartPointAbsolute = Length.FromMeters(0.1), EndPointAbsolute = Length.FromMeters(0.25), EndPointRelative = null, StartPointRelative = null }, new StructuralEdgeConnection(Guid.NewGuid(), "Sle6", openings["O6"], 3) { TranslationX = new Constraint<Pressure?>(ConstraintType.Free, null), TranslationY = new Constraint<Pressure?>(ConstraintType.Free, null), RotationX = new Constraint<RotationalStiffnessPerLength?>(ConstraintType.Free, null), RotationY = new Constraint<RotationalStiffnessPerLength?>(ConstraintType.Free, null), RotationZ = new Constraint<RotationalStiffnessPerLength?>(ConstraintType.Free, null), CoordinateSystem = CoordinateSystem.Local, CoordinateDefinition = CoordinateDefinition.Absolute, Origin = Origin.FromEnd, StartPointAbsolute = Length.FromMeters(0.15), EndPointAbsolute = Length.FromMeters(0.3), EndPointRelative = null, StartPointRelative = null } }; } } }