CurveStructuralReferenceOnSubregionEdge Class |
[This is preliminary documentation and is subject to change.]
Namespace: ModelExchanger.AnalysisDataModel.StructuralReferences.Curves
public sealed class CurveStructuralReferenceOnSubregionEdge : ICurveStructuralReference, IHasEdgeIndex, IEquatable<CurveStructuralReferenceOnSubregionEdge>
The CurveStructuralReferenceOnSubregionEdge type exposes the following members.
Name | Description | |
---|---|---|
CurveStructuralReferenceOnSubregionEdge |
Create information about a line force on the provided StructuralSurfaceMemberRegion |
Name | Description | |
---|---|---|
Edge |
The index of edge on the sub region on which the line force is applied
| |
Subregion |
The StructuralSurfaceMemberRegion on which the line force is applied
|
Name | Description | |
---|---|---|
Equals(CurveStructuralReferenceOnSubregionEdge) | Indicates whether the current object is equal to another object of the same type. | |
Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object).) | |
GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode.) |
using System; using System.Collections.Generic; using System.Linq; using ModelExchanger.AnalysisDataModel.Enums; using ModelExchanger.AnalysisDataModel.Loads; using ModelExchanger.AnalysisDataModel.Models; using ModelExchanger.AnalysisDataModel.StructuralElements; using ModelExchanger.AnalysisDataModel.StructuralReferences.Curves; using UnitsNet; namespace ModelExchanger.AnalysisDataModel.Example.Loads { public sealed class StructuralCurveActionOnSubregionEdgeExample : BaseExample<StructuralCurveAction<CurveStructuralReferenceOnSubregionEdge>> { protected override IReadOnlyCollection<StructuralCurveAction<CurveStructuralReferenceOnSubregionEdge>> CreateAnalysisObjects(AnalysisModel model) { StructuralLoadCase loadCase = model .OfType<StructuralLoadCase>() .Single(analysisObject => analysisObject.Name == "LC2"); StructuralSurfaceMemberRegion subRegion = model .OfType<StructuralSurfaceMemberRegion>() .Single(analysisObject => analysisObject.Name == "R2"); var curveActionOne = new StructuralCurveAction<CurveStructuralReferenceOnSubregionEdge>( Guid.NewGuid(), "LFS7", CurveForceAction.OnSubregionEdge, ForcePerLength.FromKilonewtonsPerMeter(-3), loadCase, new CurveStructuralReferenceOnSubregionEdge(subRegion, 1)) { Type = ActionLoadType.Standard, Distribution = CurveDistribution.Uniform, Direction = ActionDirection.Z, CoordinateSystem = CoordinateSystem.Local, Location = Location.Length, CoordinateDefinition = CoordinateDefinition.Relative, Origin = Origin.FromStart, Extent = ExtentOfForceOnBeam.Full, StartPointRelative = 0, EndPointRelative = 0.75, StartPointAbsolute = null, EndPointAbsolute = null, EccentricityEy = Length.FromMeters(0), EccentricityEz = Length.FromMeters(0) }; var curveActionTwo = new StructuralCurveAction<CurveStructuralReferenceOnSubregionEdge>( Guid.NewGuid(), "LFS8", CurveForceAction.OnSubregionEdge, ForcePerLength.FromKilogramsForcePerMeter(-3), loadCase, new CurveStructuralReferenceOnSubregionEdge(subRegion, 2)) { Type = ActionLoadType.Standard, Distribution = CurveDistribution.Trapezoidal, Direction = ActionDirection.Z, CoordinateSystem = CoordinateSystem.Global, Location = Location.Length, CoordinateDefinition = CoordinateDefinition.Absolute, Origin = Origin.FromStart, Extent = ExtentOfForceOnBeam.Full, StartPointRelative = null, EndPointRelative = null, StartPointAbsolute = Length.Zero, EndPointAbsolute = Length.FromMeters(2), EccentricityEy = Length.FromMeters(0), EccentricityEz = Length.FromMeters(0), Value2 = ForcePerLength.FromKilogramsForcePerMeter(1) }; return new[] { curveActionOne, curveActionTwo }; } } }