Skip to main content

High-performance Rust-backed calculations for FERS.

Project description

FERS_calculations

FERS_calculations is a high-performance library for Rust-backed calculations in mechanical engineering. It can process JSON input files to deliver fast and accurate results. While it can be run as a standalone tool, integration with FERS_core simplifies input creation and workflow management.

Features

  • Standalone Functionality: Run directly by providing a valid JSON input file.
  • Rust-Powered Performance: Designed for speed and reliability in computational tasks.
  • Python Integration: Seamless integration with FERS_core for easy preprocessing and result handling.
  • Engineer-Friendly Design: Minimal coding effort required for complex structural engineering calculations.

Installation

pip install fers_calculations

This installs the pre-built Rust bindings -- no Rust toolchain required.

Usage

Standalone (Python)

You can call fers_calculations directly from Python without FERS_core:

import fers_calculations

# Load your JSON input
with open("001_cantilever_with_end_load.json") as f:
    json_data = f.read()

# Run the analysis
results_json = fers_calculations.calculate_from_json(json_data)

# Save the results
with open("results.json", "w") as f:
    f.write(results_json)

With FERS_core (recommended)

For a more ergonomic workflow, install FERS_core which handles model creation, calling the Rust engine, and post-processing / visualisation:

pip install fers-core
from fers_core import FERS

model = FERS.from_json("001_cantilever_with_end_load.json")
model.calculate()
model.plot_results_3d()

See FERS_core on PyPI for full documentation.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

fers_calculations-0.1.82.tar.gz (835.6 kB view details)

Uploaded Source

Built Distributions

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

fers_calculations-0.1.82-cp312-cp312-win_amd64.whl (548.1 kB view details)

Uploaded CPython 3.12Windows x86-64

fers_calculations-0.1.82-cp312-cp312-manylinux_2_34_x86_64.whl (630.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

Details for the file fers_calculations-0.1.82.tar.gz.

File metadata

  • Download URL: fers_calculations-0.1.82.tar.gz
  • Upload date:
  • Size: 835.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.12.6

File hashes

Hashes for fers_calculations-0.1.82.tar.gz
Algorithm Hash digest
SHA256 a421985a412a01b8a076d582b4fee463929b4270730704fb8e3d169dcfad9f18
MD5 4cd80b1b4b7aae5be050f70926f18adc
BLAKE2b-256 7863686068c537d9b2fa3da60518bc7b26d13290042f7ac843b013d19004e61d

See more details on using hashes here.

File details

Details for the file fers_calculations-0.1.82-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for fers_calculations-0.1.82-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fd5e4b78d40daefb8cf6491a2d624169994163042b2394ea3c7ec467f510e9a6
MD5 7eb7b8402ce37a4e95ce17886eec3dca
BLAKE2b-256 48a8bc00cee96dde3ecd8637ab19368725ce1b88ee3308d7c50eaca3d5badf64

See more details on using hashes here.

File details

Details for the file fers_calculations-0.1.82-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fers_calculations-0.1.82-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 757b49491ed6a457cf09a4615f68f54d89656dde81bba3077c90727091497da4
MD5 081a2375a64ba0c8f18ce603bead5a28
BLAKE2b-256 1f679832342016de8bb1f1e88a2ca7de010d1296ca188d4ecb2d50417b7dd168

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