Click or drag to resize

Utils Class

Class that contains various utilities as methods.
Inheritance Hierarchy
SystemObject
  Karamba.UtilitiesUtils

Namespace:  Karamba.Utilities
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 2.2.0.4 (2.2.0.4)
Syntax
public static class Utils

The Utils type exposes the following members.

Methods
  NameDescription
Public methodStatic memberaddElemIDsToCroSecs
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.
Public methodStatic memberblowUpT(ListT, DataTreeStructure)
Copy last element of list so that list has as many elements as there are branches.
Public methodStatic memberblowUpT(ListT, Int32)
Copy last element of list so that list has s elements.
Public methodStatic memberblowUpT(ListListT, T, DataTreeStructure)
Copy last element of list so that list has s elements.
Public methodStatic membercapBeamMesh
connects the vertices at the beams'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.
Public methodStatic membercheckTRange
Check whether all given values are 0 smaller than t smaller than 1.
Public methodStatic memberconvert
convert fem coordinate system to array of Vector3 (x,y,z-axis in global coordinates).
Public methodStatic membercrosssectionsPath
Get the directory name of the karamba3d-cross-sections-folder.
Public methodStatic membergenerateBeamMesh
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.
Public methodStatic memberhandleError
handle an error originating from a FE-model-calculation.
Public methodStatic memberInterpretLCInput
Interprets the string input for a load-case name: if it is a floating point number it gets converted to an int.
Public methodStatic memberkarambaDir
Get the directory name of the karamba-folder.
Public methodStatic memberMatch(ListString, ListString)
match two sets of strings. The first set of strings may contain regular expressions prefixed by "&".
Public methodStatic memberMatch(String, ListString)
match a string with a set of strings. The first string may contain regular expressions prefixed by "&".
Public methodStatic membermaterialsPath
Get the directory name of the karamba3d-materials-folder.
Public methodStatic membernameInd(String)
Resolves an identifier of format 'name-index' to name and index.
Public methodStatic membernameInd(String, Int32)
Creates a list of indexed, zero based identifiers.
Public methodStatic memberPluginPath
return path to the folder where the Karamba folder resides.
Public methodStatic memberPluginPathExe
Get the Plug-in path relative to the executed dll. Is incorrect in case Rhino gets used inside other programs.
Public methodStatic memberremoveComment
returns string with everything removed that comes after '#'.
Public methodStatic memberRemoveNonPrintableCharacters
removes non-printable characters from a string.
Public methodStatic memberremoveNonVisibleCharacters(ListString)
removes invisible characters from a list of strings.
Public methodStatic memberremoveNonVisibleCharacters(String)
removes invisible characters from a string.
Public methodStatic membersetElemIDsAtCroSecs
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.
Public methodStatic memberToDeg
Convert angle in radians to degree.
Public methodStatic memberToRad
Converts angle in degree to radians.
Public methodStatic membervalueDistributionType
convert string into feb.ValueDistributionType.
Public methodStatic memberVectReal(VectReal)
Converts C++ 3d-vector into a list of doubles.
Public methodStatic memberVectReal(ListDouble)
Converts a list of doubles into a C++ 3d-vector.
Top
Fields
  NameDescription
Public fieldStatic memberverticality_tol
tolerance for a line to be vertical.
Top
See Also