Skip to main content

Overview

Status License Python Version

A Python library for interpreting Finite Element Method Magnetic (FEMM) files and exposing FEMM solution data through a Python attribute-based interface. FEMMInterpreter exposes the A-field as A(x,y), independent of planar or axisymmetric coordinate systems.

Proposed Integration

FEMMInterpreter is intended to provide a bridge between FEMM's numerical solutions and Python-based computational models.

FEMM Setup & Solve → FEMM (.ans) → FEMMInterpreter → Reduced Order Models / Analytical Models

Magnetic vector potential Plot

Figure 1: Magnetic vector potential of a dipole extracted from FEMM (.ans)

[!NOTE]

This example of a dipole being plotted can be found in /examples with .ans and .py files.

Quick Start

from FEMMInterpreter import Parser

# Imports the parser and parses the .ans file
PATH = "examples/magnetostatic.ans"
data = Parser.open(PATH)

# Result as a float with implicit unit of wb/length_unit
a_potential = data.point_potential(0, 0)

[!IMPORTANT]

This tool will focus on the magnetic domain for now, but can be expanded in the future to cover all FEMM solutions.

Installation

[!WARNING]

This library is still under development and hasn't been fully documented nor fully test-covered.
The abstraction boundaries may change with future releases.

To install,

pip install FEMMInterpreter

Documentation

Documentation for the attribute class output can be found here.
Internal documentation can be found within this repo's issues.

Tags

LX -> Documentation and project structure
L0 -> Requirements and Objectives
L1 -> Architecture and implementation
L2 -> Validation of the codebase
DS -> Descoped Feature, Descoped Analysis 

Download files

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

Source Distribution

femminterpreter-0.1.1.tar.gz (421.8 kB view details)

Uploaded Source

Built Distribution

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

femminterpreter-0.1.1-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file femminterpreter-0.1.1.tar.gz.

File metadata

  • Download URL: femminterpreter-0.1.1.tar.gz
  • Upload date:
  • Size: 421.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for femminterpreter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0a27dd11d6efc974e41a703c3d19234d562163f6f40c26ae3a8925e28a46a41e
MD5 6b6755740a800166e724010583736bde
BLAKE2b-256 0343ef41109bdf1f2aff8dc47b7e9611eab6e9e28b5f48b9118493a07e4c6203

See more details on using hashes here.

Provenance

The following attestation bundles were made for femminterpreter-0.1.1.tar.gz:

Publisher: publish.yml on wgbowley/FEMMInterpreter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file femminterpreter-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: femminterpreter-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for femminterpreter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e32bf7230157e78cf99a6ee52e1572e0b16d96f3fd07a244eb2bb96aebe1fc6e
MD5 e98063f8de21347f8884b7891f2483ba
BLAKE2b-256 626b574d45ebc9f43b3ea9542c1e9f356282bcba44430cf872a80d71cf715717

See more details on using hashes here.

Provenance

The following attestation bundles were made for femminterpreter-0.1.1-py3-none-any.whl:

Publisher: publish.yml on wgbowley/FEMMInterpreter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

Supported by

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