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.

61 lines
2.4 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 check — аудит репозитория: ссылки, обращения к файлам, дубли, обозначения стандартов (check-ext — и внешние URL)
# make gui — FreeCAD с MCP-сервером + загрузка модели и снимки через MCP
# Порядок важен: модель читает подобранную пружину из out/calc/valve_calc.json; МКЭ читает внешние нагрузки
# (out/calc/loads.json) и допускаемые моменты (out/calc/flanges.json), поэтому loads выполняется до fea.
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 check check-ext gui clean
all: calc cad loads fea 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
# внешние нагрузки (массы и центры масс из модели) → фланцевые соединения по ГОСТ 34233.4
loads: cad
$(PY) calc/seismic_calc.py
$(PY) calc/flange_calc.py
# МКЭ; затем сейсмический расчёт повторяется с первой собственной частотой из МКЭ (проверка f1 > 30 Гц)
fea: loads
$(PY) fea/run_fea.py
$(PY) calc/seismic_calc.py
drawings: cad
$(PY) drawings/make_drawings.py
report:
$(PY) report/build_report.py
check:
python3 -I tools/check_repo.py
check-ext:
python3 -I tools/check_repo.py --external
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.