Installing HomeBrew/OpenMP on MacOS

You have the option to compile the OOFEM with OpenMP in order to enable multithreading option (-t #number_of_threads). In CLion preferences, add a new CMake profile with the corresponding CMake option to enable OpenMP library for multi-threading. For OOFEM you need to add the following CMake option: -DUSE_OPENMP=ON (the default is OFF) If the OpenMPContinue reading “Installing HomeBrew/OpenMP on MacOS”

3D FEM modeling for OOFEM in Salome

OOFEM can use some UNV files to create the “.in” input file for simulation. UNV is a common format for saving FEM meshed models. You can preprocess a model in Salome and export the mesh into UNV format to be later used by OOFEM. UNV file only includes the mesh and the also group ofContinue reading “3D FEM modeling for OOFEM in Salome”

Running Python scripts of OOFEM inside CLion

OOFEM has some parts written in python (*.py) such as unv2oofem used for preprocessing and extractor used for postprocessing. To run these scripts first make sure you have setup the python interpreter (see here) Next simply open the python script such as /tools/unv2oofem/unv2oofem.py by openning the script and right click on the file tab andContinue reading “Running Python scripts of OOFEM inside CLion”

Editing/Rendering OOFEM documentation

You need to install a LaTeX editor to modify and update the OOFEM manual source files. Texmaker is one of the best editors for this purpose. Installing Texmaker and libraries that OOFEM documentation needs to compile. If you are here just to download the manuals I have compiled (April 2021) please scroll to the endContinue reading “Editing/Rendering OOFEM documentation”

Correcting timeout values in CLion

 If you get timeout error during debugging; this can be due to your host machine hardware limitation. You may workaround this problem by increasing the timeout values for CLion: Go to the Help | Find Action > run “Registry” command Find “cidr.debugger.timeout” “cidr.debugger.timeout.evaluate” “cidr.debugger.timeout.load” Increase values (e.g. 120,000) This may cause you machine to freezeContinue reading “Correcting timeout values in CLion”

Running oofem “*.in” files from CLion

I always keep the input (*.in) files inside “run_dir” directory inside project directory (they will not be a part of the repository). If you want to do this, you have to change running (working) directory inside run configuration. Open drop-down menu next to the green hammer icon below menu bar. Inside program arguments you canContinue reading “Running oofem “*.in” files from CLion”

Building OOFEM clone in CLion and configuring Python interpreter

 A) Building the project CLion automatically detects CMakeLists.txt and loads the source files, the remaining process is easy: (This is for Linux, For MacOS skip this) First, install Doxygen and Python:sudo apt-get install doxygenFor the next part also install pythonsudo apt install python3-pip Below the menu from the drop-down select “oofem|Debug”. If you don’t seeContinue reading “Building OOFEM clone in CLion and configuring Python interpreter”

Cloning the Repository using CLion

Before continuing, you may want to make sure that you have the proper compilers installed so that in case you are asked to setup toolchains you can select the desired compiler. Go to the Github website and star the targeted repository:— For original OOFEM: https://github.com/oofem/oofem— For RBSM (OORBS): https://github.com/oorbs/oofem Open CLion Start a new projectContinue reading “Cloning the Repository using CLion”

Design a site like this with WordPress.com
Get started