FeResPost Web Site                     FeResPost Online User Manual

Chapter VII.0
Introduction

COM examples can be run on Windows only. These examples should be launched via batch scripts that define the environment variables needed for the execution. Most of the COM examples are written in Python and can be launched with the corresponding batch script. For examples in directory “COM/EX01", the command “readBdf_V4.bat” launches the Python script “readBdf_V4.py”. The “readBdf_V4.bat” script contains, for example, the following lines:

        setlocal
        call "../ENV/env.bat"
        python readBdf_V4.py
        endlocal
        sleep 3
    

in which the environment defines the variables specifying the version of python to be used, and the PATH to the directories containing executables and libraries used for the execution. For example:

        set WINLIBS=C:/Users/ferespost/Documents/SRC/OUTPUTS/REDISTR;C:/Windows/SysWow64
        set PATH=C:/NewProgs/RUBY/RUBY_230_mingw32_x64/bin;C:/NewProgs/PYTHON/PYTHON_312_64;
            C:/NewProgs/PYTHON/PYTHON_312_64/Scripts;%WINLIBS%
        set HDF5_PLUGIN_PATH=C:/NEWPROGS/HDF5/MSC/nastran_2024/plugins_hdf5
    

Most of the COM examples are obtained via an automated translation of ruby examples. Their presentation in “COM” directory follows closely the structure in RUBY directory. Additional COM examples are presented in “COM/EX99*” directories.

The launch of excel examples is slightly different. For example, the script launching the classical laminate analysis with excel in directory “EX99_XL_CLA” contains:

        setlocal
        call "../ENV/env.bat"
        set PATH=C:\Users\ferespost\Documents\TESTSAT\COM\SQLITE_4_EXCEL\32;
            D:\FERESPOST\SQLITE_4_EXCEL\64
        LaminateAnalysis.xls
        endlocal