Skip to content

Commit 78b5df1

Browse files
Merge pull request #494 from Blueprints-org/493-documentation-issue-wrong-latex-rendering-in-docs-fix-homereadme
2 parents 6194dc9 + bd1eec1 commit 78b5df1

File tree

165 files changed

+1054
-1008
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+1054
-1008
lines changed

.github/prompts/casus_formula.prompt.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ class Form6Dot10abNStrengthReductionFactor(Formula):
3232
self,
3333
f_ck: MPA,
3434
) -> None:
35-
r"""[$$\nu_{1}$$] Strength reduction factor for concrete cracked in shear [-].
35+
r"""[$\nu_{1}$] Strength reduction factor for concrete cracked in shear [-].
3636
3737
NEN-EN 1992-1-1+C2:2011 art.6.2.2(1) - Formula (6.10.aN and 6.10.bN)
3838
3939
Parameters
4040
----------
4141
f_ck : MPA
42-
[$$f_{ck}$$] Characteristic compressive strength of concrete [$$MPa$$].
42+
[$f_{ck}$] Characteristic compressive strength of concrete [$MPa$].
4343
"""
4444
super().__init__()
4545
self.f_ck = f_ck

.github/prompts/comparison_formula.prompt.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ class Form5Dot38aCheckRelativeSlendernessRatio(Formula):
4040
Parameters
4141
----------
4242
lambda_y : DIMENSIONLESS
43-
[$$\lambda_{y}$$] Slenderness ratio in y-direction [-].
43+
[$\lambda_{y}$] Slenderness ratio in y-direction [-].
4444
lambda_z : DIMENSIONLESS
45-
[$$\lambda_{z}$$] Slenderness ratio in z-direction [$$N$$].
45+
[$\lambda_{z}$] Slenderness ratio in z-direction [$N$].
4646
"""
4747
super().__init__()
4848
self.lambda_y = lambda_y

.github/prompts/equation_formula.prompt.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ from blueprints.validations import raise_if_less_or_equal_to_zero, raise_if_nega
2424

2525

2626
class Form6Dot41W1Rectangular(Formula):
27-
r"""Class representing formula 6.41 for the calculation of [$$W_1$$]."""
27+
r"""Class representing formula 6.41 for the calculation of [$W_1$]."""
2828

