Click or drag to resize

CurveStructuralReferenceOnSubregionEdge Class

[This is preliminary documentation and is subject to change.]

Defines information about a line force on a StructuralSurfaceMemberRegion
Inheritance Hierarchy
SystemObject
  ModelExchanger.AnalysisDataModel.StructuralReferences.CurvesCurveStructuralReferenceOnSubregionEdge

Namespace:  ModelExchanger.AnalysisDataModel.StructuralReferences.Curves
Assembly:  ModelExchanger.AnalysisDataModel (in ModelExchanger.AnalysisDataModel.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public sealed class CurveStructuralReferenceOnSubregionEdge : ICurveStructuralReference, 
	IHasEdgeIndex, IEquatable<CurveStructuralReferenceOnSubregionEdge>

The CurveStructuralReferenceOnSubregionEdge type exposes the following members.

Constructors
  NameDescription
Public methodCurveStructuralReferenceOnSubregionEdge
Create information about a line force on the provided StructuralSurfaceMemberRegion
Top
Properties
  NameDescription
Public propertyEdge
The index of edge on the sub region on which the line force is applied
Public propertySubregion
The StructuralSurfaceMemberRegion on which the line force is applied
Top
Methods
  NameDescription
Public methodEquals(CurveStructuralReferenceOnSubregionEdge)
Indicates whether the current object is equal to another object of the same type.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Top
Examples
Creating an instance acting on a beam
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 };
        }
    }
}
See Also