quick-fea
/quick-fea
Liczy naprężenia, ugięcia i częstotliwości drgań części STEP metodą elementów skończonych i sprawdza wynik ręcznym obliczeniem.
- Autor
- BaratiLab ↗
- Repozytorium
- mechanical-engineering-skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 03.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 1
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 03.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/fea.py
Co robi i kiedy
Liczy naprężenia, ugięcia i częstotliwości drgań części STEP metodą elementów skończonych i sprawdza wynik ręcznym obliczeniem.
Oryginalny opis (EN)
Runs quick linear-static and modal finite-element analysis on a STEP part (gmsh mesh + scikit-fem quadratic tets), reports max stress, deflection, natural frequencies, and always checks against a hand calculation and a mesh-convergence run. Use when the user asks for FEA, stress analysis, deflection, stiffness, natural frequency, or whether a part will survive a load.
Jak działa
- Workflow
- Limits
Podgląd SKILL.md
---
name: quick-fea
description: Runs quick linear-static and modal finite-element analysis on a STEP part (gmsh mesh + scikit-fem quadratic tets), reports max stress, deflection, natural frequencies, and always checks against a hand calculation and a mesh-convergence run. Use when the user asks for FEA, stress analysis, deflection, stiffness, natural frequency, or whether a part will survive a load.
---
# Quick FEA
Setup: `pip install gmsh scikit-fem matplotlib`. On headless Linux, gmsh also needs `apt-get install libglu1-mesa libxcursor1 libxinerama1 libxft2`. Units: mm, N, MPa, t/mm³.
## Workflow
1. **Geometry.** Use the user's STEP, or build one with the `parametric-part-cad` skill. Remove cosmetic features (logos, small chamfers) that don't carry load. Note the bounding box; you'll use it to pick boundary faces.
2. **Write down the idealization** before you solve: the material (E, ν, ρ, σy), which faces are fixed, which faces carry the load, the load magnitude and direction, and what is being neglected (contact, preload, plasticity, large deflection).
3. **Hand calculation first.** Estimate the answer with a closed form: beam bending σ = Mc/I, δ = FL³/3EI, Lamé thick cylinder, plate formulas (`references/hand_calcs.md`). This is the sanity anchor.
4. **Solve:**
```bash
python scripts/fea.py part.step --E 69000 --nu 0.33 --fix "x[0] < 1e-3" \
--load "x[0] > 149.999" --force 0,0,-500 --size 4 --out run1
python scripts/fea.py part.step --E 69000 --nu 0.33 --rho 2.7e-9 --fix "x[0] < 1e-3" --modes 6 --out modal
```
Face selection uses expressions on facet midpoints, for example `np.abs(x[2]-10)<1e-3`, or `(x[0]**2+x[1]**2) < 6.1**2` for a bolt hole.
5. **Convergence.** Re-run with `--size` halved. A result is converged when max displacement changes by less than 2% and the 99th-percentile von Mises stress by less than 5%. Max von Mises at a sharp re-entrant corner is a singularity: it never converges. Report the stress at a small distance from the corner, or add the real fillet.
6. **Check:**
- `equilibrium_error_pct` < 1%;
- FEA agrees with the hand calculation within about 15% for the nominal region, or you can explain why it differs;
- margin = σy / σ_vm(p99) − 1, reported against the user's target safety factor;
- deflection small compared with thickness. If not, linear theory doesn't apply; say so.
7. **Report**: idealization sketch (text), mesh table, results with the convergence column, hand-calc comparison, contour image `run1_vm.png`, margin, and recommendations.
## Limits
Linear elastic, small deflection, no contact, isotropic material. For bolted joints, model the bolt-hole bearing area as the fixed or load face, not the whole hole. For thin shells, use a fine mesh (at least 2 elements through thickness) or flag the stiffness error.
Pliki w paczce (3)
- SKILL.md 3 KB
- references/hand_calcs.md 1 KB
- scripts/fea.py 7 KB
Wersje
W bazie nie ma innych skilli o nazwie quick-fea.
Migawka bazy z 13.11.2026 · wersja paczki b7d804099952 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100fea
Sprawdza wytrzymałość konstrukcji metodą elementów skończonych dla prototypów wirtualnych robotów i sprzętu: obciążenia statyczne, ugięcia, drgania własne i ryzyko upadku przed prototypem fizycznym. - 95fem-workflow-operator
Uruchamia symulację elementów skończonych obiektu od początku do końca i raportuje wynik z dowodami. - 95fenics-fem
Rozwiązuje równania różniczkowe cząstkowe metodą elementów skończonych w FEniCS/dolfinx: sformułowania słabe, siatki gmsh i eksport. - 95run_fea
Uruchamia analizę MES statyczną lub modalną części CAD w CalculiX, sprawdza wiarygodność wyniku i zapisuje go w bliźniaku. - 95run_fea
Uruchamia statyczną analizę naprężeń lub modalną analizę MES w CalculiX na części CAD i zapisuje wynik przy konkretnej wersji geometrii. - 100abaqus
Prowadzi skrypty Abaqus FEA w Pythonie: analiza metodą elementów skończonych i optymalizacja topologii, z kierowaniem do wyspecjalizowanych skilli.