2929
label = "6.41"
3030
source_document = NEN_EN_1992_1_1_C2_2011
@@ -35,18 +35,18 @@ class Form6Dot41W1Rectangular(Formula):
3535
c_2: MM,
3636
d: MM,
3737
) -> None:
38-
r"""[$$W_1$$] Calculation of the area [$$mm^2$$].
38+
r"""[$W_1$] Calculation of the area [$mm^2$].
3939
4040
NEN-EN 1992-1-1+C2:2011 art.6.4.3(3) - Formula (6.41)
4141
4242
Parameters
4343
----------
4444
c_1 : MM
45-
[$$c_1$$] Column dimension parallel to the eccentricity of the load [$$mm$$].
45+
[$c_1$] Column dimension parallel to the eccentricity of the load [$mm$].
4646
c_2 : MM
47-
[$$c_2$$] Column dimension perpendicular to the eccentricity of the load [$$mm$$].
47+
[$c_2$] Column dimension perpendicular to the eccentricity of the load [$mm$].
4848
d : MM
49-
[$$d$$] Mean effective depth of the slab [$$mm$$].
49+
[$d$] Mean effective depth of the slab [$mm$].
5050
"""
5151
super().__init__()
5252
self.c_1 = c_1

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99

1010
<picture>
11-
<source media="(prefers-color-scheme: dark)" srcset="docs/source/_static/blueprints_banner.png">
12-
<source media="(prefers-color-scheme: light)" srcset="docs/source/_static/blueprints_banner.png">
13-
<img alt="blueprints banner" src="docs/source/_static/blueprints_banner.png">
11+
<source media="(prefers-color-scheme: dark)" srcset="docs/_overrides/assets/images/blueprints_banner.png">
12+
<source media="(prefers-color-scheme: light)" srcset="docs/_overrides/assets/images/blueprints_banner.png">
13+
<img alt="blueprints banner" src="docs/_overrides/assets/images/blueprints_banner.png">
1414
</picture>
1515

1616
Welcome to `Blueprints`, the go-to repository for civil engineering professionals and enthusiasts!

blueprints/checks/nominal_concrete_cover/nominal_concrete_cover.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828

2929
@dataclass(frozen=True)
3030
class NominalConcreteCover:
31-
r"""Class responsible for the calculation of the nominal concrete cover [$$c_{nom}$$] [$$mm$$].
31+
r"""Class responsible for the calculation of the nominal concrete cover [$c_{nom}$] [$mm$].
3232
It takes considerations of art.4.4.1.2 and 4.4.1.3 into account.
3333
3434
Parameters
3535
----------
3636
reinforcement_diameter: MM
37-
The diameter of the reinforcement [$$mm$$].
37+
The diameter of the reinforcement [$mm$].
3838
nominal_max_aggregate_size: MM
39-
The nominal maximum aggregate size [$$mm$$].
39+
The nominal maximum aggregate size [$mm$].
4040
constants: ConstantsBase
4141
The constants for the calculation of the nominal concrete cover.
4242
structural_class: ConcreteStructuralClassBase | int
@@ -49,16 +49,16 @@ class NominalConcreteCover:
4949
chloride_seawater: ChlorideSeawater | Literal["XS1", "XS2", "XS3", "NA"]
5050
The classification of corrosion induced by chlorides from sea water. Default is "Not applicable".
5151
delta_c_dur_gamma: MM
52-
[$$\Delta c_{dur,\gamma}$$] An additional safety requirement based on art. 4.4.1.2 (6) [$$mm$$].
53-
The value of [$$\Delta c_{dur,\gamma}$$] for use in a Country may be found in its National Annex.
52+
[$\Delta c_{dur,\gamma}$] An additional safety requirement based on art. 4.4.1.2 (6) [$mm$].
53+
The value of [$\Delta c_{dur,\gamma}$] for use in a Country may be found in its National Annex.
5454
The recommended value is 0 mm. 0 mm is the default value in the formula if not specified otherwise.
5555
delta_c_dur_st: MM
56-
[$$\Delta c_{dur,st}$$] A reduction of minimum concrete cover when using stainless steel based on art. 4.4.1.2 (7) [$$mm$$].
57-
The value of [$$\Delta c_{dur,st}$$] for use in a Country may be found in its National Annex.
56+
[$\Delta c_{dur,st}$] A reduction of minimum concrete cover when using stainless steel based on art. 4.4.1.2 (7) [$mm$].
57+
The value of [$\Delta c_{dur,st}$] for use in a Country may be found in its National Annex.
5858
The recommended value, without further specification, is 0 mm. 0 mm is the default value in the formula if not specified otherwise.
5959
delta_c_dur_add: MM
60-
[$$\Delta c_{dur,add}$$] A reduction of minimum concrete cover when using additional protection based on art. 4.4.1.2 (8) [$$mm$$].
61-
The value of [$$\Delta c_{dur,add}$$] for use in a Country may be found in its National Annex.
60+
[$\Delta c_{dur,add}$] A reduction of minimum concrete cover when using additional protection based on art. 4.4.1.2 (8) [$mm$].
61+
The value of [$\Delta c_{dur,add}$] for use in a Country may be found in its National Annex.
6262
The recommended value, without further specification, is 0 mm. 0 mm is the default value in the formula if not specified otherwise.
6363
casting_surface: CastingSurface
6464
The casting surface of the concrete according to art. 4.4.1.3 (4).

blueprints/codes/eurocode/nen_9997_1_c2_2017/chapter_1_general_rules/formula_1_0_1.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@
1010

1111

1212
class Form1Dot0Dot1EquivalentPilePointCenterline(Formula):
13-
r"""Class representing formula 1.0.1 for the calculation of the equivalent pile point centerline [$$D_{eq}$$] in [$$m$$]."""
13+
r"""Class representing formula 1.0.1 for the calculation of the equivalent pile point centerline [$D_{eq}$] in [$m$]."""
1414

1515
label = "1.0.1"
1616
source_document = NEN_9997_1_C2_2017
1717

1818
def __init__(self, a: M, b: M) -> None:
19-
r"""[$$D_{eq}$$] Equivalent pile point centerline.
19+
r"""[$D_{eq}$] Equivalent pile point centerline.
2020
2121
NEN 9997-1+C2:2017 art.1.5.2.106a - Formula (1.0.1)
2222
2323
Parameters
2424
----------
2525
a : M
26-
[$$a$$] minor dimension of the largest cross-section at the pile tip [$$m$$].
26+
[$a$] minor dimension of the largest cross-section at the pile tip [$m$].
2727
b : M
28-
[$$b$$] major dimension of the largest cross-section at the pile tip [$$m$$].
28+
[$b$] major dimension of the largest cross-section at the pile tip [$m$].
2929
3030
Where: b ≤ 1.5 * a
3131
"""

