FeResPost Web Site                     FeResPost Online User Manual

VII.1.3.9 Manipulation of XDB Result files

The examples described in the following sub-sections are devoted to the manipulation of XDB Result files. Only the second example deals with the manipulation of complex Results.

VII.1.3.9.1 Extraction of information from XDB Result file

The first example is stored in file “COMEX/EX04/printXdbLcScResNames.rb”. It corresponds to the example “RUBY/EX17/printXdbLcScResNames.rb” described in section IV.2.4.6. The second example is stored in file “COMEX/EX04/printXdbLcInfos.rb”. It corresponds to the example “RUBY/EX17/printXdbLcInfos.rb” described in section IV.2.4.6. No remark to be done about these examples.

VII.1.3.9.2 Manipulation of complex Results

This example is stored in file “COMEX/EX04/manipComplex.rb”. It corresponds to the example “RUBY/EX17/manipComplex.rb” described in section IV.2.4.6. Some of the methods in ruby extension involve Complex arguments. As complex numbers are not accepted by the COM component, these numbers are replaced by an Array of two real values corresponding to the real and imaginary parts of the complex number respectively. This means that the following statements, valid when FeResPost ruby extension is used:

            Z=Complex.new(3.0,2.0)  
 
            multRI=resRI.clone  
            multRI*=Z

become the following statements when the COM component is used:

            Z=Complex.new(3.0,2.0)  
 
            multRI=resRI.makeCopy()  
            multRI=multRI.opMul([Z.real,Z.image])