Table of Contents

Class ResultAnalysis1DInternalForces

Namespace
ModelExchanger.AnalysisDataModel.Results
Assembly
ModelExchanger.AnalysisDataModel.dll

Defines the internal force values at a specific section on a StructuralCurveMember or StructuralCurveMemberRib

public sealed class ResultAnalysis1DInternalForces : ResultAnalysisBase, IResultAnalysisObject, IAnalysisObject, IHasIdName, IHasId, IHasName, IEquatable<ResultAnalysisBase>, IEquatable<ResultAnalysis1DInternalForces>
Inheritance
ResultAnalysis1DInternalForces
Implements
Inherited Members
Extension Methods

Examples

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 ResultAnalysis1DInternalForcesExample : BaseExample<ResultAnalysis1DInternalForces>
    {
        protected override IReadOnlyCollection<ResultAnalysis1DInternalForces> CreateAnalysisObjects(AnalysisModel model)
        {
            StructuralCurveMember beam = model.OfType<StructuralCurveMember>().First();
            StructuralCurveMemberRib rib = model.OfType<StructuralCurveMemberRib>().First();
            StructuralLoadCase loadCase = model.OfType<StructuralLoadCase>().First();
            StructuralLoadCombination loadCombination = model.OfType<StructuralLoadCombination>().First();

            return new ResultAnalysis1DInternalForces[]
            {
                new ResultAnalysis1DInternalForces(beam, loadCase, 0, Length.Zero)
                {
                    Mx = GetRandomUnitValue<Torque>(),
                    My = GetRandomUnitValue<Torque>(),
                    Mz = GetRandomUnitValue<Torque>(),
                    N = GetRandomUnitValue<Force>(),
                    Vy = GetRandomUnitValue<Force>(),
                    Vz = GetRandomUnitValue<Force>(),
                },
                new ResultAnalysis1DInternalForces(beam, loadCase, 1, Length.FromCentimeters(20))
                {
                    Mx = GetRandomUnitValue<Torque>(),
                    My = GetRandomUnitValue<Torque>(),
                    Mz = GetRandomUnitValue<Torque>(),
                    N = GetRandomUnitValue<Force>(),
                    Vy = GetRandomUnitValue<Force>(),
                    Vz = GetRandomUnitValue<Force>(),
                },
                new ResultAnalysis1DInternalForces(beam, loadCase, 2, Length.FromCentimeters(40))
                {
                    Mx = GetRandomUnitValue<Torque>(),
                    My = GetRandomUnitValue<Torque>(),
                    Mz = GetRandomUnitValue<Torque>(),
                    N = GetRandomUnitValue<Force>(),
                    Vy = GetRandomUnitValue<Force>(),
                    Vz = GetRandomUnitValue<Force>(),
                },
                new ResultAnalysis1DInternalForces(beam, loadCase, 3, Length.FromCentimeters(60))
                {
                    Mx = GetRandomUnitValue<Torque>(),
                    My = GetRandomUnitValue<Torque>(),
                    Mz = GetRandomUnitValue<Torque>(),
                    N = GetRandomUnitValue<Force>(),
                    Vy = GetRandomUnitValue<Force>(),
                    Vz = GetRandomUnitValue<Force>(),
                },
                new ResultAnalysis1DInternalForces(rib, loadCombination, 0, Length.Zero)
                {
                    Mx = GetRandomUnitValue<Torque>(),
                    My = GetRandomUnitValue<Torque>(),
                    Mz = GetRandomUnitValue<Torque>(),
                    N = GetRandomUnitValue<Force>(),
                    Vy = GetRandomUnitValue<Force>(),
                    Vz = GetRandomUnitValue<Force>(),
                },
                new ResultAnalysis1DInternalForces(rib, loadCombination, 1, Length.FromCentimeters(-20))
                {
                    Mx = GetRandomUnitValue<Torque>(),
                    My = GetRandomUnitValue<Torque>(),
                    Mz = GetRandomUnitValue<Torque>(),
                    N = GetRandomUnitValue<Force>(),
                    Vy = GetRandomUnitValue<Force>(),
                    Vz = GetRandomUnitValue<Force>(),
                },
                new ResultAnalysis1DInternalForces(rib, loadCombination, 2, Length.FromCentimeters(-40))
                {
                    Mx = GetRandomUnitValue<Torque>(),
                    My = GetRandomUnitValue<Torque>(),
                    Mz = GetRandomUnitValue<Torque>(),
                    N = GetRandomUnitValue<Force>(),
                    Vy = GetRandomUnitValue<Force>(),
                    Vz = GetRandomUnitValue<Force>(),
                },
                new ResultAnalysis1DInternalForces(rib, loadCombination, 3, Length.FromCentimeters(-60))
                {
                    Mx = GetRandomUnitValue<Torque>(),
                    My = GetRandomUnitValue<Torque>(),
                    Mz = GetRandomUnitValue<Torque>(),
                    N = GetRandomUnitValue<Force>(),
                    Vy = GetRandomUnitValue<Force>(),
                    Vz = GetRandomUnitValue<Force>(),
                }, 
            };
        }
    }
}

