Skip to main content

A simple toolbox for getting mpc forces from output files from Optistruct

Project description

MPCForces-Extractor

This CLI tool outputs the MPC forces via summing it up per connected part. It is used in combination with Optistruct. Part connection detection can be visulized in Hpypermish through generated TCL Code.

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:

  • Detect the connected parts with in an efficient way
  • Read the mpcf File and assign each force to the mpc element (as this is not printed in the mpcf file)

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 give you the following output:

cli-ouput

If you need more documentation, you can access it here

Questions?

  • Write me a e-mail :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mpcforces_extractor-0.1.0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mpcforces_extractor-0.1.0-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file mpcforces_extractor-0.1.0.tar.gz.

File metadata

  • Download URL: mpcforces_extractor-0.1.0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for mpcforces_extractor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a68372b181cc8d6811c30a91def24acac475220b9eb17bdf3f86ffdd23b554ab
MD5 e06872924e7ba5f57675b20c80ce564b
BLAKE2b-256 836a23d563d63f9d191d80386e839a9a5781e4a26741aa288e196ec7588a7dae

See more details on using hashes here.

File details

Details for the file mpcforces_extractor-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mpcforces_extractor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07ec87aef2e94cb9f07486397f4c67d9c43b267d8e7f0796e6f51171bba1a130
MD5 94d4b096f92bcbf8fc1a2c18fa6bc7b2
BLAKE2b-256 b162febafeba326203c522fd74c4f99bcae5205c3bd9924c7cb44e67b2795af7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page