@jjlmoya/utils-diy 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +60 -0
- package/src/category/i18n/en.ts +110 -0
- package/src/category/i18n/es.ts +110 -0
- package/src/category/i18n/fr.ts +101 -0
- package/src/category/index.ts +25 -0
- package/src/category/seo.astro +15 -0
- package/src/components/PreviewNavSidebar.astro +116 -0
- package/src/components/PreviewToolbar.astro +143 -0
- package/src/data.ts +11 -0
- package/src/env.d.ts +5 -0
- package/src/index.ts +57 -0
- package/src/layouts/PreviewLayout.astro +117 -0
- package/src/pages/[locale]/[slug].astro +146 -0
- package/src/pages/[locale].astro +251 -0
- package/src/pages/index.astro +4 -0
- package/src/tests/faq_count.test.ts +19 -0
- package/src/tests/locale_completeness.test.ts +42 -0
- package/src/tests/mocks/astro_mock.js +2 -0
- package/src/tests/no_h1_in_components.test.ts +48 -0
- package/src/tests/schemas_fulfillment.test.ts +23 -0
- package/src/tests/seo_length.test.ts +22 -0
- package/src/tests/title_quality.test.ts +55 -0
- package/src/tests/tool_validation.test.ts +17 -0
- package/src/tool/balusterCalculator/bibliography.astro +14 -0
- package/src/tool/balusterCalculator/component.astro +605 -0
- package/src/tool/balusterCalculator/i18n/en.ts +264 -0
- package/src/tool/balusterCalculator/i18n/es.ts +264 -0
- package/src/tool/balusterCalculator/i18n/fr.ts +264 -0
- package/src/tool/balusterCalculator/index.ts +33 -0
- package/src/tool/balusterCalculator/seo.astro +15 -0
- package/src/tool/balusterCalculator/ui.ts +15 -0
- package/src/tool/clayCalculator/bibliography.astro +14 -0
- package/src/tool/clayCalculator/component.astro +731 -0
- package/src/tool/clayCalculator/i18n/en.ts +183 -0
- package/src/tool/clayCalculator/i18n/es.ts +183 -0
- package/src/tool/clayCalculator/i18n/fr.ts +183 -0
- package/src/tool/clayCalculator/index.ts +33 -0
- package/src/tool/clayCalculator/seo.astro +15 -0
- package/src/tool/clayCalculator/ui.ts +19 -0
- package/src/tool/concreteCalculator/bibliography.astro +13 -0
- package/src/tool/concreteCalculator/component.astro +1089 -0
- package/src/tool/concreteCalculator/i18n/en.ts +201 -0
- package/src/tool/concreteCalculator/i18n/es.ts +201 -0
- package/src/tool/concreteCalculator/i18n/fr.ts +201 -0
- package/src/tool/concreteCalculator/index.ts +28 -0
- package/src/tool/concreteCalculator/seo.astro +14 -0
- package/src/tool/concreteCalculator/ui.ts +35 -0
- package/src/tool/cutOptimizer/bibliography.astro +13 -0
- package/src/tool/cutOptimizer/component.astro +825 -0
- package/src/tool/cutOptimizer/i18n/en.ts +178 -0
- package/src/tool/cutOptimizer/i18n/es.ts +178 -0
- package/src/tool/cutOptimizer/i18n/fr.ts +178 -0
- package/src/tool/cutOptimizer/index.ts +28 -0
- package/src/tool/cutOptimizer/optimizer.ts +199 -0
- package/src/tool/cutOptimizer/seo.astro +14 -0
- package/src/tool/cutOptimizer/ui.ts +25 -0
- package/src/tool/drillCalculator/bibliography.astro +13 -0
- package/src/tool/drillCalculator/component.astro +1210 -0
- package/src/tool/drillCalculator/engine.ts +63 -0
- package/src/tool/drillCalculator/i18n/en.ts +137 -0
- package/src/tool/drillCalculator/i18n/es.ts +137 -0
- package/src/tool/drillCalculator/i18n/fr.ts +137 -0
- package/src/tool/drillCalculator/index.ts +28 -0
- package/src/tool/drillCalculator/seo.astro +14 -0
- package/src/tool/drillCalculator/ui.ts +41 -0
- package/src/tool/drillSharpener/bibliography.astro +13 -0
- package/src/tool/drillSharpener/component.astro +712 -0
- package/src/tool/drillSharpener/engine.ts +42 -0
- package/src/tool/drillSharpener/i18n/en.ts +121 -0
- package/src/tool/drillSharpener/i18n/es.ts +121 -0
- package/src/tool/drillSharpener/i18n/fr.ts +121 -0
- package/src/tool/drillSharpener/index.ts +31 -0
- package/src/tool/drillSharpener/seo.astro +14 -0
- package/src/tool/drillSharpener/ui.ts +53 -0
- package/src/tool/epoxyCalculator/bibliography.astro +14 -0
- package/src/tool/epoxyCalculator/component.astro +888 -0
- package/src/tool/epoxyCalculator/i18n/en.ts +195 -0
- package/src/tool/epoxyCalculator/i18n/es.ts +195 -0
- package/src/tool/epoxyCalculator/i18n/fr.ts +195 -0
- package/src/tool/epoxyCalculator/index.ts +33 -0
- package/src/tool/epoxyCalculator/seo.astro +15 -0
- package/src/tool/epoxyCalculator/ui.ts +22 -0
- package/src/tool/furnitureFit/bibliography.astro +13 -0
- package/src/tool/furnitureFit/component.astro +552 -0
- package/src/tool/furnitureFit/engine.ts +51 -0
- package/src/tool/furnitureFit/i18n/en.ts +152 -0
- package/src/tool/furnitureFit/i18n/es.ts +152 -0
- package/src/tool/furnitureFit/i18n/fr.ts +152 -0
- package/src/tool/furnitureFit/index.ts +28 -0
- package/src/tool/furnitureFit/seo.astro +14 -0
- package/src/tool/furnitureFit/ui.ts +21 -0
- package/src/tool/mortarCalculator/bibliography.astro +13 -0
- package/src/tool/mortarCalculator/component.astro +1139 -0
- package/src/tool/mortarCalculator/i18n/en.ts +219 -0
- package/src/tool/mortarCalculator/i18n/es.ts +205 -0
- package/src/tool/mortarCalculator/i18n/fr.ts +220 -0
- package/src/tool/mortarCalculator/index.ts +24 -0
- package/src/tool/mortarCalculator/seo.astro +14 -0
- package/src/tool/mortarCalculator/ui.ts +37 -0
- package/src/tool/passepartoutCalculator/bibliography.astro +13 -0
- package/src/tool/passepartoutCalculator/component.astro +741 -0
- package/src/tool/passepartoutCalculator/i18n/en.ts +178 -0
- package/src/tool/passepartoutCalculator/i18n/es.ts +178 -0
- package/src/tool/passepartoutCalculator/i18n/fr.ts +178 -0
- package/src/tool/passepartoutCalculator/index.ts +28 -0
- package/src/tool/passepartoutCalculator/seo.astro +14 -0
- package/src/tool/passepartoutCalculator/ui.ts +17 -0
- package/src/tool/stairCalculator/bibliography.astro +52 -0
- package/src/tool/stairCalculator/component.astro +766 -0
- package/src/tool/stairCalculator/engine.ts +128 -0
- package/src/tool/stairCalculator/i18n/en.ts +149 -0
- package/src/tool/stairCalculator/i18n/es.ts +149 -0
- package/src/tool/stairCalculator/i18n/fr.ts +149 -0
- package/src/tool/stairCalculator/index.ts +31 -0
- package/src/tool/stairCalculator/seo.astro +211 -0
- package/src/tool/stairCalculator/ui.ts +109 -0
- package/src/tool/thermalExpansionCalculator/bibliography.astro +13 -0
- package/src/tool/thermalExpansionCalculator/component.astro +771 -0
- package/src/tool/thermalExpansionCalculator/engine.ts +23 -0
- package/src/tool/thermalExpansionCalculator/i18n/en.ts +174 -0
- package/src/tool/thermalExpansionCalculator/i18n/es.ts +174 -0
- package/src/tool/thermalExpansionCalculator/i18n/fr.ts +174 -0
- package/src/tool/thermalExpansionCalculator/index.ts +28 -0
- package/src/tool/thermalExpansionCalculator/seo.astro +14 -0
- package/src/tool/thermalExpansionCalculator/ui.ts +41 -0
- package/src/tool/voltageDropCalculator/bibliography.astro +13 -0
- package/src/tool/voltageDropCalculator/component.astro +1022 -0
- package/src/tool/voltageDropCalculator/i18n/en.ts +155 -0
- package/src/tool/voltageDropCalculator/i18n/es.ts +155 -0
- package/src/tool/voltageDropCalculator/i18n/fr.ts +148 -0
- package/src/tool/voltageDropCalculator/index.ts +28 -0
- package/src/tool/voltageDropCalculator/seo.astro +14 -0
- package/src/tool/voltageDropCalculator/ui.ts +22 -0
- package/src/tools.ts +16 -0
- package/src/types.ts +72 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type RiskType = 'low' | 'moderate' | 'critical';
|
|
2
|
+
|
|
3
|
+
export interface TeResult {
|
|
4
|
+
deltaT: number;
|
|
5
|
+
deltaLmm: number;
|
|
6
|
+
finalLength: number;
|
|
7
|
+
riskType: RiskType;
|
|
8
|
+
minJoint: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function teRisk(deltaLmm: number): RiskType {
|
|
12
|
+
if (deltaLmm > 10) return 'critical';
|
|
13
|
+
if (deltaLmm > 5) return 'moderate';
|
|
14
|
+
return 'low';
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function calculateExpansion(L0: number, alpha: number, T1: number, T2: number): TeResult {
|
|
18
|
+
const deltaT = T2 - T1;
|
|
19
|
+
const deltaL = L0 * alpha * deltaT;
|
|
20
|
+
const deltaLmm = deltaL * 1000;
|
|
21
|
+
const finalLength = L0 + deltaL;
|
|
22
|
+
return { deltaT, deltaLmm, finalLength, riskType: teRisk(deltaLmm), minJoint: Math.ceil(Math.abs(deltaLmm) * 1.5) };
|
|
23
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
|
|
2
|
+
import type { ToolLocaleContent } from '../../../types';
|
|
3
|
+
import type { ThermalExpansionCalculatorUI } from '../ui';
|
|
4
|
+
|
|
5
|
+
const slug = 'thermal-expansion-calculator';
|
|
6
|
+
const title = 'Thermal Expansion Calculator for Beams and Structural Materials';
|
|
7
|
+
const description =
|
|
8
|
+
'Calculate how much a beam or structure expands with temperature changes. Technical tool for engineers and DIY. Includes expansion coefficients by material.';
|
|
9
|
+
|
|
10
|
+
const faqData = [
|
|
11
|
+
{
|
|
12
|
+
question: 'What is the linear thermal expansion coefficient?',
|
|
13
|
+
answer:
|
|
14
|
+
'It is a physical property of materials indicating how much they expand per degree Celsius of temperature increase. It is measured in 1/°C or °C⁻¹.',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
question: 'Why is it important to calculate expansion in beams?',
|
|
18
|
+
answer:
|
|
19
|
+
'If a beam has no room to expand (no expansion joints), it will generate massive internal stresses that can deform the structure, crack the concrete or even cause collapse.',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
question: 'Does wood expand equally in all directions?',
|
|
23
|
+
answer:
|
|
24
|
+
'No. Wood is an anisotropic material. It expands very little along the grain but significantly in the transverse direction (width and thickness).',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
question: 'What temperature should I use as the Initial value?',
|
|
28
|
+
answer:
|
|
29
|
+
'Use the temperature at the time of installation or construction. The Final value should be the maximum temperature expected during its service life.',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
const howToData = [
|
|
34
|
+
{
|
|
35
|
+
name: 'Measure the original length',
|
|
36
|
+
text: 'Enter the length of the beam or material in metres.',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'Select the material',
|
|
40
|
+
text: 'Choose from metals, construction materials or wood to apply its specific coefficient.',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Set the thermal range',
|
|
44
|
+
text: 'Specify the initial temperature and the maximum expected temperature to calculate the thermal differential.',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Analyse the growth',
|
|
48
|
+
text: 'Observe the total elongation in millimetres and the resulting final length to plan adequate expansion joints.',
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
const faqSchema: WithContext<FAQPage> = {
|
|
53
|
+
'@context': 'https://schema.org',
|
|
54
|
+
'@type': 'FAQPage',
|
|
55
|
+
mainEntity: faqData.map((item) => ({
|
|
56
|
+
'@type': 'Question',
|
|
57
|
+
name: item.question,
|
|
58
|
+
acceptedAnswer: { '@type': 'Answer', text: item.answer },
|
|
59
|
+
})),
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const howToSchema: WithContext<HowToThing> = {
|
|
63
|
+
'@context': 'https://schema.org',
|
|
64
|
+
'@type': 'HowTo',
|
|
65
|
+
name: title,
|
|
66
|
+
description,
|
|
67
|
+
step: howToData.map((step, i) => ({
|
|
68
|
+
'@type': 'HowToStep',
|
|
69
|
+
position: i + 1,
|
|
70
|
+
name: step.name,
|
|
71
|
+
text: step.text,
|
|
72
|
+
})),
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const appSchema: WithContext<SoftwareApplication> = {
|
|
76
|
+
'@context': 'https://schema.org',
|
|
77
|
+
'@type': 'SoftwareApplication',
|
|
78
|
+
name: title,
|
|
79
|
+
description,
|
|
80
|
+
applicationCategory: 'UtilityApplication',
|
|
81
|
+
operatingSystem: 'All',
|
|
82
|
+
offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
|
|
83
|
+
inLanguage: 'en',
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const content: ToolLocaleContent<ThermalExpansionCalculatorUI> = {
|
|
87
|
+
slug,
|
|
88
|
+
title,
|
|
89
|
+
description,
|
|
90
|
+
faqTitle: 'Frequently Asked Questions',
|
|
91
|
+
faq: faqData,
|
|
92
|
+
bibliographyTitle: 'Technical References',
|
|
93
|
+
bibliography: [
|
|
94
|
+
{ name: 'Coefficient of Thermal Expansion — Engineering Toolbox', url: 'https://www.engineeringtoolbox.com/linear-expansion-coefficients-d_95.html' },
|
|
95
|
+
{ name: 'Thermal expansion and temperature — Britannica', url: 'https://www.britannica.com/science/thermal-expansion' },
|
|
96
|
+
{ name: 'Linear Thermal Expansion — Physics Hypertextbook', url: 'https://physics.info/expansion/' },
|
|
97
|
+
],
|
|
98
|
+
howTo: howToData,
|
|
99
|
+
schemas: [faqSchema, howToSchema, appSchema],
|
|
100
|
+
seo: [
|
|
101
|
+
{ type: 'title', text: 'What is Thermal Expansion and How Does It Affect Structures', level: 2 },
|
|
102
|
+
{
|
|
103
|
+
type: 'paragraph',
|
|
104
|
+
html: '<strong>Thermal expansion</strong> is the physical process by which a material increases its length in response to a rise in temperature. At the microscopic level, particles vibrate with more energy and require a greater average spacing between them. In construction, this phenomenon is not a curiosity — it is a force that can crack concrete, deform steel beams and buckle railway tracks.',
|
|
105
|
+
},
|
|
106
|
+
{ type: 'title', text: 'The Linear Expansion Formula', level: 3 },
|
|
107
|
+
{
|
|
108
|
+
type: 'card',
|
|
109
|
+
icon: 'mdi:math-log',
|
|
110
|
+
title: 'Linear Expansion Formula',
|
|
111
|
+
html: '<p>The expansion of a structural element is calculated with: <code>ΔL = L₀ · α · ΔT</code>. Where <strong>ΔL</strong> is the total growth, <strong>L₀</strong> is the original length, <strong>α</strong> is the material expansion coefficient (in °C⁻¹) and <strong>ΔT</strong> is the temperature difference. This formula underpins the design of expansion joints in bridges, roofs and facades.</p>',
|
|
112
|
+
},
|
|
113
|
+
{ type: 'title', text: 'Expansion Coefficients by Material', level: 3 },
|
|
114
|
+
{
|
|
115
|
+
type: 'card',
|
|
116
|
+
icon: 'mdi:table',
|
|
117
|
+
title: 'Common Expansion Coefficients',
|
|
118
|
+
html: '<p>Not all materials expand equally. <strong>Aluminium</strong> (23 ppm/°C) expands almost twice as fast as <strong>steel</strong> (12 ppm/°C). <strong>Concrete</strong> has a coefficient nearly identical to steel (12 ppm/°C), which is why reinforced concrete is structurally stable. <strong>PVC</strong> (30 ppm/°C) and <strong>transverse wood</strong> (40 ppm/°C) show the highest expansion rates and require special jointing solutions.</p>',
|
|
119
|
+
},
|
|
120
|
+
{ type: 'title', text: 'The Importance of Expansion Joints', level: 3 },
|
|
121
|
+
{
|
|
122
|
+
type: 'card',
|
|
123
|
+
icon: 'mdi:bridge',
|
|
124
|
+
title: 'Expansion Joint Sizing',
|
|
125
|
+
html: '<p>If you have walked across a bridge and noticed a rubber-filled slot in the deck, you have seen an <strong>expansion joint</strong>. Without that gap, the steel beam would press against the next element when heated in summer, generating pressures capable of causing column <strong>buckling</strong> or cracks in load-bearing walls. The calculator suggests a minimum joint of 150% of the calculated ΔL to absorb extreme temperature swings.</p>',
|
|
126
|
+
},
|
|
127
|
+
{ type: 'title', text: 'Real World Examples: Train Rails to the Eiffel Tower', level: 3 },
|
|
128
|
+
{
|
|
129
|
+
type: 'paragraph',
|
|
130
|
+
html: 'Railway engineers leave gaps between rails to prevent them from buckling in summer. The iron structure of the <strong>Eiffel Tower</strong> grows approximately 15 cm on the hottest July days in Paris. In domestic settings, polycarbonate roofing and aluminium cladding are the most common cases where thermal calculation is decisive in preventing leaks and stress noises.',
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
ui: {
|
|
134
|
+
configTitle: 'Configuration',
|
|
135
|
+
labelMaterial: 'Material',
|
|
136
|
+
groupMetals: 'Metals',
|
|
137
|
+
groupConstruction: 'Construction',
|
|
138
|
+
groupWood: 'Wood and Polymers',
|
|
139
|
+
matSteel: 'Steel (12 ppm/°C)',
|
|
140
|
+
matAluminum: 'Aluminium (23 ppm/°C)',
|
|
141
|
+
matCopper: 'Copper (17 ppm/°C)',
|
|
142
|
+
matIron: 'Cast Iron (11 ppm/°C)',
|
|
143
|
+
matConcrete: 'Concrete (12 ppm/°C)',
|
|
144
|
+
matBrick: 'Brick (9 ppm/°C)',
|
|
145
|
+
matGlass: 'Glass (9 ppm/°C)',
|
|
146
|
+
matWoodFiber: 'Wood Grain (5 ppm/°C)',
|
|
147
|
+
matWoodTransversal: 'Wood Transverse (40 ppm/°C)',
|
|
148
|
+
matPvc: 'PVC (30 ppm/°C)',
|
|
149
|
+
catMetals: 'Metallurgy',
|
|
150
|
+
catConstruction: 'Construction',
|
|
151
|
+
catWood: 'Wood and Polymers',
|
|
152
|
+
labelLength: 'Initial Length (m)',
|
|
153
|
+
labelTempStart: 'Initial Temp (°C)',
|
|
154
|
+
labelTempEnd: 'Max Temp (°C)',
|
|
155
|
+
deltaLabel: 'Thermal Differential (ΔT)',
|
|
156
|
+
vizTitle: 'Expansion Simulation',
|
|
157
|
+
resultGrowthLabel: 'Total Growth (ΔL)',
|
|
158
|
+
resultFinalLabel: 'Final Length',
|
|
159
|
+
unitMm: 'MM',
|
|
160
|
+
unitM: 'M',
|
|
161
|
+
riskTitle: 'Buckling Risk',
|
|
162
|
+
jointTitle: 'Minimum Joint',
|
|
163
|
+
riskLow: 'Low',
|
|
164
|
+
riskModerate: 'Moderate',
|
|
165
|
+
riskCritical: 'Critical',
|
|
166
|
+
tipDefault: 'Consult the manufacturer data sheet for exact coefficients of special alloys.',
|
|
167
|
+
tipSteel: 'Steel and concrete have nearly identical coefficients, which is why reinforced concrete works without internal cracking.',
|
|
168
|
+
tipAluminum: 'Aluminium expands almost twice as fast as steel. In metal cladding, this requires elastic sealants at all joints.',
|
|
169
|
+
tipGlass: 'Glass and steel expand at nearly the same rate, which is key to the design of large glazed facades.',
|
|
170
|
+
tipConcrete: 'The coefficient of concrete is very similar to that of steel, which is why composite structures are so stable.',
|
|
171
|
+
tipWood: 'Wood expands little from heat, but a great deal from moisture. Along the grain, thermal movement is very small.',
|
|
172
|
+
tipPvc: 'PVC has very high expansion. It requires O-ring joints or lyre-shaped curves to absorb movement without cracking.',
|
|
173
|
+
},
|
|
174
|
+
};
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
|
|
2
|
+
import type { ToolLocaleContent } from '../../../types';
|
|
3
|
+
import type { ThermalExpansionCalculatorUI } from '../ui';
|
|
4
|
+
|
|
5
|
+
const slug = 'calculadora-dilatacion-termica';
|
|
6
|
+
const title = 'Calculadora de Dilatación Térmica de Vigas y Estructuras';
|
|
7
|
+
const description =
|
|
8
|
+
'Calcula cuánto crece una viga o estructura por cambios de temperatura. Herramienta técnica para ingenieros y DIY. Incluye coeficientes de expansión por material.';
|
|
9
|
+
|
|
10
|
+
const faqData = [
|
|
11
|
+
{
|
|
12
|
+
question: '¿Qué es el coeficiente de dilatación lineal?',
|
|
13
|
+
answer:
|
|
14
|
+
'Es una propiedad física de los materiales que indica cuánto se expande por cada grado Celsius que aumenta su temperatura. Se mide en 1/°C o °C⁻¹.',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
question: '¿Por qué es importante calcular la dilatación en vigas?',
|
|
18
|
+
answer:
|
|
19
|
+
'Si una viga no tiene espacio para expandirse (juntas de dilatación), generará tensiones internas masivas que pueden deformar la estructura, agrietar el hormigón o incluso causar un colapso.',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
question: '¿La madera dilata igual en todas direcciones?',
|
|
23
|
+
answer:
|
|
24
|
+
'No. La madera es un material anisotrópico. Dilata muy poco a lo largo de la fibra pero significativamente en sentido transversal (ancho y espesor).',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
question: '¿Qué temperatura debo usar como Inicial?',
|
|
28
|
+
answer:
|
|
29
|
+
'Debes usar la temperatura en el momento de la instalación o construcción. La Final debe ser la temperatura máxima esperada durante su vida útil.',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
const howToData = [
|
|
34
|
+
{
|
|
35
|
+
name: 'Mide la longitud original',
|
|
36
|
+
text: 'Introduce la longitud de la viga o material en metros.',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'Selecciona el material',
|
|
40
|
+
text: 'Elige entre metales, materiales de construcción o maderas para aplicar su coeficiente específico.',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Define el rango térmico',
|
|
44
|
+
text: 'Especifica la temperatura inicial y la máxima esperada para calcular el diferencial térmico.',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Analiza el crecimiento',
|
|
48
|
+
text: 'Observa el estiramiento total en milímetros y la longitud final resultante para prever juntas adecuadas.',
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
const faqSchema: WithContext<FAQPage> = {
|
|
53
|
+
'@context': 'https://schema.org',
|
|
54
|
+
'@type': 'FAQPage',
|
|
55
|
+
mainEntity: faqData.map((item) => ({
|
|
56
|
+
'@type': 'Question',
|
|
57
|
+
name: item.question,
|
|
58
|
+
acceptedAnswer: { '@type': 'Answer', text: item.answer },
|
|
59
|
+
})),
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const howToSchema: WithContext<HowToThing> = {
|
|
63
|
+
'@context': 'https://schema.org',
|
|
64
|
+
'@type': 'HowTo',
|
|
65
|
+
name: title,
|
|
66
|
+
description,
|
|
67
|
+
step: howToData.map((step, i) => ({
|
|
68
|
+
'@type': 'HowToStep',
|
|
69
|
+
position: i + 1,
|
|
70
|
+
name: step.name,
|
|
71
|
+
text: step.text,
|
|
72
|
+
})),
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const appSchema: WithContext<SoftwareApplication> = {
|
|
76
|
+
'@context': 'https://schema.org',
|
|
77
|
+
'@type': 'SoftwareApplication',
|
|
78
|
+
name: title,
|
|
79
|
+
description,
|
|
80
|
+
applicationCategory: 'UtilityApplication',
|
|
81
|
+
operatingSystem: 'All',
|
|
82
|
+
offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
|
|
83
|
+
inLanguage: 'es',
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const content: ToolLocaleContent<ThermalExpansionCalculatorUI> = {
|
|
87
|
+
slug,
|
|
88
|
+
title,
|
|
89
|
+
description,
|
|
90
|
+
faqTitle: 'Preguntas Frecuentes',
|
|
91
|
+
faq: faqData,
|
|
92
|
+
bibliographyTitle: 'Referencias Técnicas',
|
|
93
|
+
bibliography: [
|
|
94
|
+
{ name: 'Coefficient of Thermal Expansion — Engineering Toolbox', url: 'https://www.engineeringtoolbox.com/linear-expansion-coefficients-d_95.html' },
|
|
95
|
+
{ name: 'Thermal expansion and temperature — Britannica', url: 'https://www.britannica.com/science/thermal-expansion' },
|
|
96
|
+
{ name: 'Linear Thermal Expansion — Physics Hypertextbook', url: 'https://physics.info/expansion/' },
|
|
97
|
+
],
|
|
98
|
+
howTo: howToData,
|
|
99
|
+
schemas: [faqSchema, howToSchema, appSchema],
|
|
100
|
+
seo: [
|
|
101
|
+
{ type: 'title', text: 'Qué es la Dilatación Térmica y por qué afecta a las Estructuras', level: 2 },
|
|
102
|
+
{
|
|
103
|
+
type: 'paragraph',
|
|
104
|
+
html: 'La <strong>dilatación térmica</strong> es el proceso físico por el cual un material aumenta su longitud como respuesta a un incremento en su temperatura. A nivel microscópico, las partículas vibran con más energía y necesitan mayor espacio promedio entre ellas. En construcción, este fenómeno no es una curiosidad: es una fuerza que puede romper el hormigón, deformar vigas de acero y retorcer las vías de un tren.',
|
|
105
|
+
},
|
|
106
|
+
{ type: 'title', text: 'La Fórmula de la Dilatación Lineal', level: 3 },
|
|
107
|
+
{
|
|
108
|
+
type: 'card',
|
|
109
|
+
icon: 'mdi:math-log',
|
|
110
|
+
title: 'Fórmula de la Dilatación Lineal',
|
|
111
|
+
html: '<p>La expansión de un elemento estructural se calcula con: <code>ΔL = L₀ · α · ΔT</code>. Donde <strong>ΔL</strong> es el crecimiento total, <strong>L₀</strong> es la longitud original, <strong>α</strong> es el coeficiente de expansión del material (en °C⁻¹) y <strong>ΔT</strong> es la diferencia de temperatura. Esta fórmula es la base del diseño de juntas de dilatación en puentes, techos y fachadas.</p>',
|
|
112
|
+
},
|
|
113
|
+
{ type: 'title', text: 'Coeficientes de Dilatación por Material', level: 3 },
|
|
114
|
+
{
|
|
115
|
+
type: 'card',
|
|
116
|
+
icon: 'mdi:table',
|
|
117
|
+
title: 'Tabla de Coeficientes Comunes',
|
|
118
|
+
html: '<p>No todos los materiales crecen igual. El <strong>aluminio</strong> (23 ppm/°C) se expande casi el doble que el <strong>acero</strong> (12 ppm/°C). El <strong>hormigón</strong> tiene un coeficiente casi idéntico al acero (12 ppm/°C), por eso el hormigón armado es estable. El <strong>PVC</strong> (30 ppm/°C) y la <strong>madera transversal</strong> (40 ppm/°C) presentan las expansiones más altas y requieren juntas especiales.</p>',
|
|
119
|
+
},
|
|
120
|
+
{ type: 'title', text: 'La importancia de las Juntas de Dilatación', level: 3 },
|
|
121
|
+
{
|
|
122
|
+
type: 'card',
|
|
123
|
+
icon: 'mdi:bridge',
|
|
124
|
+
title: 'Juntas de Dilatación y Margen de Seguridad',
|
|
125
|
+
html: '<p>Si has visto una ranura rellena de goma en el suelo de un puente, has visto una <strong>junta de dilatación</strong>. Sin ese espacio, la viga chocaría contra el siguiente elemento al calentarse en verano, generando presiones que pueden provocar el <strong>pandeo</strong> de columnas o grietas en muros de carga. La calculadora propone una junta mínima del 150% sobre el ΔL calculado para absorber variaciones extremas.</p>',
|
|
126
|
+
},
|
|
127
|
+
{ type: 'title', text: 'Casos Reales: de los Raíles del Tren a la Torre Eiffel', level: 3 },
|
|
128
|
+
{
|
|
129
|
+
type: 'paragraph',
|
|
130
|
+
html: 'Los ingenieros ferroviarios dejan huecos entre raíles para que no se doblen en verano. La estructura de hierro de la <strong>Torre Eiffel</strong> crece aproximadamente 15 cm en los días más calurosos de julio en París. En el entorno doméstico, los techos de policarbonato y los cerramientos de aluminio son los casos más habituales donde el cálculo térmico es determinante para evitar filtraciones y crujidos.',
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
ui: {
|
|
134
|
+
configTitle: 'Configuración',
|
|
135
|
+
labelMaterial: 'Material',
|
|
136
|
+
groupMetals: 'Metales',
|
|
137
|
+
groupConstruction: 'Construcción',
|
|
138
|
+
groupWood: 'Maderas y Polímeros',
|
|
139
|
+
matSteel: 'Acero (12 ppm/°C)',
|
|
140
|
+
matAluminum: 'Aluminio (23 ppm/°C)',
|
|
141
|
+
matCopper: 'Cobre (17 ppm/°C)',
|
|
142
|
+
matIron: 'Hierro (11 ppm/°C)',
|
|
143
|
+
matConcrete: 'Hormigón (12 ppm/°C)',
|
|
144
|
+
matBrick: 'Ladrillo (9 ppm/°C)',
|
|
145
|
+
matGlass: 'Vidrio (9 ppm/°C)',
|
|
146
|
+
matWoodFiber: 'Madera Fibra (5 ppm/°C)',
|
|
147
|
+
matWoodTransversal: 'Madera Transversal (40 ppm/°C)',
|
|
148
|
+
matPvc: 'PVC (30 ppm/°C)',
|
|
149
|
+
catMetals: 'Metalurgia',
|
|
150
|
+
catConstruction: 'Construcción',
|
|
151
|
+
catWood: 'Maderas y Polímeros',
|
|
152
|
+
labelLength: 'Longitud Inicial (m)',
|
|
153
|
+
labelTempStart: 'T. Inicial (°C)',
|
|
154
|
+
labelTempEnd: 'T. Máxima (°C)',
|
|
155
|
+
deltaLabel: 'Diferencial Térmico (ΔT)',
|
|
156
|
+
vizTitle: 'Simulación de Expansión',
|
|
157
|
+
resultGrowthLabel: 'Crecimiento Total (ΔL)',
|
|
158
|
+
resultFinalLabel: 'Longitud Final',
|
|
159
|
+
unitMm: 'MM',
|
|
160
|
+
unitM: 'M',
|
|
161
|
+
riskTitle: 'Riesgo Pandeo',
|
|
162
|
+
jointTitle: 'Junta Mínima',
|
|
163
|
+
riskLow: 'Bajo',
|
|
164
|
+
riskModerate: 'Moderado',
|
|
165
|
+
riskCritical: 'Crítico',
|
|
166
|
+
tipDefault: 'Consulta el manual del fabricante para coeficientes exactos de aleaciones especiales.',
|
|
167
|
+
tipSteel: 'El acero y el hormigón tienen coeficientes casi idénticos, permitiendo que el hormigón armado funcione sin agrietarse internamente.',
|
|
168
|
+
tipAluminum: 'El aluminio dilata casi el doble que el acero. En cerramientos metálicos, esto obliga a usar sellantes elásticos.',
|
|
169
|
+
tipGlass: 'El vidrio y el acero dilatan casi igual, lo cual es clave para el diseño de grandes fachadas acristaladas.',
|
|
170
|
+
tipConcrete: 'El coeficiente del hormigón es muy similar al del acero, razón por la cual las estructuras mixtas son tan estables.',
|
|
171
|
+
tipWood: 'La madera dilata poco por calor, pero mucho por humedad. En estructuras largas, la fibra longitudinal es muy estable.',
|
|
172
|
+
tipPvc: 'El PVC tiene una expansión altísima. Requiere juntas tóricas o curvas lira para absorber el movimiento sin romperse.',
|
|
173
|
+
},
|
|
174
|
+
};
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
|
|
2
|
+
import type { ToolLocaleContent } from '../../../types';
|
|
3
|
+
import type { ThermalExpansionCalculatorUI } from '../ui';
|
|
4
|
+
|
|
5
|
+
const slug = 'calculateur-dilatation-thermique';
|
|
6
|
+
const title = 'Calculateur de Dilatation Thermique pour Structures et Poutres';
|
|
7
|
+
const description =
|
|
8
|
+
'Calculez de combien se dilate une poutre ou une structure sous l\'effet de la température. Outil technique pour ingénieurs et bricoleurs. Coefficients par matériau inclus.';
|
|
9
|
+
|
|
10
|
+
const faqData = [
|
|
11
|
+
{
|
|
12
|
+
question: 'Qu\'est-ce que le coefficient de dilatation linéaire?',
|
|
13
|
+
answer:
|
|
14
|
+
'C\'est une propriété physique des matériaux qui indique de combien ils s\'allongent par degré Celsius d\'augmentation de température. Il se mesure en 1/°C ou °C⁻¹.',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
question: 'Pourquoi calculer la dilatation dans les poutres est-il important?',
|
|
18
|
+
answer:
|
|
19
|
+
'Si une poutre n\'a pas d\'espace pour se dilater (joints de dilatation), elle génère des contraintes internes massives pouvant déformer la structure, fissurer le béton ou provoquer un effondrement.',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
question: 'Le bois se dilate-t-il de la même façon dans toutes les directions?',
|
|
23
|
+
answer:
|
|
24
|
+
'Non. Le bois est un matériau anisotrope. Il se dilate très peu dans le sens du fil mais significativement dans le sens transversal (largeur et épaisseur).',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
question: 'Quelle température utiliser comme valeur Initiale?',
|
|
28
|
+
answer:
|
|
29
|
+
'Utilisez la température au moment de la pose ou de la construction. La valeur Finale doit être la température maximale prévue pendant la durée de vie de l\'ouvrage.',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
const howToData = [
|
|
34
|
+
{
|
|
35
|
+
name: 'Mesurez la longueur originale',
|
|
36
|
+
text: 'Entrez la longueur de la poutre ou du matériau en mètres.',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'Sélectionnez le matériau',
|
|
40
|
+
text: 'Choisissez parmi les métaux, les matériaux de construction ou les bois pour appliquer son coefficient spécifique.',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Définissez la plage thermique',
|
|
44
|
+
text: 'Indiquez la température initiale et la température maximale attendue pour calculer le différentiel thermique.',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Analysez la croissance',
|
|
48
|
+
text: 'Observez l\'allongement total en millimètres et la longueur finale résultante pour prévoir les joints appropriés.',
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
const faqSchema: WithContext<FAQPage> = {
|
|
53
|
+
'@context': 'https://schema.org',
|
|
54
|
+
'@type': 'FAQPage',
|
|
55
|
+
mainEntity: faqData.map((item) => ({
|
|
56
|
+
'@type': 'Question',
|
|
57
|
+
name: item.question,
|
|
58
|
+
acceptedAnswer: { '@type': 'Answer', text: item.answer },
|
|
59
|
+
})),
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const howToSchema: WithContext<HowToThing> = {
|
|
63
|
+
'@context': 'https://schema.org',
|
|
64
|
+
'@type': 'HowTo',
|
|
65
|
+
name: title,
|
|
66
|
+
description,
|
|
67
|
+
step: howToData.map((step, i) => ({
|
|
68
|
+
'@type': 'HowToStep',
|
|
69
|
+
position: i + 1,
|
|
70
|
+
name: step.name,
|
|
71
|
+
text: step.text,
|
|
72
|
+
})),
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const appSchema: WithContext<SoftwareApplication> = {
|
|
76
|
+
'@context': 'https://schema.org',
|
|
77
|
+
'@type': 'SoftwareApplication',
|
|
78
|
+
name: title,
|
|
79
|
+
description,
|
|
80
|
+
applicationCategory: 'UtilityApplication',
|
|
81
|
+
operatingSystem: 'All',
|
|
82
|
+
offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
|
|
83
|
+
inLanguage: 'fr',
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const content: ToolLocaleContent<ThermalExpansionCalculatorUI> = {
|
|
87
|
+
slug,
|
|
88
|
+
title,
|
|
89
|
+
description,
|
|
90
|
+
faqTitle: 'Questions Fréquentes',
|
|
91
|
+
faq: faqData,
|
|
92
|
+
bibliographyTitle: 'Références Techniques',
|
|
93
|
+
bibliography: [
|
|
94
|
+
{ name: 'Coefficient of Thermal Expansion — Engineering Toolbox', url: 'https://www.engineeringtoolbox.com/linear-expansion-coefficients-d_95.html' },
|
|
95
|
+
{ name: 'Thermal expansion and temperature — Britannica', url: 'https://www.britannica.com/science/thermal-expansion' },
|
|
96
|
+
{ name: 'Linear Thermal Expansion — Physics Hypertextbook', url: 'https://physics.info/expansion/' },
|
|
97
|
+
],
|
|
98
|
+
howTo: howToData,
|
|
99
|
+
schemas: [faqSchema, howToSchema, appSchema],
|
|
100
|
+
seo: [
|
|
101
|
+
{ type: 'title', text: 'Qu\'est-ce que la Dilatation Thermique et comment affecte-t-elle les Structures', level: 2 },
|
|
102
|
+
{
|
|
103
|
+
type: 'paragraph',
|
|
104
|
+
html: 'La <strong>dilatation thermique</strong> est le processus physique par lequel un matériau augmente sa longueur en réponse à une élévation de température. À l\'échelle microscopique, les particules vibrent avec plus d\'énergie et nécessitent un espacement moyen plus grand entre elles. En construction, ce phénomène n\'est pas une curiosité : c\'est une force qui peut fissurer le béton, déformer des poutres en acier et faire se tordre les rails d\'un chemin de fer.',
|
|
105
|
+
},
|
|
106
|
+
{ type: 'title', text: 'La Formule de la Dilatation Linéaire', level: 3 },
|
|
107
|
+
{
|
|
108
|
+
type: 'card',
|
|
109
|
+
icon: 'mdi:math-log',
|
|
110
|
+
title: 'Formule de Dilatation Linéaire',
|
|
111
|
+
html: '<p>L\'expansion d\'un élément structurel se calcule avec : <code>ΔL = L₀ · α · ΔT</code>. Où <strong>ΔL</strong> est l\'allongement total, <strong>L₀</strong> est la longueur originale, <strong>α</strong> est le coefficient de dilatation du matériau (en °C⁻¹) et <strong>ΔT</strong> est la différence de température. Cette formule est à la base du dimensionnement des joints de dilatation dans les ponts, les toitures et les façades.</p>',
|
|
112
|
+
},
|
|
113
|
+
{ type: 'title', text: 'Coefficients de Dilatation par Matériau', level: 3 },
|
|
114
|
+
{
|
|
115
|
+
type: 'card',
|
|
116
|
+
icon: 'mdi:table',
|
|
117
|
+
title: 'Coefficients de Dilatation Courants',
|
|
118
|
+
html: '<p>Tous les matériaux ne se dilatent pas de la même façon. L\'<strong>aluminium</strong> (23 ppm/°C) se dilate presque deux fois plus vite que l\'<strong>acier</strong> (12 ppm/°C). Le <strong>béton</strong> a un coefficient quasi identique à celui de l\'acier (12 ppm/°C), ce qui explique la stabilité du béton armé. Le <strong>PVC</strong> (30 ppm/°C) et le <strong>bois transversal</strong> (40 ppm/°C) présentent les expansions les plus élevées et nécessitent des solutions de jointement spécifiques.</p>',
|
|
119
|
+
},
|
|
120
|
+
{ type: 'title', text: 'L\'importance des Joints de Dilatation', level: 3 },
|
|
121
|
+
{
|
|
122
|
+
type: 'card',
|
|
123
|
+
icon: 'mdi:bridge',
|
|
124
|
+
title: 'Joints de Dilatation',
|
|
125
|
+
html: '<p>Si vous avez déjà vu une rainure garnie de caoutchouc dans le sol d\'un pont, vous avez vu un <strong>joint de dilatation</strong>. Sans cet espace, la poutre en acier buter contre l\'élément suivant lors des chaleurs estivales, générant des pressions susceptibles de provoquer le <strong>flambement</strong> de colonnes ou des fissures dans les murs porteurs. Le calculateur propose un joint minimum de 150 % du ΔL calculé pour absorber les variations de température extrêmes.</p>',
|
|
126
|
+
},
|
|
127
|
+
{ type: 'title', text: 'Cas Réels: des Rails de Train à la Tour Eiffel', level: 3 },
|
|
128
|
+
{
|
|
129
|
+
type: 'paragraph',
|
|
130
|
+
html: 'Les ingénieurs ferroviaires laissent des interstices entre les rails pour éviter qu\'ils ne se déforment en été. La structure en fer de la <strong>Tour Eiffel</strong> grandit d\'environ 15 cm lors des journées les plus chaudes de juillet à Paris. Dans le domaine domestique, les toitures en polycarbonate et les bardages en aluminium sont les cas les plus courants où le calcul thermique est déterminant pour éviter les infiltrations et les craquements.',
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
ui: {
|
|
134
|
+
configTitle: 'Configuration',
|
|
135
|
+
labelMaterial: 'Matériau',
|
|
136
|
+
groupMetals: 'Métaux',
|
|
137
|
+
groupConstruction: 'Construction',
|
|
138
|
+
groupWood: 'Bois et Polymères',
|
|
139
|
+
matSteel: 'Acier (12 ppm/°C)',
|
|
140
|
+
matAluminum: 'Aluminium (23 ppm/°C)',
|
|
141
|
+
matCopper: 'Cuivre (17 ppm/°C)',
|
|
142
|
+
matIron: 'Fonte (11 ppm/°C)',
|
|
143
|
+
matConcrete: 'Béton (12 ppm/°C)',
|
|
144
|
+
matBrick: 'Brique (9 ppm/°C)',
|
|
145
|
+
matGlass: 'Verre (9 ppm/°C)',
|
|
146
|
+
matWoodFiber: 'Bois dans le Fil (5 ppm/°C)',
|
|
147
|
+
matWoodTransversal: 'Bois Transversal (40 ppm/°C)',
|
|
148
|
+
matPvc: 'PVC (30 ppm/°C)',
|
|
149
|
+
catMetals: 'Métallurgie',
|
|
150
|
+
catConstruction: 'Construction',
|
|
151
|
+
catWood: 'Bois et Polymères',
|
|
152
|
+
labelLength: 'Longueur Initiale (m)',
|
|
153
|
+
labelTempStart: 'T. Initiale (°C)',
|
|
154
|
+
labelTempEnd: 'T. Maximale (°C)',
|
|
155
|
+
deltaLabel: 'Différentiel Thermique (ΔT)',
|
|
156
|
+
vizTitle: 'Simulation d\'Expansion',
|
|
157
|
+
resultGrowthLabel: 'Croissance Totale (ΔL)',
|
|
158
|
+
resultFinalLabel: 'Longueur Finale',
|
|
159
|
+
unitMm: 'MM',
|
|
160
|
+
unitM: 'M',
|
|
161
|
+
riskTitle: 'Risque de Flambement',
|
|
162
|
+
jointTitle: 'Joint Minimum',
|
|
163
|
+
riskLow: 'Faible',
|
|
164
|
+
riskModerate: 'Modéré',
|
|
165
|
+
riskCritical: 'Critique',
|
|
166
|
+
tipDefault: 'Consultez la fiche technique du fabricant pour les coefficients exacts des alliages spéciaux.',
|
|
167
|
+
tipSteel: 'L\'acier et le béton ont des coefficients presque identiques, ce qui permet au béton armé de fonctionner sans fissuration interne.',
|
|
168
|
+
tipAluminum: 'L\'aluminium se dilate presque deux fois plus que l\'acier. Dans les bardages métalliques, cela impose l\'utilisation de mastics élastiques.',
|
|
169
|
+
tipGlass: 'Le verre et l\'acier se dilatent à la même vitesse, ce qui est essentiel à la conception des grandes façades vitrées.',
|
|
170
|
+
tipConcrete: 'Le coefficient du béton est très similaire à celui de l\'acier, raison pour laquelle les structures mixtes sont si stables.',
|
|
171
|
+
tipWood: 'Le bois se dilate peu sous l\'effet de la chaleur, mais beaucoup sous l\'effet de l\'humidité. Dans le sens du fil, le mouvement thermique est très faible.',
|
|
172
|
+
tipPvc: 'Le PVC a une expansion très élevée. Il nécessite des joints toriques ou des courbes en lyre pour absorber les mouvements sans se fissurer.',
|
|
173
|
+
},
|
|
174
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import ThermalExpansionCalculatorComponent from './component.astro';
|
|
2
|
+
import ThermalExpansionCalculatorSEO from './seo.astro';
|
|
3
|
+
import ThermalExpansionCalculatorBibliography from './bibliography.astro';
|
|
4
|
+
import type { DiyToolEntry, ToolDefinition } from '../../types';
|
|
5
|
+
import type { ThermalExpansionCalculatorUI } from './ui';
|
|
6
|
+
|
|
7
|
+
export {
|
|
8
|
+
ThermalExpansionCalculatorComponent,
|
|
9
|
+
ThermalExpansionCalculatorSEO,
|
|
10
|
+
ThermalExpansionCalculatorBibliography,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const es = async () => (await import('./i18n/es')).content;
|
|
14
|
+
const en = async () => (await import('./i18n/en')).content;
|
|
15
|
+
const fr = async () => (await import('./i18n/fr')).content;
|
|
16
|
+
|
|
17
|
+
export const thermalExpansionCalculator: DiyToolEntry<ThermalExpansionCalculatorUI> = {
|
|
18
|
+
id: 'thermal-expansion-calculator',
|
|
19
|
+
icons: { bg: 'mdi:thermometer-lines', fg: 'mdi:ruler' },
|
|
20
|
+
i18n: { es, en, fr },
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const THERMAL_EXPANSION_CALCULATOR_TOOL: ToolDefinition = {
|
|
24
|
+
entry: thermalExpansionCalculator,
|
|
25
|
+
Component: ThermalExpansionCalculatorComponent,
|
|
26
|
+
SEOComponent: ThermalExpansionCalculatorSEO,
|
|
27
|
+
BibliographyComponent: ThermalExpansionCalculatorBibliography,
|
|
28
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
import { SEORenderer } from '@jjlmoya/utils-shared';
|
|
3
|
+
import { thermalExpansionCalculator } from './index';
|
|
4
|
+
import type { KnownLocale } from '../../types';
|
|
5
|
+
|
|
6
|
+
interface Props {
|
|
7
|
+
locale?: KnownLocale;
|
|
8
|
+
}
|
|
9
|
+
const { locale = 'es' } = Astro.props;
|
|
10
|
+
const content = await thermalExpansionCalculator.i18n[locale]?.();
|
|
11
|
+
if (!content) return null;
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<SEORenderer content={{ locale: locale as string, sections: content.seo }} />
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface ThermalExpansionCalculatorUI extends Record<string, string> {
|
|
2
|
+
configTitle: string;
|
|
3
|
+
labelMaterial: string;
|
|
4
|
+
groupMetals: string;
|
|
5
|
+
groupConstruction: string;
|
|
6
|
+
groupWood: string;
|
|
7
|
+
matSteel: string;
|
|
8
|
+
matAluminum: string;
|
|
9
|
+
matCopper: string;
|
|
10
|
+
matIron: string;
|
|
11
|
+
matConcrete: string;
|
|
12
|
+
matBrick: string;
|
|
13
|
+
matGlass: string;
|
|
14
|
+
matWoodFiber: string;
|
|
15
|
+
matWoodTransversal: string;
|
|
16
|
+
matPvc: string;
|
|
17
|
+
catMetals: string;
|
|
18
|
+
catConstruction: string;
|
|
19
|
+
catWood: string;
|
|
20
|
+
labelLength: string;
|
|
21
|
+
labelTempStart: string;
|
|
22
|
+
labelTempEnd: string;
|
|
23
|
+
deltaLabel: string;
|
|
24
|
+
vizTitle: string;
|
|
25
|
+
resultGrowthLabel: string;
|
|
26
|
+
resultFinalLabel: string;
|
|
27
|
+
unitMm: string;
|
|
28
|
+
unitM: string;
|
|
29
|
+
riskTitle: string;
|
|
30
|
+
jointTitle: string;
|
|
31
|
+
riskLow: string;
|
|
32
|
+
riskModerate: string;
|
|
33
|
+
riskCritical: string;
|
|
34
|
+
tipDefault: string;
|
|
35
|
+
tipSteel: string;
|
|
36
|
+
tipAluminum: string;
|
|
37
|
+
tipGlass: string;
|
|
38
|
+
tipConcrete: string;
|
|
39
|
+
tipWood: string;
|
|
40
|
+
tipPvc: string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
|
|
3
|
+
import { voltageDropCalculator } from './index';
|
|
4
|
+
import type { KnownLocale } from '../../types';
|
|
5
|
+
|
|
6
|
+
interface Props {
|
|
7
|
+
locale?: KnownLocale;
|
|
8
|
+
}
|
|
9
|
+
const { locale = 'es' } = Astro.props;
|
|
10
|
+
const content = await voltageDropCalculator.i18n[locale]?.();
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
{content && <SharedBibliography links={content.bibliography} />}
|