Click or drag to resize

ResultAnalysis2DInternalForces Class

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

Defines the internal force values at a specific section on a StructuralSurfaceMember's edge
Inheritance Hierarchy
SystemObject
  ModelExchanger.AnalysisDataModel.ResultsResultAnalysisBase
    ModelExchanger.AnalysisDataModel.ResultsResultAnalysis2DInternalForces

Namespace:  ModelExchanger.AnalysisDataModel.Results
Assembly:  ModelExchanger.AnalysisDataModel (in ModelExchanger.AnalysisDataModel.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public sealed class ResultAnalysis2DInternalForces : ResultAnalysisBase, 
	IEquatable<ResultAnalysis2DInternalForces>

The ResultAnalysis2DInternalForces type exposes the following members.

Constructors
  NameDescription
Public methodResultAnalysis2DInternalForces(StructuralSurfaceMember, Int32, StructuralLoadCase, Int32, Length)
Create a new 2D internal force section for the given member2d in the given loadCase
Public methodResultAnalysis2DInternalForces(StructuralSurfaceMember, Int32, StructuralLoadCombination, Int32, Length)
Create a new 2D internal force section for the given member2d in the given loadCombination
Top
Properties
  NameDescription
Public propertyCombinationKey
Allows to define exact combination per result section
Public propertyEdge
The 0-based index of the edge of referenced Member2D from which this result is calculated
Public propertyId
The ID that uniquely identifies the result. Generated from Name
(Inherited from ResultAnalysisBase.)
Public propertyIndex
0-based index that defines the order of the forces in a set of results that are applied on the same member
Public propertyLoadCase
The load case to which the result belongs. When this is set, LoadCombination should be NULL.
(Inherited from ResultAnalysisBase.)
Public propertyLoadCombination
The load combination to which the result belongs. When this is set, LoadCase should be NULL.
(Inherited from ResultAnalysisBase.)
Public propertyMember2D
The 2D member from which the result is calculated.
Public propertyMx
Result value of bending moment mx
Public propertyMxy
Result value of torsion moment mxy
Public propertyMy
Result value of bending moment my
Public propertyName
The (unique within its type) name of the object
(Inherited from ResultAnalysisBase.)
Public propertyNx
Result value of membrane force nx
Public propertyNxy
Result value of shear force nxy
Public propertyNy
Result value of membrane force ny
Public propertySection
The location along the X-axis of the member where this result is located
Public propertyTypeOfResult
Defines the type of result
(Overrides ResultAnalysisBaseTypeOfResult.)
Public propertyVx
Result value of shear force vx
Public propertyVy
Result value of shear force vy
Top
Methods
  NameDescription
Public methodEquals(Object)
Checks whether the provided object is equal to the current instance
(Overrides ResultAnalysisBaseEquals(Object).)
Public methodEquals(ResultAnalysis2DInternalForces)
Indicates whether the current object is equal to another object of the same type.
Public methodEquals(ResultAnalysisBase)
Checks whether the provided result is equal to the current result
(Inherited from ResultAnalysisBase.)
Public methodGetHashCode
Calculates the hashcode of this instance
(Overrides ResultAnalysisBaseGetHashCode.)
Top
Examples
Creating an instance
using System.Collections.Generic;
using System.Linq;
using ModelExchanger.AnalysisDataModel.Loads;
using ModelExchanger.AnalysisDataModel.Models;
using ModelExchanger.AnalysisDataModel.Results;
using ModelExchanger.AnalysisDataModel.StructuralElements;
using UnitsNet;

namespace ModelExchanger.AnalysisDataModel.Example.Results
{
    public sealed class ResultAnalysis2DInternalForcesExample : BaseExample<ResultAnalysis2DInternalForces>
    {
        protected override IReadOnlyCollection<ResultAnalysis2DInternalForces> CreateAnalysisObjects(AnalysisModel model)
        {
            StructuralSurfaceMember surface = model.OfType<StructuralSurfaceMember>().First();
            StructuralLoadCase loadCase = model.OfType<StructuralLoadCase>().First();
            StructuralLoadCombination loadCombination = model.OfType<StructuralLoadCombination>().First();

            return new ResultAnalysis2DInternalForces[]
            {
                new ResultAnalysis2DInternalForces(surface, 0, loadCase, 0, Length.Zero)
                {
                    Mx = GetRandomUnitValue<TorquePerLength>(),
                    My = GetRandomUnitValue<TorquePerLength>(),
                    Mxy = GetRandomUnitValue<TorquePerLength>(),
                    Vx = GetRandomUnitValue<ForcePerLength>(),
                    Vy = GetRandomUnitValue<ForcePerLength>(),
                    Nx = GetRandomUnitValue<ForcePerLength>(),
                    Ny = GetRandomUnitValue<ForcePerLength>(),
                    Nxy = GetRandomUnitValue<ForcePerLength>()
                },
                new ResultAnalysis2DInternalForces(surface, 0, loadCase, 1, Length.FromCentimeters(50))
                {
                    Mx = GetRandomUnitValue<TorquePerLength>(),
                    My = GetRandomUnitValue<TorquePerLength>(),
                    Mxy = GetRandomUnitValue<TorquePerLength>(),
                    Vx = GetRandomUnitValue<ForcePerLength>(),
                    Vy = GetRandomUnitValue<ForcePerLength>(),
                    Nx = GetRandomUnitValue<ForcePerLength>(),
                    Ny = GetRandomUnitValue<ForcePerLength>(),
                    Nxy = GetRandomUnitValue<ForcePerLength>()
                },
                new ResultAnalysis2DInternalForces(surface, 0, loadCase, 2, Length.FromMeters(1))
                {
                    Mx = GetRandomUnitValue<TorquePerLength>(),
                    My = GetRandomUnitValue<TorquePerLength>(),
                    Mxy = GetRandomUnitValue<TorquePerLength>(),
                    Vx = GetRandomUnitValue<ForcePerLength>(),
                    Vy = GetRandomUnitValue<ForcePerLength>(),
                    Nx = GetRandomUnitValue<ForcePerLength>(),
                    Ny = GetRandomUnitValue<ForcePerLength>(),
                    Nxy = GetRandomUnitValue<ForcePerLength>()
                },
                new ResultAnalysis2DInternalForces(surface, 0, loadCase, 3, Length.FromCentimeters(150))
                {
                    Mx = GetRandomUnitValue<TorquePerLength>(),
                    My = GetRandomUnitValue<TorquePerLength>(),
                    Mxy = GetRandomUnitValue<TorquePerLength>(),
                    Vx = GetRandomUnitValue<ForcePerLength>(),
                    Vy = GetRandomUnitValue<ForcePerLength>(),
                    Nx = GetRandomUnitValue<ForcePerLength>(),
                    Ny = GetRandomUnitValue<ForcePerLength>(),
                    Nxy = GetRandomUnitValue<ForcePerLength>()
                },
                new ResultAnalysis2DInternalForces(surface, 1, loadCombination, 0, Length.FromCentimeters(150))
                {
                    Mx = GetRandomUnitValue<TorquePerLength>(),
                    My = GetRandomUnitValue<TorquePerLength>(),
                    Mxy = GetRandomUnitValue<TorquePerLength>(),
                    Vx = GetRandomUnitValue<ForcePerLength>(),
                    Vy = GetRandomUnitValue<ForcePerLength>(),
                    Nx = GetRandomUnitValue<ForcePerLength>(),
                    Ny = GetRandomUnitValue<ForcePerLength>(),
                    Nxy = GetRandomUnitValue<ForcePerLength>()
                },
                new ResultAnalysis2DInternalForces(surface, 1, loadCombination, 1, Length.FromCentimeters(100))
                {
                    Mx = GetRandomUnitValue<TorquePerLength>(),
                    My = GetRandomUnitValue<TorquePerLength>(),
                    Mxy = GetRandomUnitValue<TorquePerLength>(),
                    Vx = GetRandomUnitValue<ForcePerLength>(),
                    Vy = GetRandomUnitValue<ForcePerLength>(),
                    Nx = GetRandomUnitValue<ForcePerLength>(),
                    Ny = GetRandomUnitValue<ForcePerLength>(),
                    Nxy = GetRandomUnitValue<ForcePerLength>()
                },
                new ResultAnalysis2DInternalForces(surface, 1, loadCombination, 2, Length.FromCentimeters(50))
                {
                    Mx = GetRandomUnitValue<TorquePerLength>(),
                    My = GetRandomUnitValue<TorquePerLength>(),
                    Mxy = GetRandomUnitValue<TorquePerLength>(),
                    Vx = GetRandomUnitValue<ForcePerLength>(),
                    Vy = GetRandomUnitValue<ForcePerLength>(),
                    Nx = GetRandomUnitValue<ForcePerLength>(),
                    Ny = GetRandomUnitValue<ForcePerLength>(),
                    Nxy = GetRandomUnitValue<ForcePerLength>()
                },
                new ResultAnalysis2DInternalForces(surface, 1, loadCombination, 3, Length.Zero)
                {
                    Mx = GetRandomUnitValue<TorquePerLength>(),
                    My = GetRandomUnitValue<TorquePerLength>(),
                    Mxy = GetRandomUnitValue<TorquePerLength>(),
                    Vx = GetRandomUnitValue<ForcePerLength>(),
                    Vy = GetRandomUnitValue<ForcePerLength>(),
                    Nx = GetRandomUnitValue<ForcePerLength>(),
                    Ny = GetRandomUnitValue<ForcePerLength>(),
                    Nxy = GetRandomUnitValue<ForcePerLength>()
                },
            };
        }
    }
}
See Also