You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.7 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Воспроизводимая сборка проекта «Клапан предохранительный пружинный DN 25/40 PN 250/63» (ВКП.25.250.00.000)
# make tools — установить инструменты (FreeCAD 1.1.4 + gmsh + CalculiX, ezdxf, venv с vtk/freecad-mcp)
# make all — расчёты → 3D-модель → МКЭ → чертежи → отчёт
# make test — проверочные тесты расчётных модулей
# make gui — FreeCAD с MCP-сервером + загрузка модели и снимки через MCP
# Порядок важен: модель читает подобранную пружину из out/calc/valve_calc.json.
PY := tools/freecad/squashfs-root/usr/bin/python
VPY := tools/venv/bin/python
export OMP_NUM_THREADS := 4
.PHONY: all tools calc cad fea loads drawings report test gui clean
all: calc cad fea loads drawings report
tools:
bash tools/install_tools.sh
calc:
$(PY) calc/valve_calc.py
$(PY) calc/strength_calc.py
cad: calc
$(PY) cad/build_model.py
fea: cad
$(PY) fea/run_fea.py
# внешние нагрузки (берут массы из модели и частоты из МКЭ) → фланцевые соединения по ГОСТ 34233.4
loads: cad
$(PY) calc/seismic_calc.py
$(PY) calc/flange_calc.py
drawings: cad
$(PY) drawings/make_drawings.py
report:
$(PY) report/build_report.py
test:
$(PY) calc/tests/test_gost34233_shells.py
$(PY) calc/tests/test_gost34233_4.py
gui: cad
bash tools/start_freecad_gui.sh
$(VPY) tools/fcmcp.py execfile cad/mcp_show.py cut
$(VPY) tools/fcmcp.py execfile cad/mcp_renders.py
clean:
rm -rf out/calc out/cad out/fea out/drawings out/report

Powered by TurnKey Linux.