Skip to content

Commit

Permalink
mechrefify
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrayb committed Aug 15, 2024
1 parent d3df232 commit f216946
Show file tree
Hide file tree
Showing 39 changed files with 169 additions and 168 deletions.
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import svelte from "@astrojs/svelte";

// https://astro.build/config
export default defineConfig({
ssite: 'https://jcrayb.github.io',
site: 'https://jcrayb.github.io',
base: 'mechref',
integrations: [svelte()]
});
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "mechref",
"name": "mechref_temp",
"type": "module",
"version": "0.0.1",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</style>

<div class="class-card">
<a href={coursetags[course]+'/'+id} class="text-decoration-none">
<a href={'/mechref/'+coursetags[course]+'/'+id} class="text-decoration-none">
<div class="card bg-yellow h-100">
<div class="w-100 class-card-img overflow-hidden">
<img src="https://picsum.photos/250/250" class="card-img-top ">
Expand Down
2 changes: 1 addition & 1 deletion src/components/CardGrid.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<ol class="card-grid-simple d-none">
{#each section[1] as page}
<li class="">
<a href={`${course[0]}/${page.id}`} class="text-decoration-none text-black">{page.name}</a>
<a href={`/mechref/${course[0]}/${page.id}`} class="text-decoration-none text-black">{page.name}</a>

</li>
{/each}
Expand Down
8 changes: 4 additions & 4 deletions src/components/Navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
<ul class="navbar-nav me-auto mb-0 ">
<div class="vr d-none d-sm-block" style="color: white;"></div>
<li class="nav-item">
<a class="nav-link active text-white py-1" href="/">Home page</a>
<a class="nav-link active text-white py-1" href="/mechref">Home page</a>
</li>
<div class="vr d-none d-sm-block" style="color: white;"></div>
<li class="nav-item">
<a class="nav-link active text-white py-1" href="/sta">Statics (210/211)</a>
<a class="nav-link active text-white py-1" href="/mechref/sta">Statics (210/211)</a>
</li>
<div class="vr d-none d-sm-block" style="color: white;"></div>
<li class="nav-item">
<a class="nav-link active text-white py-1" href="/dyn">Dynamics (212)</a>
<a class="nav-link active text-white py-1" href="/mechref/dyn">Dynamics (212)</a>
</li>
<div class="vr d-none d-sm-block" style="color: white;"></div>
<li class="nav-item">
<a class="nav-link active text-white py-1" href="/sol">Solid Mechanics (251)</a>
<a class="nav-link active text-white py-1" href="/mechref/sol">Solid Mechanics (251)</a>
</li>
<div class="vr d-none d-sm-block" style="color: white;"></div>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<p>
<ul class="list-group list-group-flush">
<li class="list-group-item course-group p-0 my-2">
<a href="/" class="text-decoration-none text-black w-100 d-flex justify-content-center">
<a href="/mechref" class="text-decoration-none text-black w-100 d-flex justify-content-center">
<strong class="m-0 fw-semibold h5">Home</strong>
</a>
</li>
Expand All @@ -29,7 +29,7 @@

<ul class="course-list">
{#each course[1] as page}
<li class="mb-1"><a href="/{course_tags[course[0]]}/{page.id}">{page.name}</a></li>
<li class="mb-1"><a href="/mechref/{course_tags[course[0]]}/{page.id}">{page.name}</a></li>
{/each}
</ul>
</div>
Expand Down
16 changes: 8 additions & 8 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ const { title } = Astro.props;
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>


<script src="/static/js/simplified_view.js" is:inline></script>
<script src="/jquery-2.1.4.min.js" is:inline></script>
<script src="/PrairieDraw.js" is:inline></script>
<script src="/PrairieGeom.js" is:inline></script>
<script src="/sha1.js" is:inline></script>
<script src="/sylvester.js" is:inline></script>
<script src="/mechref/static/js/simplified_view.js" is:inline></script>
<script src="/mechref/jquery-2.1.4.min.js" is:inline></script>
<script src="/mechref/PrairieDraw.js" is:inline></script>
<script src="/mechref/PrairieGeom.js" is:inline></script>
<script src="/mechref/sha1.js" is:inline></script>
<script src="/mechref/sylvester.js" is:inline></script>


<link rel="stylesheet" href="/static/css/main.css">
<link rel="stylesheet" href="/static/css/sidebar.css">
<link rel="stylesheet" href="/mechref/static/css/main.css">
<link rel="stylesheet" href="/mechref/static/css/sidebar.css">
</head>
<body class="pb-5">
<Navbar/>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dyn/particle_kinetics.astro
Original file line number Diff line number Diff line change
Expand Up @@ -497,4 +497,4 @@ import PrairieDrawCanvas from "../../components/PrairieDrawCanvas.astro"
</SubSubSubSection>
</Layout>

<script src="/public/dyn/particle_kinetics/particle_kinetics.js" is:inline></script>
<script src="/mechref/dyn/particle_kinetics/particle_kinetics.js" is:inline></script>
2 changes: 1 addition & 1 deletion src/pages/dyn/rigid_body_kinetics.astro
Original file line number Diff line number Diff line change
Expand Up @@ -1912,4 +1912,4 @@ import CalloutContainer from "../../components/CalloutContainer.astro"
</SubSubSection>
</Layout>

<script src="/dyn/rigid_body_kinetics/canvases.js" is:inline></script>
<script src="/mechref/dyn/rigid_body_kinetics/canvases.js" is:inline></script>
2 changes: 1 addition & 1 deletion src/pages/dyn/vector_calculus.astro
Original file line number Diff line number Diff line change
Expand Up @@ -699,4 +699,4 @@ import Col from "../../components/Col.astro"
</SubSection>
</Layout>

<script src="/dyn/vector_calculus/canvases.js" is:inline></script>
<script src="/mechref/dyn/vector_calculus/canvases.js" is:inline></script>
6 changes: 3 additions & 3 deletions src/pages/dyn/vectors.astro
Original file line number Diff line number Diff line change
Expand Up @@ -1515,6 +1515,6 @@ import SubSubSubSection from "../../components/SubSubSubSection.astro"
</SubSubSubSection>
</Layout>

<script src="/dyn/vectors/worldCoastlineCompressed.js" is:inline></script>
<script src="/dyn/vectors/py_triples.js" is:inline></script>
<script src="/dyn/vectors/canvases.js" is:inline></script>
<script src="/mechref/dyn/vectors/worldCoastlineCompressed.js" is:inline></script>
<script src="/mechref/dyn/vectors/py_triples.js" is:inline></script>
<script src="/mechref/dyn/vectors/canvases.js" is:inline></script>
10 changes: 5 additions & 5 deletions src/pages/sol/axial_loading.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import DisplayEquation from "../../components/DisplayEquation.astro"

<SubSection title="Notation and Convention">

<Image src='/Solid_Mechanics/Axial Loading-Figures/Notation.png' width='3'><BlueText>Taken from TAM251 Lecture Notes - L4S4</BlueText></Image>
<Image src='/mechref/Solid_Mechanics/Axial Loading-Figures/Notation.png' width='3'><BlueText>Taken from TAM251 Lecture Notes - L4S4</BlueText></Image>
<BlueText>
<ul>
<li> <strong>Displacement of points in space:</strong> the movement of a point relative to its initial position in space (ex; <InlineEquation equation='\\delta_B' /> )</li>
Expand Down Expand Up @@ -103,7 +103,7 @@ Superposition: If the displacements are (1) small and (2) linearly related to th

<SubSection title="Statically Determinate Problems">

<Image src='/Solid_Mechanics/Axial Loading-Figures/StaticallyDeterminate.png' width='3'>
<Image src='/mechref/Solid_Mechanics/Axial Loading-Figures/StaticallyDeterminate.png' width='3'>
<BlueText> Taken from TAM251 Lecture Notes - L4S9</BlueText>
</Image>

Expand All @@ -113,7 +113,7 @@ Superposition: If the displacements are (1) small and (2) linearly related to th

<SubSection title="Statically Indeterminate Problems">

<Image src='/Solid_Mechanics/Axial Loading-Figures/StaticallyIndeterminate.png' width='3'>
<Image src='/mechref/Solid_Mechanics/Axial Loading-Figures/StaticallyIndeterminate.png' width='3'>
<BlueText>Taken from TAM251 Lecture Notes - L4S10</BlueText>
</Image>

Expand All @@ -138,7 +138,7 @@ Superposition: If the displacements are (1) small and (2) linearly related to th
<DisplayEquation equation='\\delta_{tot} = \\delta_{E} + \\delta_{T}\\' />
</BlueText>

<Image src='/Solid_Mechanics/Axial Loading-Figures/Temperature_NoLoad.png' width='3'><BlueText>Taken from TAM251 Lecture Notes - L4S17</BlueText></Image>
<Image src='/mechref/Solid_Mechanics/Axial Loading-Figures/Temperature_NoLoad.png' width='3'><BlueText>Taken from TAM251 Lecture Notes - L4S17</BlueText></Image>

A rod rests freely on a smooth horizontal surface. Temperature of the rod is raised by <InlineEquation equation='\\Delta T' />. Rod elongates by an amount.

Expand All @@ -148,7 +148,7 @@ Superposition: If the displacements are (1) small and (2) linearly related to th

<DisplayEquation equation='\\varepsilon_{T} = \\frac{\\delta_T}{L} = \\alpha T\\' />

<Image src='/Solid_Mechanics/Axial Loading-Figures/Temperature_TwoPlates.png' width='2'>
<Image src='/mechref/Solid_Mechanics/Axial Loading-Figures/Temperature_TwoPlates.png' width='2'>
<BlueText>Taken from TAM251 Lecture Notes - L4S17</BlueText>
</Image>

Expand Down
16 changes: 8 additions & 8 deletions src/pages/sol/beam_deflection.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,29 @@ import Itemize from "../../components/Itemize.astro"

<SubSection title="Sign Conventions">

<Image src='/Solid_Mechanics/Beam Deflection-Figures/signConvention1.png' width='4'> From ref pages</Image>
<Image src='/mechref/Solid_Mechanics/Beam Deflection-Figures/signConvention1.png' width='4'> From ref pages</Image>

</SubSection>

<SubSection title="Boundary Conditions">

<Image src='/Solid_Mechanics/Beam Deflection-Figures/BoundryConditions.png' width='4'> From ref pages</Image>
<Image src='/mechref/Solid_Mechanics/Beam Deflection-Figures/BoundryConditions.png' width='4'> From ref pages</Image>

</SubSection>

<SubSection title="Moment-Curvature Equation">

<strong>Elastic Curve of a Beam:</strong>

<Image src='/Solid_Mechanics/Beam Deflection-Figures/ElasticCurveBeam.png' width='2.5'> <BlueText>Taken from TAM251 Lecture Notes - L12S3</BlueText></Image>
<Image src='/mechref/Solid_Mechanics/Beam Deflection-Figures/ElasticCurveBeam.png' width='2.5'> <BlueText>Taken from TAM251 Lecture Notes - L12S3</BlueText></Image>


Moment-curvature equation:

<DisplayEquation equation='M(x) = \\frac{E(x)I(x)}{\\rho(x)}\\' />
<DisplayEquation equation='\\kappa = \\frac{1}{\\rho} = \\frac{M(x)}{EI}\\' />

<Image src='/Solid_Mechanics/Beam Deflection-Figures/ElasticCurveGraph.png' width='3'> <BlueText>Taken from TAM251 Lecture Notes - L12S3</BlueText></Image>
<Image src='/mechref/Solid_Mechanics/Beam Deflection-Figures/ElasticCurveGraph.png' width='3'> <BlueText>Taken from TAM251 Lecture Notes - L12S3</BlueText></Image>

Governing equation of the elastic curve:
<DisplayEquation equation='\\frac{d^2y}{dx^2} = \\frac{M(x)}{EI}\\' />
Expand Down Expand Up @@ -95,19 +95,19 @@ import Itemize from "../../components/Itemize.astro"

<strong>Example:</strong> Overhanging Beam

<Image src='/Solid_Mechanics/Beam Deflection-Figures/Overhang Ex.png' width='3'> <BlueText>Taken from TAM251 Lecture Notes - L12S8</BlueText></Image>
<Image src='/mechref/Solid_Mechanics/Beam Deflection-Figures/Overhang Ex.png' width='3'> <BlueText>Taken from TAM251 Lecture Notes - L12S8</BlueText></Image>

<strong>Example:</strong> Cantilever Beam

<Image src='/Solid_Mechanics/Beam Deflection-Figures/Cantilever Ex.png' width='3'> <BlueText>Taken from TAM251 Lecture Notes - L12S8</BlueText></Image>
<Image src='/mechref/Solid_Mechanics/Beam Deflection-Figures/Cantilever Ex.png' width='3'> <BlueText>Taken from TAM251 Lecture Notes - L12S8</BlueText></Image>

</SubSection>


<SubSection title="Beam Solutions">
<BlueText>Common beam deflection solutions have been worked out.</BlueText>

<Image src='/Solid_Mechanics/Beam Deflection-Figures/Common Solutions.png' width='5'> <BlueText> Taken from the formula sheet</BlueText></Image>
<Image src='/mechref/Solid_Mechanics/Beam Deflection-Figures/Common Solutions.png' width='5'> <BlueText> Taken from the formula sheet</BlueText></Image>



Expand All @@ -117,7 +117,7 @@ import Itemize from "../../components/Itemize.astro"

<BlueText><strong>Example:</strong> Moment and distributed load</BlueText>

<Image src='/Solid_Mechanics/Beam Deflection-Figures/Superposition Ex.png' width='3'> <BlueText>Taken from TAM251 Lecture Notes - L12S16</BlueText></Image>
<Image src='/mechref/Solid_Mechanics/Beam Deflection-Figures/Superposition Ex.png' width='3'> <BlueText>Taken from TAM251 Lecture Notes - L12S16</BlueText></Image>

</SubSection>

Expand Down
22 changes: 11 additions & 11 deletions src/pages/sol/bending.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,27 @@ Transverse loads applied to a beam causes deflections, primarily up or down is r

<strong>Internal</strong>

<Image src='/Solid_Mechanics/Bending-Figures/internalSignConvention.png' width='4'> from reference pages</Image>
<Image src='/mechref/Solid_Mechanics/Bending-Figures/internalSignConvention.png' width='4'> from reference pages</Image>

<strong>External</strong>

<Image src='/Solid_Mechanics/Bending-Figures/externalSignConvention.png' width='3.5'> from reference pages</Image>
<Image src='/mechref/Solid_Mechanics/Bending-Figures/externalSignConvention.png' width='3.5'> from reference pages</Image>

</SubSection>

<SubSection title="Boundary Conditions">

<strong>Statically Determinate Beams</strong>

<Image src='/Solid_Mechanics/Bending-Figures/determinateBeams.png' width='6'> from reference pages</Image>
<Image src='/mechref/Solid_Mechanics/Bending-Figures/determinateBeams.png' width='6'> from reference pages</Image>


<strong>Statically Indeterminate Beams</strong>

<Image src='/Solid_Mechanics/Bending-Figures/indeterminateBeams.png' width='6'> from reference pages</Image>
<Image src='/mechref/Solid_Mechanics/Bending-Figures/indeterminateBeams.png' width='6'> from reference pages</Image>

<strong>Loadings</strong>
<Image src='/Solid_Mechanics/Bending-Figures/loadings1.png' width='6'> from reference pages</Image>
<Image src='/mechref/Solid_Mechanics/Bending-Figures/loadings1.png' width='6'> from reference pages</Image>

</SubSection>

Expand All @@ -51,7 +51,7 @@ Transverse loads applied to a beam causes deflections, primarily up or down is r

<SubSection title="Pure Bending">

<Image src='/Solid_Mechanics/Bending-Figures/PureBending.png' width='2'> <BlueText>Taken from TAM251 Lecture Notes - L6S11</BlueText></Image>
<Image src='/mechref/Solid_Mechanics/Bending-Figures/PureBending.png' width='2'> <BlueText>Taken from TAM251 Lecture Notes - L6S11</BlueText></Image>

Take a flexible strip, such as a thin ruler, and apply equal forces with your fingers as shown. Each hand applies a couple or moment (equal and opposite forces a distance apart). The couples of the two hands must be equal and opposite. Between the thumbs, the strip has deformed into a circular arc. For the loading shown here, just as the deformation is uniform, so the internal bending <strong>moment is uniform</strong>, equal to the moment applied by each hand.

Expand All @@ -65,7 +65,7 @@ Take a flexible strip, such as a thin ruler, and apply equal forces with your fi

<SubSection title="Geometry of Deformation">

<Image src='/Solid_Mechanics/Bending-Figures/Geometry.png' width='3'><BlueText>Taken from TAM251 Lecture Notes - L6S12</BlueText></Image>
<Image src='/mechref/Solid_Mechanics/Bending-Figures/Geometry.png' width='3'><BlueText>Taken from TAM251 Lecture Notes - L6S12</BlueText></Image>

Assumptions:
<Itemize>
Expand Down Expand Up @@ -127,14 +127,14 @@ The first moment of the area A with respect to the z-axis is given by <InlineEqu

<BlueText>The centroid of an area is at the coordinates <InlineEquation equation='(\\overline{x}, \\overline{y})' />.</BlueText>

<Image src='/Solid_Mechanics/Bending-Figures/Centroid.png' width='1'> <BlueText> Taken from TAM251 Lecture Notes - L6S19</BlueText></Image>
<Image src='/mechref/Solid_Mechanics/Bending-Figures/Centroid.png' width='1'> <BlueText> Taken from TAM251 Lecture Notes - L6S19</BlueText></Image>

<DisplayEquation equation='\\bar{y} = \\frac{1}{A}\\int_A y dA\\' />
<DisplayEquation equation='\\bar{z} = \\frac{1}{A}\\int_A z dA\\' />

<BlueText>Complex (or composite) areas can be divided into smaller, easier parts.</BlueText>

<Image src='/Solid_Mechanics/Bending-Figures/CompositeCentroid.png' width='3.5'> <BlueText>Taken from TAM251 Lecture Notes - L6S19</BlueText></Image>
<Image src='/mechref/Solid_Mechanics/Bending-Figures/CompositeCentroid.png' width='3.5'> <BlueText>Taken from TAM251 Lecture Notes - L6S19</BlueText></Image>

<DisplayEquation equation='\\bar{Y} = \\frac{1}{A_{tot}}\\sum_i (A_i\\bar{y}_i)\\] \\[\\bar{z} = \\frac{1}{A_{tot}}\\sum_i (A_i\\bar{z}_i)\\' />

Expand All @@ -151,7 +151,7 @@ The moment of inertia of the area A with respect to the z-axis is given by <Inli

<em>Note:</em> polar moment of inertia in this plane <DisplayEquation equation='J = \\int_A \\rho^2 dA = \\int_A (y^2 + z^2)dA = I_y + I_z\\' />

<Image src='/Solid_Mechanics/Bending-Figures/CommonShapes.png' width='3.5'> <BlueText>From the formula sheet</BlueText></Image>
<Image src='/mechref/Solid_Mechanics/Bending-Figures/CommonShapes.png' width='3.5'> <BlueText>From the formula sheet</BlueText></Image>

<strong>Parallel-axis theorem:</strong> the moment of inertia about an axis through C parallel to the axis through the centroid C is related to <InlineEquation equation='I_C' /> by <DisplayEquation equation="I_C = I_{C'} +A'd_{CC'}^2\\" />

Expand All @@ -172,7 +172,7 @@ From equilibrium: the centroid is located at <InlineEquation equation='\\bar{y}=

To evaluate the maximum absolute normal stress, denoting “c” the largest distance from the neutral surface, we use:

<Image src='/Solid_Mechanics/Bending-Figures/MaxStress.png' width='2'> <BlueText>Taken from TAM251 Lecture Notes - L6S17</BlueText></Image>
<Image src='/mechref/Solid_Mechanics/Bending-Figures/MaxStress.png' width='2'> <BlueText>Taken from TAM251 Lecture Notes - L6S17</BlueText></Image>

<DisplayEquation equation='\\sigma_{max} = \\frac{|M|c}{I_z}\\' />

Expand Down
Loading

0 comments on commit f216946

Please sign in to comment.