Utils Class

Class that contains various utilities as methods.

Definition

Namespace: Karamba.Utilities
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public static class Utils
Inheritance
Object    Utils

Methods

addElemIDsToCroSecs add element identifiers to a list of cross sections if the number of cross sections is smaller than the list of element identifiers then the remaining identifiers are all added to the last cross section in case that there are more cross sections than identifiers the list of identifiers is blown up.
blowUpT(ListT, DataTreeStructure) Copy last element of list so that list has as many elements as there are branches.
blowUpT(ListT, Int32) Copy last element of list so that list has s elements.
blowUpT(ListT, T, Int32) Copy last element of list so that list has s elements.
blowUpT(ListListT, T, DataTreeStructure) Copy last element of list so that list has s elements.
blowUpT, U(IEnumerableT, IEnumerableIEnumerableU) Blow up the items in s to each of its items maps to an enumerable in t.
capBeamMesh connects the vertices at the beam's ends. In case of more than one group the cross section is assumed to consist of rectangles. in case of one group the cross section is assumed to be round.
CheckedLCInput Checks whether the given input represents a valid load case name.
CheckTRange(ListDouble, Double, Double, Boolean)  
CheckTRange(ListSingle, Single, Single, Boolean)  
CheckTRangeT(ListT, T, T, Boolean) Check whether all given values are 0 smaller than t smaller than 1.
generateBeamMesh Connect vertices of given mesh with faces. Is used to produce meshes for rendering beam cross sections. Each cross section is composed of groups of vertices. Vertices of different sections need to be connected.
GetFebLoadCaseCombinationIndex create a new feb load case combination based on the given list of load-case-combinations.
getThIILoadCaseCombination Returns the feb load case combination for deriving NII forces for geometric stiffness.
handleError(CalculationFlow) handle an error originating from a FE-model-calculation.
handleError(Int32, Deform) handle an error originating from a FE-model-calculation.
handleError(Int32, Int32, Int64) handle an error originating from a FE-model-calculation.
Match(ListString, ListString) match two sets of strings. The first set of strings may contain regular expressions prefixed by "&".
Match(String, ListString) match a string with a set of strings. The first string may contain regular expressions prefixed by "&".
setElemIDsAtCroSecs set element identifiers at a list of cross sections if the number of cross sections is smaller than the list of element identifiers then the remaining identifiers are all added to the last cross section in case that there are more cross sections than identifiers the list of identifiers is blown up.
TestSupportExpiration Tests whether support has expired for the given license.
ToDeg Convert angle in radians to degree.
ToRad Converts angle in degree to radians.
valueDistributionType Converts a string that represents a value distribution into the corresponding type.
VectReal(ListDouble) Converts a list of doubles into a C++ 3d-vector.
VectReal(VectReal) Converts C++ 3d-vector into a list of doubles.
ZipThreeT1, T2, T3, TResult Apply a given function with three input arguments to each element of three lists.

Fields

verticality_tol tolerance for a line to be vertical.

See Also