FeResPost mailing list and support
Most questions are answered in the frequently asked questions below. If you do not find your answer there, please ask it in the FeResPost Google group.
Mailing list
You can visit or subscribe to the FeResPost Google group:
If you have a question to ask or a bug to report, we would appreciate it if you did so via the FeResPost Google group, so that others can benefit from your remarks as well.
Frequently asked questions
General
What is FeResPost?
FeResPost is a library that reads Nastran and Samcef finite element models and results, and automates post-processing operations: extraction of results on groups, changes of coordinate systems, derivation of criteria (Von Mises, eigenvalues...), combinations of results, Classical Laminate Analysis, and more. You drive it with scripts or programs written in the language of your choice.
Is FeResPost free? Can I use it in a commercial or proprietary application?
Yes. FeResPost is distributed free of charge under the LGPL license. You may link it to your own applications, including proprietary ones, and distribute them together with FeResPost. If you modify FeResPost itself, you must distribute the modified version with its sources under the GPL or LGPL license. See the License page for details.
Can I use FeResPost online, or try it without installing it?
No, FeResPost cannot be used online. But the binaries and sources can be downloaded free of charge from the Downloads page, so you can install it on your computer and try it with the examples.
Which solvers and file formats are supported?
For Nastran: models from BDF or OP2 files, groups from Patran session files, and results from OP2, XDB or HDF5 files, with random access for XDB and HDF5. For Samcef: models from DAT files obtained with the “.sauve banque” Bacon command, and results from DES/FAC files.
Which programming languages can I use?
Ruby and Python through the native extensions, any COM-enabled language on Windows (VBA in Excel, Python, Ruby, C++...) through the COM component, and C# or other .NET languages through the .NET assembly.
Which operating systems are supported?
Binaries of the Ruby and Python extensions are distributed for Linux and Windows. The COM component and the .NET assembly are Windows only. On other systems, you can compile FeResPost from the sources (see the appendix of the User Manual).
Installation
Should I download the win32 or the win64 archive?
It does not depend on your operating system, but on the program that loads FeResPost: your Ruby or Python interpreter, or the application using the COM component. Many Microsoft Office installations are still 32-bit: to use FeResPost from Excel, you then need the 32-bit COM component, even on a 64-bit Windows.
How do I install the Python or Ruby extension?
Extract the archive, then tell your interpreter where the extension is. With Python, copy FeResPost.pyd into your site-packages directory (given by python -m site --user-site), or add its directory to the PYTHONPATH environment variable. With Ruby, use the -I command-line option or the RUBYLIB environment variable. Make sure you use the directory that matches the version of your interpreter. See the Install page for examples.
Which versions of Python and Ruby are supported?
The versions of Python and Ruby for which binaries are distributed are listed in Table X.A.1 of the User Manual (Appendix X.A). As they can change from one FeResPost version to the next, please check this table in the manual of the version you download.
In the archives, each extension is located in a directory named after the interpreter version: for example, OUTPUTS/PYTHON/PYTHON_311 for Python 3.11. Use the directory that matches the version of your interpreter. For other versions, you can compile the extension from the sources.
I get “DLL load failed”, or “name 'NastranDb' is not defined”, when I import FeResPost in Python. What is wrong?
In most cases, the environment is not set up correctly. The Python extension depends on shared libraries distributed in the OUTPUTS/REDISTR directory of the archive. Set PYTHONPATH to the OUTPUTS/PYTHON/PYTHON_XY directory that matches your Python version, and add the REDISTR directory to your PATH, for example in a batch file that then launches Python. If you work in an IDE such as Anaconda, either launch it from such a batch file, or define these variables in your user profile.
Also check that you downloaded the right archive: Windows or Linux, 32-bit or 64-bit, and the right Python version.
How do I register the COM component?
Run the modifyRegistry.exe program located in the OUTPUTS/COM/bin directory, select the FeResPost.dll library and the FeResPost.tlb type library, then click “Start Registering COM Component”. You can register it for the current user only, or for all users (administrator privileges required). A video on the Videos page shows the procedure. In Excel, you must then add a reference to the component in the VBA editor.
How do I use the .NET assembly?
Either copy FeResPost.dll into the Global Assembly Cache (administrator privileges required), or simply place it in the same directory as your executable.
What do I need to read Nastran HDF5 files?
The HDF5 shared library must be loaded with Post.loadHdf5Library(...) before any HDF5 method is called. Redistributable HDF5 libraries are available on the Downloads page. As with FeResPost itself, choose the 32-bit or 64-bit version that matches your interpreter or application.
Usage
Should I use OP2, XDB or HDF5 result files?
All three are supported. For modal or dynamic response results, HDF5 files are recommended: they are generally more efficient, and reading large XDB files with many frequency outputs can be slow. XDB and HDF5 files can also be “attached” instead of read: results are then extracted on demand, which saves memory at the cost of more disk accesses.
Why can't I find Von Mises stresses, principal stresses or pressure in the results I read?
FeResPost reads the components of the stress or strain tensors, not the derived values printed by Nastran. Derived values are calculated with the methods of the Result class: for example, deriveTensorToOneScal("VonMises") for the Von Mises stress, or deriveTensorToThreeScals("Principals") for the principal stresses.
There is no “pressure” derivation, but the pressure is minus the average of the three principal stresses (or, equivalently, of the three normal components). Note that the Von Mises stress is normally derived from the stress tensor, not from the strain tensor.
Can I read OP2 files produced by Autodesk Nastran?
Yes. Autodesk Nastran produces OP2 files in the format used by I-DEAS: call readOp2 with its “PostParam” argument set to -2. (See the description of the readOp2 method in the User Manual.)
Does FeResPost support Nastran superelements?
FeResPost supports the partitioning of BDF files into superelements, and associates the results read with the corresponding partitions. However, it cannot recover stresses inside condensed (external) superelements: Nastran does not calculate them on the detailed model.
Where can I find examples?
A large set of examples (Ruby and Python scripts, C# programs, Excel workbooks, and a small Nastran model) is distributed in the “Sources and examples” archive of each version, on the Downloads page. They are presented in order of increasing complexity in the User Manual, which can be read as a tutorial. A few of them are also described on the Examples page.
Where is the documentation?
The User Manual is available online in HTML, as a multi-page or a single-page document, and in PDF on the Downloads page, together with each version.
Can I use FeResPost without programming?
Some Excel examples can be used almost as ready-made tools, but FeResPost is designed to be driven by scripts: you will get the most out of it by adapting the examples to your needs. If you do not want to program at all, an interactive pre- and post-processor (Patran, Femap, HyperWorks, NX...) is probably a better choice.
Versions and support
What are the “Latest developments” on the Downloads page?
They are unofficial builds of the current version, including small bug fixes published between official releases. They are not official versions, but it is worth checking them if you encounter a problem.
A method used in my old scripts no longer exists. How do I migrate them?
Check the description of the class in the User Manual of the version you use. Some old Python scripts rely on “private” Python bindings developed independently of FeResPost: their methods have never been part of the official versions. The first official version with Python bindings is version 4.4.0. Such scripts must be adapted to the official bindings.
How do I ask a question or report a bug?
Please post it in the FeResPost Google group, so that other users can benefit from the answer. To help us reproduce the problem, please include:
- the FeResPost version, and whether you use 32-bit or 64-bit binaries,
- your operating system,
- the programming language and its version,
- the complete error message,
- if possible, a small script that reproduces the problem.