manuel1618 / mpcforces-extractor

Get forces from RBE2s in Optistruct summed by connected parts
https://manuel1618.github.io/mpcforces-extractor/
MIT License
0 stars 0 forks source link
element engineer fea fem finite force mpc optistruct

MPCForces-Extractor

This CLI tool outputs the MPC forces via summing it up per connected part. It is used in combination with Optistruct.

Motivation

When you have simple rigid elements for modelling bolts, the mpcforces can be written out to either .h3d or .mpcf file among other options. With these options there seems to be no easy way of getting the summed up forces per conneced part for every mpc elmeent. Below you can see an image with the mpc forses printed as a vector plot. In the image there are two connected parts. To manually get the desired force per part you have to go into hyperview, do a table export and sum them up. This also requires you to have sets or to manually select the nodes per part. For a multitude of mpc elements this process is a problem.

Vector Forces Plot

The desired process is this:

Vector summed

This tool is destined to solve this by automating it. The two major problems regarding this:

Overview

v0 1 7 2-ProcessAndFrontend

As seen in the picture above, the .fem and .mpcf files are being transformed by the mpcforces-extractor in a .db file. This can be triggered from the main page and the extracted entities are saved in the .db and can be seen on the mpc and node page.

If you have transformed files into a .db file already you can directly load them in on the bottom half of the main page. This way, the tool is not triggered again but just the entities are displayed on the mpc and node pages.

The mpcforces-extractor serves a small webserver with the pages when being called as descriebed in the quickstart section below.

Quickstart

To use this tool, you can simply use the pip install command like so:

pip install mpcforces-extractor

After installing it, you can access the cli tool via: mpcforces-extractor which will launch a small webserver wher you can select input files and start the process:

If you need more documentation, you can access it here

Test Files

In order to make testing the tool easier, you can download the following files:

m.fem

m.mpcf

Questions?