StructuralSurfaceAction Class |
[This is preliminary documentation and is subject to change.]
Namespace: ModelExchanger.AnalysisDataModel.Loads
public sealed class StructuralSurfaceAction : StructuralAnalysisObjectBase, ILoadAnalysisObject, IStructuralAnalysisObject, IAnalysisObject, IEquatable<StructuralSurfaceAction>, IHasParentId
The StructuralSurfaceAction type exposes the following members.
Name | Description | |
---|---|---|
StructuralSurfaceAction(Guid, String, Pressure, StructuralSurfaceActionDistribution, StructuralLoadCase) |
Create a load with the provided value which belongs to the provided StructuralSurfaceActionDistribution and StructuralLoadCase | |
StructuralSurfaceAction(Guid, String, Pressure, StructuralSurfaceMember, StructuralLoadCase) |
Create a load with the provided value on the provided StructuralSurfaceMember which belongs to the provided StructuralLoadCase | |
StructuralSurfaceAction(Guid, String, Pressure, StructuralSurfaceMemberRegion, StructuralLoadCase) |
Create a load with the provided value on the provided StructuralSurfaceMemberRegion which belongs to the provided StructuralLoadCase | |
StructuralSurfaceAction(Guid, String, Pressure, StructuralSurfaceMember, StructuralLoadCase, StructuralSurfaceMemberRegion) | Obsolete.
Create a load with the provided value on the provided StructuralSurfaceMemberRegion which belongs to the provided StructuralLoadCase |
Name | Description | |
---|---|---|
CoordinateSystem |
Defines the co-ordinate system of the member in which the load is applied
| |
Direction |
Defines the base direction of the load
| |
Id |
The ID of the Analysis object.
Needs to be unique within the entire model
(Inherited from StructuralAnalysisObjectBase.) | |
LoadCase |
The StructuralLoadCase to which the load belongs
| |
Location |
Specifies whether the load is "put directly on an inclined 2D member" or whether the "projection on plan" is defined.
| |
Member2DDistributionReference |
The StructuralSurfaceActionDistribution to which the load belongs
| |
Member2DReference |
The StructuralSurfaceMember on which the load acts
| |
Member2DRegionReference |
The StructuralSurfaceMemberRegion on which the load acts
| |
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
| |
Type |
Defines what the load is caused by. Supports dynamic values
| |
Value |
The value of the load
|
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(StructuralSurfaceAction) | 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 | |
---|---|---|
ToObjectIdentifier |
Converts the provided IAnalysisObject into an AnalysisObjectIdentifier (Defined by IAnalysisObjectExtensions.) |
using System; using System.Collections.Generic; using System.Linq; using CSInfrastructure; using ModelExchanger.AnalysisDataModel.Enums; using ModelExchanger.AnalysisDataModel.Loads; using ModelExchanger.AnalysisDataModel.Models; using ModelExchanger.AnalysisDataModel.StructuralElements; using UnitsNet; namespace ModelExchanger.AnalysisDataModel.Example.Loads { public sealed class StructuralSurfaceActionExample : BaseExample<StructuralSurfaceAction> { protected override IReadOnlyCollection<StructuralSurfaceAction> CreateAnalysisObjects(AnalysisModel model) { StructuralLoadCase loadCase = model.OfType<StructuralLoadCase>().First(x => x.Name == "LC2"); StructuralSurfaceMemberRegion region = model.OfType<StructuralSurfaceMemberRegion>().First(x => x.Name == "R4"); StructuralSurfaceActionDistribution distribution = model.OfType<StructuralSurfaceActionDistribution>().First(x => x.Name == "FL2"); IReadOnlyDictionary<string, StructuralSurfaceMember> surfaces = model.OfType<StructuralSurfaceMember>().ToDictionary(x => x.Name, x => x); return new[] { new StructuralSurfaceAction(Guid.NewGuid(), "SF1", Pressure.FromKilonewtonsPerSquareMeter(-2.5), surfaces["S8"], loadCase) { Direction = ActionDirection.Z, CoordinateSystem = CoordinateSystem.Local }, new StructuralSurfaceAction(Guid.NewGuid(), "SF2", Pressure.FromKilonewtonsPerSquareMeter(-2), surfaces["S5"], loadCase) { Direction = ActionDirection.Y, CoordinateSystem = CoordinateSystem.Local }, new StructuralSurfaceAction(Guid.NewGuid(), "SF3", Pressure.FromKilonewtonsPerSquareMeter(-3), surfaces["S6"], loadCase) { Direction = ActionDirection.X, Type = new FlexibleEnum<ActionLoadType>(ActionLoadType.SelfWeight), CoordinateSystem = CoordinateSystem.Local }, new StructuralSurfaceAction(Guid.NewGuid(), "SF4", Pressure.FromKilonewtonsPerSquareMeter(-3), region, loadCase) { Direction = ActionDirection.Z, CoordinateSystem = CoordinateSystem.Local }, new StructuralSurfaceAction(Guid.NewGuid(), "SF5", Pressure.FromKilonewtonsPerSquareMeter(-5), distribution, loadCase) { Direction = ActionDirection.Z, CoordinateSystem = CoordinateSystem.Local, Location = Location.Length } }; } } }