FeResPost Web Site                     FeResPost Online User Manual

IV.3.1 Importing and exporting data

The first examples are presented in directory “TESTSAT/RUBY/EX12” and illustrate the importation of data, and the saving of data.

One example is contained in file “testNeutral.rb”. The three first instructions, create a “ClaDb” object and initialize it by reading the ESAComp file “test.edf”. Then the content of the ClaDb object is saved into a neutral file.

   dbA=ClaDb.new
   dbA.readEdf("test.edf")
   dbA.writeNeutral("NeutralA.ndf")

Then, a new “ClaDb” object is created and initialized by reading the previously created neutral file.

   dbB=ClaDb.new
   dbB.readNeutral("NeutralA.ndf")
   dbB.writeNeutral("NeutralB.ndf")

We advise the reader to read and compare the two neutral files. A comparison with ESAComp file might be useful too.

Another example illustrates the possibility of defining a composite database corresponding to the materials and laminates defined in a finite element model. The example is programmed in file “testNastran.rb”. The model DataBase is produced “as usual”. Then the corresponding ClaDb object is returned:

   compDb=db.getClaDb

Finally, the composite database is saved in “nast.ndf” neutral file:

   compDb.writeNeutral("nast.ndf")

(In this case, the database is not a very interesting one because only one laminate is defined, and it is not a very interesting one.)