AFEM
Airframe Finite Element Modeler
Install / Use
/learn @trelau/AFEMREADME
AFEM — Airframe Finite Element Modeler
AFEM is a "fit-for-purpose" engineering development toolkit designed to support the use of high-order structural analysis during the early phases of aircraft conceptual design. As a development toolkit, it provides the engineer with a flexible, modular, and extensible library of components and tools to rapidly build a useful structural model. It is not an end-user GUI application, but rather a library enabling engineers to rapidly build their own application specific tools and processes, encoding their own design rules and best practices along the way.
Although AFEM targets airframe design and analysis applications, really only
the afem.structure and afem.oml packages directly support that cause.
All the other packages provide a more general and "Pythonic" set of entities
and tools that could potentially be used to develop applications in other
disciplines and/or domains.
Getting started using conda
Conda packages are available for a number of platforms and Python versions. Get started with:
conda create -n afem python=3.8
activate afem
conda install -c conda-forge -c trelau afem
This will create an environment named "afem" and install AFEM and all
necessary dependencies. You can replace the "afem" environment name with
anything you'd like.
The best way to get started is to examine and run the files in the examples/ folder. Running the script:
python structure_wingbox.py
should generate an image similar to the one shown below. Remember to make sure the appropriate environment is active when using AFEM is applicable.

Installation files can be cleaned by:
conda clean -a
Building documentation
The documentation can be built from sources using sphinx. Install sphinx and sphinx_rtd_theme in the desired conda environment by:
conda install sphinx sphinx_rtd_theme
Then navigate to the docs/ folder and run:
make html
This should build html documentation in a docs/build/html folder. Open the index.html file with a web browser.
Examples
Finding mesh nodes shared between the spars and ribs:

Fuselage section with frames, floors, and floor supports modeled as beams:

Flexibility to define custom structural components like a circular spar:

Structural geometry defined and joined between the wing and fuselage:

Related Skills
claude-opus-4-5-migration
109.7kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
349.7kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
TrendRadar
51.0k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
mcp-for-beginners
15.8kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
