Class Member2DReactExtensions
- Namespace
- IdeaRS.OpenModel.Result
- Assembly
- IdeaRS.OpenModel.dll
Extensions for accessing values stored in IdeaRS.OpenModel.Result.ValuesInSegmentSections`1
public static class Member2DReactExtensions
Inheritance
Inherited Members
Methods
GetPointValueIndex<T>(ValuesInPoint<T>, int)
Calculates the index of a point values based on the specified loading index.
public static int GetPointValueIndex<T>(this ValuesInPoint<T> src, int loadingIdx) where T : struct
Parameters
src
ValuesInPoint<T>-
The source IdeaRS.OpenModel.Result.ValuesInPoint`1 instance containing the values.
loadingIdx
int-
The loading index used to calculate the point value index. Must be a non-negative integer.
Returns
- int
-
The calculated index of the point value within the section.
Type Parameters
T
-
The type of the values in the point, which must be a value type.
GetSectionValueIndex<T>(ValuesInSegmentSections<T>, int, int)
Get index of the value in IdeaRS.OpenModel.Result.ValuesInSegmentSections`1.Values for given section and loading
public static int GetSectionValueIndex<T>(this ValuesInSegmentSections<T> src, int sectionInx, int loadingInx) where T : struct
Parameters
src
ValuesInSegmentSections<T>sectionInx
int-
Index of the requested section in IdeaRS.OpenModel.Result.ValuesInSegmentSections`1.PositionsOnSegment(0 is the first section (begin of the segment))
loadingInx
int-
Index of the requested loading in IdeaRS.OpenModel.Result.Member2DReactions`1.Loadings
Returns
Type Parameters
T
GetValueInPoint<T>(ValuesInPoint<T>, int, int)
Retrieves a value from the specified point in a collection of values.
public static T GetValueInPoint<T>(this ValuesInPoint<T> src, int loadingIdx, int valueIdx) where T : struct
Parameters
src
ValuesInPoint<T>-
The source collection of values from which to retrieve the value.
loadingIdx
int-
The index representing the loading case in the collection.
valueIdx
int-
The index of the specific value within the loading case to retrieve.
Returns
- T
-
The value of type
T
located at the specified indices.
Type Parameters
T
-
The type of the value to retrieve, which must be a value type.
GetValueInSection<T>(ValuesInSegmentSections<T>, int, int, int)
Set value in the section for loading
public static T GetValueInSection<T>(this ValuesInSegmentSections<T> src, int sectionInx, int loadingInx, int valInx) where T : struct
Parameters
src
ValuesInSegmentSections<T>sectionInx
int-
Index of the section in IdeaRS.OpenModel.Result.ValuesInSegmentSections`1.PositionsOnSegment(0 is the first section (begin of the segment))
loadingInx
int-
Index of the requested loading in IdeaRS.OpenModel.Result.Member2DReactions`1.Loadings
valInx
int-
the value index (from 0 to IdeaRS.OpenModel.Result.ValuesInSegmentSections`1.ValueCountInSection) - 1)
Returns
- T
Type Parameters
T
SetValuesInPoint<T>(ValuesInPoint<T>, int, IList<T>)
Sets the values in a specified section of the IdeaRS.OpenModel.Result.ValuesInPoint`1 object.
public static void SetValuesInPoint<T>(this ValuesInPoint<T> src, int loadingIdx, IList<T> values) where T : struct
Parameters
src
ValuesInPoint<T>-
The IdeaRS.OpenModel.Result.ValuesInPoint`1 instance where the values will be set.
loadingIdx
int-
The index of the loading case that determines the starting position for setting values.
values
IList<T>-
A list of values to set in the specified point.
Type Parameters
T
-
The type of the values, which must be a value type.
Remarks
This method updates the values in the specified section of the src
object,
starting at the position determined by loadingIdx
. Ensure that the values
list contains enough elements to fill the section, as defined by the IdeaRS.OpenModel.Result.ValuesInPoint`1.ValueCountInSection property.
SetValuesInSection<T>(ValuesInSegmentSections<T>, int, int, IList<T>)
Set values in the section for loading
public static void SetValuesInSection<T>(this ValuesInSegmentSections<T> src, int sectionInx, int loadingInx, IList<T> values) where T : struct
Parameters
src
ValuesInSegmentSections<T>sectionInx
int-
Index of the section in IdeaRS.OpenModel.Result.ValuesInSegmentSections`1.PositionsOnSegment(0 is the first section (begin of the segment))
loadingInx
int-
Index of the requested loading in IdeaRS.OpenModel.Result.Member2DReactions`1.Loadings
values
IList<T>-
List of values to set. The length must equal to IdeaRS.OpenModel.Result.ValuesInSegmentSections`1.ValueCountInSection
Type Parameters
T