FeResPost Web Site                     FeResPost Online User Manual

VII.1.3.2 Printing maximum stress

This example is stored in file “COMEX/EX03/printStressMax.rb”. It corresponds to the example “RUBY/EX05/printStressMax.rb” described in section IV.2.4.2. This example illustrates the use of operators with COM component. For example, with ruby extension, the intersection of two Groups is calculated with the following statement:

         newGrp = panelGroup * matGrp

With COM component, the same instruction becomes:

         newGrp = panelGroup.opMul(matGrp)

So far, the difference is not very dramatic. However, the translation of expressions involving several dyadic operators can be more difficult. For example, the following expression with ruby extension:

         scalar = Post.sqrt(sXZ*sXZ+sYZ*sYZ)

becomes with COM component:

         scalar = frpApp.sqrt(sXZ.opMul(sXZ).opAdd(sYZ.opMul(sYZ)))

(Note also that the “sqrt” method is found in “frpApp” Application instead of “Post” module.) A python version of the example is also available in file “COMEX/EX03/printStressMax.py”.