blueprints/codes/eurocode/nen_9997_1_c2_2017/chapter_2_basic_of_geotechnical_design/formula_2_1_a.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88

99

1010
class Form2Dot1aDesignValueLoad(Formula):
11-
"""Class representing formula 2.1a for the calculation of the design value [$$F_{d}$$] of actions."""
11+
"""Class representing formula 2.1a for the calculation of the design value [$F_{d}$] of actions."""
1212

1313
label = "2.1a"
1414
source_document = NEN_9997_1_C2_2017
1515

1616
def __init__(self, gamma_f: DIMENSIONLESS, f_rep: DIMENSIONLESS) -> None:
17-
r"""[$$F_{d}$$] Design value of actions.
17+
r"""[$F_{d}$] Design value of actions.
1818
1919
NEN 9997-1+C2:2017 art.2.4.6.1(2) - (Formula 2.1a)
2020
2121
Parameters
2222
----------
2323
gamma_f : DIMENSIONLESS
24-
[$$\gamma_{F}$$] partial factor for actions for persistent and transient situations defined in annex A [$$-$$].
24+
[$\gamma_{F}$] partial factor for actions for persistent and transient situations defined in annex A [$-$].
2525
f_rep : DIMENSIONLESS
26-
[$$F_{rep}$$] Representative value of actions.
26+
[$F_{rep}$] Representative value of actions.
2727
2828
Use your own implementation for this value or use :class:`Form2Dot1bRepresentativeValue`.
2929
"""

blueprints/codes/eurocode/nen_9997_1_c2_2017/chapter_2_basic_of_geotechnical_design/formula_2_1_b.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88

99

1010
class Form2Dot1bRepresentativeValue(Formula):
11-
"""Class representing formula 2.1b for the calculation of the representative value [$$F_{rep}$$] of actions."""
11+
"""Class representing formula 2.1b for the calculation of the representative value [$F_{rep}$] of actions."""
1212

1313
label = "2.1b"
1414
source_document = NEN_9997_1_C2_2017
1515

1616
def __init__(self, psi: DIMENSIONLESS, f_k: DIMENSIONLESS) -> None:
17-
r"""[$$F_{rep}$$] Representative value of actions.
17+
r"""[$F_{rep}$] Representative value of actions.
1818
1919
NEN 9997-1+C2:2017 art.2.4.6.1(2) - Formula (2.1b)
2020
2121
Parameters
2222
----------
2323
psi : DIMENSIONLESS
24-
[$$\Psi$$] factor for converting the characteristic value to the representative value [$$-$$].
24+
[$\Psi$] factor for converting the characteristic value to the representative value [$-$].
2525
f_k : DIMENSIONLESS
26-
[$$F_{k}$$] Characteristic value of actions [$$-$$].
26+
[$F_{k}$] Characteristic value of actions [$-$].
2727
"""
2828
super().__init__()
2929
self.psi = psi

blueprints/codes/eurocode/nen_9997_1_c2_2017/chapter_2_basic_of_geotechnical_design/formula_2_2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88

99

1010
class Form2Dot2DesignValueGeotechnicalParameter(Formula):
11-
"""Class representing formula 2.2 for the calculation of the design value [$$X_d$$] of geotechnical parameter [$$X$$]."""
11+
"""Class representing formula 2.2 for the calculation of the design value [$X_d$] of geotechnical parameter [$X$]."""
1212

1313
label = "2.2"
1414
source_document = NEN_9997_1_C2_2017
1515