Constructors

ResultAnalysis1DInternalForces(StructuralCurveMember, StructuralLoadCase, int, Length)

Create a new 1D internal force section for the given StructuralCurveMember in the given StructuralLoadCase

public ResultAnalysis1DInternalForces(StructuralCurveMember member1d, StructuralLoadCase loadCase, int index, Length section)

Parameters

member1d StructuralCurveMember

The StructuralCurveMember on which the result is calculated

loadCase StructuralLoadCase

The StructuralLoadCase to which the result belongs

index int

The 0-based index (= order) of the result in the set of results (per StructuralCurveMember and StructuralLoadCase)

section Length

The location along the X-axis of the StructuralCurveMember of the result

ResultAnalysis1DInternalForces(StructuralCurveMember, StructuralLoadCombination, int, Length)

Create a new 1D internal force section for the given StructuralCurveMember in the given StructuralLoadCombination

public ResultAnalysis1DInternalForces(StructuralCurveMember member1d, StructuralLoadCombination loadCombination, int index, Length section)

Parameters

member1d StructuralCurveMember

The StructuralCurveMember on which the result is calculated

loadCombination StructuralLoadCombination

The StructuralLoadCombination to which the result belongs

index int

The 0-based index (= order) of the result in the set of results (per StructuralCurveMember and StructuralLoadCombination)

section Length

The location along the X-axis of the StructuralCurveMember of the result

ResultAnalysis1DInternalForces(StructuralCurveMemberRib, StructuralLoadCase, int, Length)

Create a new 1D internal force section for the given StructuralCurveMemberRib in the given StructuralLoadCase

public ResultAnalysis1DInternalForces(StructuralCurveMemberRib member1dRib, StructuralLoadCase loadCase, int index, Length section)

Parameters

member1dRib StructuralCurveMemberRib

The StructuralCurveMemberRib on which the result is calculated

loadCase StructuralLoadCase

The StructuralLoadCase to which the result belongs

index int

The 0-based index (= order) of the result in the set of results (per StructuralCurveMemberRib and StructuralLoadCase)

section Length

The location along the X-axis of the StructuralCurveMemberRib of the result

ResultAnalysis1DInternalForces(StructuralCurveMemberRib, StructuralLoadCombination, int, Length)

Create a new 1D internal force section for the given StructuralCurveMemberRib in the given StructuralLoadCase

public ResultAnalysis1DInternalForces(StructuralCurveMemberRib member1dRib, StructuralLoadCombination loadCombination, int index, Length section)

Parameters

member1dRib StructuralCurveMemberRib

The StructuralCurveMemberRib on which the result is calculated

loadCombination StructuralLoadCombination

The StructuralLoadCombination to which the result belongs

index int

The 0-based index (= order) of the result in the set of results (per StructuralCurveMemberRib and StructuralLoadCombination)

section Length

The location along the X-axis of the StructuralCurveMemberRib of the result

Properties

CombinationKey

Allows to define exact combination per result section

public string CombinationKey { get; set; }

Property Value

string

Index

0-based index that defines the order of the forces in a set of results that are applied on the same member

public int Index { get; }

Property Value

int

Member

The 1D member from which the result is calculated. When this is provided, MemberRib should be NULL.

public StructuralCurveMember Member { get; }

Property Value

StructuralCurveMember

MemberRib

The 1D member rib from which the result is calculated. When this is provided, Member should be NULL.

public StructuralCurveMemberRib MemberRib { get; }

Property Value

StructuralCurveMemberRib

Mx

Result value of Mx (Moment around X axis)

public Torque Mx { get; set; }

Property Value

Torque

My

Result value of My (Moment around Y axis)

public Torque My { get; set; }

Property Value

Torque

Mz

Result value of Mz (Moment around Z axis)

public Torque Mz { get; set; }

Property Value

Torque

N

Result value of N (Normal force)

public Force N { get; set; }

Property Value

Force

NamePart

String that should be appended to the name generated by the base class

protected override string NamePart { get; }

Property Value

string

Section

The location along the X-axis of the member where this result is located

public Length Section { get; }

Property Value

Length

TypeOfResult

Defines the type of result

public override AnalysisResultType TypeOfResult { get; }

Property Value

AnalysisResultType

Vy

Result value of Vy (Shear force in Y axis direction)

public Force Vy { get; set; }

Property Value

Force

Vz

Result value of Vz (Shear force in Z axis direction)

public Force Vz { get; set; }

Property Value

Force

Methods

Equals(ResultAnalysis1DInternalForces)

public bool Equals(ResultAnalysis1DInternalForces other)

Parameters

other ResultAnalysis1DInternalForces

Returns

bool

Equals(object)

Checks whether the provided object is equal to the current instance

public override bool Equals(object obj)

Parameters

obj object

The other object to compare with

Returns

bool

True if the provided object is a result of the same type and they are equal in value or same in object reference. False otherwise

GetHashCode()

Calculates the hashcode of this instance

public override int GetHashCode()

Returns

int

The hashcode of this instance