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
member1dStructuralCurveMemberThe StructuralCurveMember on which the result is calculated
loadCaseStructuralLoadCaseThe StructuralLoadCase to which the result belongs
indexintThe 0-based index (= order) of the result in the set of results (per StructuralCurveMember and StructuralLoadCase)
sectionLengthThe 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
member1dStructuralCurveMemberThe StructuralCurveMember on which the result is calculated
loadCombinationStructuralLoadCombinationThe StructuralLoadCombination to which the result belongs
indexintThe 0-based index (= order) of the result in the set of results (per StructuralCurveMember and StructuralLoadCombination)
sectionLengthThe 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
member1dRibStructuralCurveMemberRibThe StructuralCurveMemberRib on which the result is calculated
loadCaseStructuralLoadCaseThe StructuralLoadCase to which the result belongs
indexintThe 0-based index (= order) of the result in the set of results (per StructuralCurveMemberRib and StructuralLoadCase)
sectionLengthThe 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
member1dRibStructuralCurveMemberRibThe StructuralCurveMemberRib on which the result is calculated
loadCombinationStructuralLoadCombinationThe StructuralLoadCombination to which the result belongs
indexintThe 0-based index (= order) of the result in the set of results (per StructuralCurveMemberRib and StructuralLoadCombination)
sectionLengthThe 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
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
Member
The 1D member from which the result is calculated. When this is provided, MemberRib should be NULL.
public StructuralCurveMember Member { get; }
Property Value
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
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
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
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
Returns
Equals(object)
Checks whether the provided object is equal to the current instance
public override bool Equals(object obj)
Parameters
objobjectThe 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