1616
def __init__(self, x_k: DIMENSIONLESS, gamma_m: DIMENSIONLESS) -> None:
17-
r"""[$$X_d$$] Design value of geotechnical parameter [$$X$$].
17+
r"""[$X_d$] Design value of geotechnical parameter [$X$].
1818
1919
NEN 9997-1+C2:2017 art.2.4.6.2(1) - Formula (2.2)
2020
2121
Parameters
2222
----------
2323
x_k : DIMENSIONLESS
24-
[$$X_{k}$$] Characteristic value of geotechnical parameter [$$X$$].
24+
[$X_{k}$] Characteristic value of geotechnical parameter [$X$].
2525
gamma_m : DIMENSIONLESS
26-
[$$\gamma_M$$] material partial factor [$$-$$].
26+
[$\gamma_M$] material partial factor [$-$].
2727
"""
2828
super().__init__()
2929
self.x_k = x_k

blueprints/codes/eurocode/nen_9997_1_c2_2017/chapter_2_basic_of_geotechnical_design/formula_2_4.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Form2Dot4DesignValueGeotechnicalParameter:
1212
r"""Class representing formula 2.4 for the check of
1313
the destabilizing load effect
1414
against the stabilizing load effect and friction resistance
15-
[$$E_{dst;d} \leq E_{stb;d} + T_d$$].
15+
[$E_{dst;d} \leq E_{stb;d} + T_d$].
1616
"""
1717

1818
label = "2.4"
@@ -21,18 +21,18 @@ class Form2Dot4DesignValueGeotechnicalParameter:
2121
def __init__(self, e_dst_d: KN, e_stb_d: KN, t_d: KN) -> None:
2222
r"""Check of the destabilizing load effect
2323
against the stabilizing load effect and friction resistance
24-
[$$E_{dst;d} \leq E_{stb;d} + T_d$$].
24+
[$E_{dst;d} \leq E_{stb;d} + T_d$].
2525
2626
NEN 9997-1+C2:2017 art.2.4.7.2(1) - Formula (2.4)
2727
2828
Parameters
2929
----------
3030
E_dst_d : KN
31-
[$$E_{dst;d}$$] Design value of destabilizing load effect [$$kN$$].
31+
[$E_{dst;d}$] Design value of destabilizing load effect [$kN$].
3232
E_stb_d : KN
33-
[$$E_{stb;d}$$] Design value of stabilizing load effect [$$kN$$].
33+
[$E_{stb;d}$] Design value of stabilizing load effect [$kN$].
3434
T_d : KN
35-
[$$T_d$$] Design value of friction resistance [$$kN$$].
35+
[$T_d$] Design value of friction resistance [$kN$].
3636
"""
3737
self.e_dst_d = e_dst_d
3838
self.e_stb_d = e_stb_d

blueprints/codes/eurocode/nen_en_1992_1_1_c2_2011/chapter_3_materials/formula_3_1.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
class Form3Dot1EstimationConcreteCompressiveStrength(Formula):
11-
r"""Class representing formula 3.1 for the estimation of the concrete compressive strength, [$$f_{cm}(t)$$], after t days
11+
r"""Class representing formula 3.1 for the estimation of the concrete compressive strength, [$f_{cm}(t)$], after t days
1212
with an average temperature of 20 degrees Celsius.
1313
"""
1414

@@ -20,16 +20,16 @@ def __init__(
2020
beta_cc_t: DIMENSIONLESS,
2121
f_cm: MPA,
2222
) -> None:
23-
r"""[$$f_{cm}(t)$$] The estimated concrete compressive strength [$$MPa$$].
23+
r"""[$f_{cm}(t)$] The estimated concrete compressive strength [$MPa$].
2424
2525
NEN-EN 1992-1-1+C2:2011 art.3.1.2(6) - Formula (3.1)
2626
2727
Parameters
2828
----------
2929
beta_cc_t : DIMENSIONLESS
30-
[$$\beta_{cc}(t)$$] Coefficient dependent of the age of concrete [$$-$$].
30+
[$\beta_{cc}(t)$] Coefficient dependent of the age of concrete [$-$].
3131
f_cm : MPA
32-
[$$f_{cm}$$] Average concrete compressive strength on day 28 based on table 3.1 [$$MPa$$].
32+
[$f_{cm}$] Average concrete compressive strength on day 28 based on table 3.1 [$MPa$].
3333
3434
Returns
3535
-------

