Running first analysis with OOFEM/OORBS

To run the analysis, you simply put the input file in the desired working directory and provide the file name to OOFEM with execution arguments “-f filename“. The working directory is where the OOFEM will execute and create the output files. You can keep the input files in the same directory. Select the OOFEM fromContinue reading “Running first analysis with OOFEM/OORBS”

Checklist for setting up OOFEM/OORBS on MacOS

Here is the checklist for setting up the basic developer environment on a Mac PC for OOFEM (for the colleagues who want to contribute to the RBSM development in OOFEM, OORBS): Download and install Xcode from Appstore Download and install CLion,If you don’t have Jetbrain account (the devlopers of Clion) create one, if you areContinue reading “Checklist for setting up OOFEM/OORBS on MacOS”

Engaged CPU capacity by OOFEM multi-threading

Even with multi-threading enabled compilation (USE_OPENMP CMake option), mostly a limited CPU capacity is engaged by OOFEM. One reason could be the default Skyline solver and the implemented Crout matrix factorization method. Skyline storage scheme does not eliminate all the zeroes in the matrix and the matrix factorization used in the code is a sequentialContinue reading “Engaged CPU capacity by OOFEM multi-threading”

Using GMSH for preprocessing of OOFEM solver

A simple 2D case of modeling using Salome is provided as the official manual of preprocessing models for OOFEM solver. Also, a simple 3D case was formerly provided in this blog. However, the installation of Salome can be cumbersome while GMSH can easily run on Windows, macOS, and Linux machines. Here I first try toContinue reading “Using GMSH for preprocessing of OOFEM solver”

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”

Compiling and running CLion project on a remote MacOS host machine

As the running an analysis becomes more expensive time-wise, one may find the ability to compile and run a program on a remote machine useful. Happen to be we have a Mac Pro station which we use to run analysis. To me it is only useful if I can easily run my code using theContinue reading “Compiling and running CLion project on a remote MacOS host machine”

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”

Manually installing Salome on Ubuntu

Extract the downloaded Salome package and move the extracted directory to the location to be set-up. Make sure there is no space on the address of the directory. Install Python sudo apt install python3-pip To avoid psutil related error: sudo pip install –upgrade psutil Install Boost, QT 5, OpenGL, LAPack and other required libraries: sudoContinue reading “Manually installing Salome on Ubuntu”

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”

Design a site like this with WordPress.com
Get started