Files
filam3d/backend/app/seed/materials.py
2026-03-22 14:26:45 +03:00

150 lines
5.7 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
MATERIALS = [
{
"name": "PLA",
"category": "basic",
"density_g_cm3": 1.24,
"price_per_gram": 15.0,
"flow_rate_mm3_s": 15.0,
"max_temp_c": 60,
"min_temp_c": -20,
"strength": "medium",
"flexibility": "low",
"chemical_resistance": "low",
"uv_resistance": "low",
"food_safe": True,
"description": "Базовый пластик. Лёгкий в печати, хорошая детализация. Для прототипов и декора.",
"color_options": [
{"name": "Белый", "hex": "#FFFFFF"},
{"name": "Чёрный", "hex": "#222222"},
{"name": "Серый", "hex": "#888888"},
{"name": "Красный", "hex": "#E53E3E"},
{"name": "Синий", "hex": "#3182CE"},
{"name": "Зелёный", "hex": "#38A169"},
{"name": "Натуральный", "hex": "#F5E6D3"},
{"name": "Жёлтый", "hex": "#ECC94B"},
{"name": "Оранжевый", "hex": "#ED8936"},
],
},
{
"name": "PETG",
"category": "basic",
"density_g_cm3": 1.27,
"price_per_gram": 17.0,
"flow_rate_mm3_s": 12.0,
"max_temp_c": 80,
"min_temp_c": -40,
"strength": "high",
"flexibility": "medium",
"chemical_resistance": "medium",
"uv_resistance": "medium",
"food_safe": True,
"description": "Универсальный инженерный пластик. Прочный, химстойкий, подходит для улицы.",
"color_options": [
{"name": "Белый", "hex": "#FFFFFF"},
{"name": "Чёрный", "hex": "#222222"},
{"name": "Серый", "hex": "#888888"},
{"name": "Натуральный", "hex": "#F5E6D3"},
{"name": "Синий", "hex": "#3182CE"},
{"name": "Оранжевый", "hex": "#ED8936"},
],
},
{
"name": "ABS",
"category": "basic",
"density_g_cm3": 1.04,
"price_per_gram": 16.0,
"flow_rate_mm3_s": 12.0,
"max_temp_c": 100,
"min_temp_c": -30,
"strength": "high",
"flexibility": "low",
"chemical_resistance": "medium",
"uv_resistance": "low",
"food_safe": False,
"description": "Термостойкий, ударопрочный. Требует закрытой камеры. Обрабатывается ацетоном.",
"color_options": [
{"name": "Белый", "hex": "#FFFFFF"},
{"name": "Чёрный", "hex": "#222222"},
{"name": "Серый", "hex": "#888888"},
{"name": "Красный", "hex": "#E53E3E"},
{"name": "Синий", "hex": "#3182CE"},
],
},
{
"name": "PA (Nylon)",
"category": "engineering",
"density_g_cm3": 1.14,
"price_per_gram": 50.0,
"flow_rate_mm3_s": 10.0,
"max_temp_c": 120,
"min_temp_c": -40,
"strength": "very_high",
"flexibility": "medium",
"chemical_resistance": "high",
"uv_resistance": "medium",
"food_safe": False,
"description": "Инженерный пластик. Высокая прочность, износостойкость. Для шестерён, креплений.",
"color_options": [
{"name": "Натуральный", "hex": "#F5E6D3"},
{"name": "Чёрный", "hex": "#222222"},
],
},
{
"name": "PC (Поликарбонат)",
"category": "engineering",
"density_g_cm3": 1.20,
"price_per_gram": 60.0,
"flow_rate_mm3_s": 8.0,
"max_temp_c": 140,
"min_temp_c": -40,
"strength": "very_high",
"flexibility": "low",
"chemical_resistance": "high",
"uv_resistance": "high",
"food_safe": False,
"description": "Максимальная термостойкость и прочность. Для корпусов, работающих при высоких температурах.",
"color_options": [
{"name": "Натуральный", "hex": "#F5E6D3"},
{"name": "Чёрный", "hex": "#222222"},
],
},
{
"name": "TPU",
"category": "engineering",
"density_g_cm3": 1.21,
"price_per_gram": 40.0,
"flow_rate_mm3_s": 6.0,
"max_temp_c": 80,
"min_temp_c": -30,
"strength": "medium",
"flexibility": "very_high",
"chemical_resistance": "high",
"uv_resistance": "medium",
"food_safe": False,
"description": "Эластичный пластик, аналог резины. Для прокладок, амортизаторов, гибких деталей.",
"color_options": [
{"name": "Белый", "hex": "#FFFFFF"},
{"name": "Чёрный", "hex": "#222222"},
{"name": "Натуральный", "hex": "#F5E6D3"},
],
},
{
"name": "PA-CF (Нейлон + углеволокно)",
"category": "composite",
"density_g_cm3": 1.18,
"price_per_gram": 75.0,
"flow_rate_mm3_s": 8.0,
"max_temp_c": 150,
"min_temp_c": -40,
"strength": "extreme",
"flexibility": "low",
"chemical_resistance": "very_high",
"uv_resistance": "high",
"food_safe": False,
"description": "Композит с углеволокном. Максимальная жёсткость и прочность. Замена алюминия.",
"color_options": [
{"name": "Чёрный", "hex": "#222222"},
],
},
]