blueprints/codes/eurocode/nen_en_1992_1_1_c2_2011/chapter_3_materials/formula_3_10.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ def __init__(
2020
t_s: DAYS,
2121
h_0: MM,
2222
) -> None:
23-
r"""[$$\beta_{ds}(t, t_s)$$] Coefficient for drying shrinkage due to age of concrete [$$-$$].
23+
r"""[$\beta_{ds}(t, t_s)$] Coefficient for drying shrinkage due to age of concrete [$-$].
2424
2525
NEN-EN 1992-1-1+C2:2011 art.3.1.4(6) - Formula (3.10)
2626
2727
Parameters
2828
----------
2929
t : DAYS
30-
[$$t$$] Age in days of the concrete at the considered moment [$$days$$].
30+
[$t$] Age in days of the concrete at the considered moment [$days$].
3131
t_s : DAYS
32-
[$$t_s$$] Age in days of the concrete at the start of the drying shrinkage [$$days$$].
32+
[$t_s$] Age in days of the concrete at the start of the drying shrinkage [$days$].
3333
h_0 : MM
34-
[$$h_0$$] fictional thickness of cross-section [$$mm$$].
34+
[$h_0$] fictional thickness of cross-section [$mm$].
3535
= 2 * Ac / u
3636
Use your own implementation of this formula or use the SubForm3Dot10FictionalCrossSection class.
3737
@@ -83,16 +83,16 @@ def __init__(
8383
a_c: MM2,
8484
u: MM,
8585
) -> None:
86-
r"""[$$h_0$$] Fictional thickness of the cross-section [$$mm$$].
86+
r"""[$h_0$] Fictional thickness of the cross-section [$mm$].
8787
8888
NEN-EN 1992-1-1+C2:2011 art.3.1.4(6) - h0
8989
9090
Parameters
9191
----------
9292
a_c : MM2
93-
[$$A_c$$] Area of the cross-section of the concrete [$$mm^2$$].
93+
[$A_c$] Area of the cross-section of the concrete [$mm^2$].
9494
u : MM
95-
[$$u$$] Circumference of part that is subjected to drying [$$mm$$].
95+
[$u$] Circumference of part that is subjected to drying [$mm$].
9696
"""
9797
super().__init__()
9898
self.a_c = a_c

blueprints/codes/eurocode/nen_en_1992_1_1_c2_2011/chapter_3_materials/formula_3_11.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ def __init__(
1717
beta_as_t: DIMENSIONLESS,
1818
epsilon_ca_inf: DIMENSIONLESS,
1919
) -> None:
20-
r"""[$$\epsilon_{ca}(t)$$] Autogene shrinkage [$$-$$].
20+
r"""[$\epsilon_{ca}(t)$] Autogene shrinkage [$-$].
2121
2222
NEN-EN 1992-1-1+C2:2011 art.3.1.4(6) - Formula (3.11)
2323
2424
Parameters
2525
----------
2626
beta_as_t : DIMENSIONLESS
27-
[$$\beta_{as}(t)$$] Coefficient dependent on time in days for autogene shrinkage [$$-$$].
27+
[$\beta_{as}(t)$] Coefficient dependent on time in days for autogene shrinkage [$-$].
2828
= 1 - exp(-0.2 * t^0.5)
2929
Use your own implementation of this formula or use the Form3Dot13CoefficientTimeAutogeneShrinkage class
3030
epsilon_ca_inf : DIMENSIONLESS
31-
[$$\epsilon_{ca}(\infty)$$] Autogene shrinkage at infinity [$$-$$].
31+
[$\epsilon_{ca}(\infty)$] Autogene shrinkage at infinity [$-$].
3232
= 2.5 * (fck - 10) E-6
3333
Use your own implementation of this formula or use the Form3Dot12AutogeneShrinkageInfinity class.
3434

blueprints/codes/eurocode/nen_en_1992_1_1_c2_2011/chapter_3_materials/formula_3_12.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ def __init__(
1616
self,
1717
f_ck: MPA,
1818
) -> None:
19-
r"""[$$\epsilon_{ca}(\infty)$$] Autogene shrinkage at infinity [$$$$-].
19+
r"""[$\epsilon_{ca}(\infty)$] Autogene shrinkage at infinity [$$-].
2020
2121
NEN-EN 1992-1-1+C2:2011 art.3.1.4(6) - Formula (3.12)
2222
2323
Parameters
2424
----------
2525
f_ck : MPA
26-
[$$f_{ck}$$] Compressive strength concrete [$$MPa$$].
26+
[$f_{ck}$] Compressive strength concrete [$MPa$].
2727
2828
Returns
2929
-------

blueprints/codes/eurocode/nen_en_1992_1_1_c2_2011/chapter_3_materials/formula_3_13.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ def __init__(
1818
self,
1919
t: DAYS,
2020
) -> None:
21-
r"""[$$\beta_{as}(t)$$] Coefficient dependent on time in days for autogene shrinkage [$$-$$].
21+
r"""[$\beta_{as}(t)$] Coefficient dependent on time in days for autogene shrinkage [$-$].
2222
2323
NEN-EN 1992-1-1+C2:2011 art.3.1.4(6) - Formula (3.13)
2424
2525
Parameters
2626
----------
2727
t : DAYS
28-
[$$t$$] Time in days [$$days$$].
28+
[$t$] Time in days [$days$].
2929
3030
Returns
3131
-------

0 commit comments

Comments
 (0)