VII.1.2.1 Using iterators and “NastranDb” class
The file “COMEX/EX02/testNastranDb.py” contains python examples of the use of NastranDb class
with the COM component. Each type of test is defined in a devoted python function that is called by
the “main” program.
- “testIterators” reads a Nastran BDF and a Patran session file into a NastranDb dataBase.
Then the different iterators are tested and the “iterated” entities returned by the iterators
are printed in an output file.
- “testElemConnectivity” prints the elements connectivity for all the elements.
The example “COMEX/EX02/properties.rb” illustrates the access to FEM definition with
“fillCard” method.