Method “readSamcefDat” of the SamcefDb class is used to import the model in a SamcefDb. This function has up to three arguments:
A String object containing the name of the “banque” file from which the model is read. This file should be obtained by a “.sauve banque” command in Bacon. However, it may have been split into several files.
The second argument is a logical value (true or false) specifying whether the Groups defined in the banque file are to be imported too. However, it may be useful not to import the Groups from the banque file if one prefers to import them from a Patran session file (see section I.1.2.1). This argument is optional and its default value is “true”.
A Logical argument specifying the verbosity of the reading operations. Its default value is “false”. This parameter is redundant with “setVerbosityLevel” of “Post” Module: to set the parameter to “true” is equivalent to set “Post” verbosity level to 1.
The model can be split into several files loaded in a main file by input statements. However, the user should try to be conservative when splitting their model. For example:
The statement begins with keyword “input” or “INPUT”.
It may be followed by a label (“input.label”).
The statement cannot contain comments.
...
Here are a few examples of valid input statements:
input "../SPLIT_1/grids.dat" input "../SPLIT_1/elements.dat" input.beginC "../SPLIT_1/props.dat" input.beginB "../SPLIT_1/geom.dat" input "/home/ferespost/SAM_SPLIT/SPLIT_1/mecano.dat"
Note that for a reason unknown, the “.sauve banque” bacon command outputs the list of abbreviations defined in a database at the end of the banque after a “return” statement. This “return” statement must be removed or commented out if the abbreviations are to be imported in the database by the “readSamcefDat” command.
Finally, since version 4.5.7 of FeResPost, we have been trying to better support the Samcef input files produced directly by Siemens NX software. This has been done by working with a limited number of example files, and modifying the C++ sources until correct FeResPost reading is obtained. There is no guarantee that all features exported by NX are supported by FeResPost. This means that the reading of a file obtained via the “.sauve banque” Bacon command remains the safest way to read successfully a Samcef model. For NX users, the following is recommended:
First attempt the reading of NX output without any modification.
If this fails, revert to the “.sauve banque” approach.
Any NX files that FeResPost fails to read can be provided to help improve FeResPost.
Note also that the use of non-ASCII characters in Samcef file names, or in the names of directories via which input files are included should be avoided. (See more details regarding this rule in section III.1.1.1 in Nastran solver reference for more details.)