Chapter I.4
The “Result” class
The “Result” class is devoted to the manipulation of finite element Results. Examples of Results are stress tensor on volumetric or surface elements, displacements, grid point forces,... The ruby class “Result” is a wrapping around the C++ class “Result”.
Results can be read from various solver binary files. See Part III for more information.
The “Result” class allows the storage and manipulation of Real as well as Complex values. Note however that several of the methods of Result class do not allow the manipulation of Complex Results. Therefore, indications are inserted here and there in this Chapter to provide information about the “Complex capabilities” of the different methods.
An important note: Even though the results can be imported into a DataBase, this does not mean that the manipulation of the results is correct. Indeed, all manipulation that involve transformation of coordinate systems can be incorrect because geometric non-linearities are not taken into account. Methods that can be affected by this limitation are for example: “modifyRefCoordSys”, “modifyPositionRefCoordSys” and “calcResultingFM”.
A list of the methods defined in “Result” class is given in Table I.4.1.
I.4.1.1 “Keys”
I.4.1.2 “Values”
I.4.1.3 Identification of Result objects
I.4.1.4 Other characteristics
I.4.1.5 Tensorial Results, symmetric or non-symmetric
I.4.2 FeResPost Results’ characteristics
I.4.3 Extraction methods
I.4.3.1 “extractResultOnEntities” method
I.4.3.2 “extractResultOnLayers” method
I.4.3.3 “extractResultOnSubLayers” method
I.4.3.4 “extractResultOnRkl” method
I.4.3.5 “extractResultOnResultKeys” method
I.4.3.6 “extractResultOnRange” method
I.4.3.7 “extractResultForNbrVals” method
I.4.3.8 “extractResultMin” method
I.4.3.9 “extractResultMax” method
I.4.3.10 “extractRklOnRange” method
I.4.3.11 “extractRklForNbrVals” method
I.4.3.12 “extractRklMin” method
I.4.3.13 “extractRklMax” method
I.4.3.14 “extractRkl” method
I.4.3.15 “extractGroupOnRange” method
I.4.3.16 “extractGroupForNbrVals” method
I.4.3.17 “extractGroup” method
I.4.3.18 “extractLayers” method
I.4.3.19 “extractSubLayers” method
I.4.4 Derivation monadic methods
I.4.4.1 “deriveScalToScal” method
I.4.4.2 “deriveScalPerComponent” method
I.4.4.3 “deriveVectorToOneScal” method
I.4.4.4 “deriveVectorToTwoScals” method
I.4.4.5 “deriveVectorToVector” method
I.4.4.6 “deriveVectorToTensor” method
I.4.4.7 “deriveTensorToOneScal” method
I.4.4.8 “deriveTensorToTwoScals” method
I.4.4.9 “deriveTensorToThreeScals” method
I.4.4.10 “eigenQR” method
I.4.4.11 “deriveByRemapping” method
I.4.5 Dyadic derivation method
I.4.6 Methods modifying the object
I.4.6.1 Access to and modification of Result data
I.4.6.2 “setRefCoordSys”
I.4.6.3 “renumberLayers”
I.4.6.4 “renumberSubLayers”
I.4.6.5 “removeLayers”
I.4.6.6 “removeSubLayers”
I.4.6.7 “modifyRefCoordSys”
I.4.6.8 “modifyPositionRefCoordSys” method
I.4.6.9 Linear combination of Results
I.4.6.10 Rotations of vectorial and tensorial Results
I.4.7 Operators
I.4.7.1 Addition operator
I.4.7.2 Subtraction operator
I.4.7.3 Multiplication operator
I.4.7.4 Division operator
I.4.7.5 Exponent operator
I.4.8 “calcResultingFM” method
I.4.9 Complex Results
I.4.9.1 Rectangular-Polar conversions
I.4.9.2 Conjugate Complex Result
I.4.9.3 Rotation of Complex Result
I.4.9.4 Extractions from Complex Results
I.4.9.5 Assembling Complex from Real Results
I.4.10 “getData”
I.4.11 “BLOBs”
I.4.12 Iterators
I.4.13 A few singleton (static) methods
I.4.14 Other methods
I.4.14.1 “new”
I.4.14.2 “initialize”
I.4.14.3 “clone”
I.4.14.4 “cloneNoValues”
I.4.14.5 “initZeroResult”
I.4.14.6 “Size” attribute
I.4.14.7 “to_s”