FeResPost Web Site                     FeResPost Online User Manual

IV.2.11.4 Reading superelement nodes from Result files

Example “RUBY/EX36/readBdfAndSE.rb” illustrate the use of methods “readSuperElementsFromHdf”, “readSuperElementsFromOp2” and “readSuperElementsFromXdb” to rad the nodes of partitioned superelements from Nastran output files. In the example, the reading is done as follows:

   db.readBdf(bdfPath)
   if bdfPath.include?("EXEC_HDF5") then
       h5Path=File.dirname(bdfPath)+"/"+File.basename(bdfPath,".*")+".h5"
       db.readSuperElementsFromHdf(h5Path)
   elsif bdfPath.include?("EXEC_XDB") then
       xdbPath=File.dirname(bdfPath)+"/"+File.basename(bdfPath,".*")+".xdb"
       db.readSuperElementsFromXdb(xdbPath)
   else
       op2Path=File.dirname(bdfPath)+"/"+File.basename(bdfPath,".*")+".op2"
       db.readSuperElementsFromOp2(op2Path)
   end

Depending on the path to BDF file, one “calculates” the name of Nastran output file and reads superelement nodes.

Example ‘RUBY/EX36/readResultSE.rb” illustrates the reading of SOL111 Results from HDF file with superelements.