From 3aeca6b81774b9c9dcbeaf78a765bc8db03887e2 Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Tue, 10 Dec 2024 16:00:14 +0100 Subject: [PATCH] test without ipynb --- book/week_13/session_1/intro.ipynb | 133 ----------------------------- book/week_13/session_1/intro.md | 2 +- book/week_13/session_1/intro.py | 2 +- 3 files changed, 2 insertions(+), 135 deletions(-) delete mode 100644 book/week_13/session_1/intro.ipynb diff --git a/book/week_13/session_1/intro.ipynb b/book/week_13/session_1/intro.ipynb deleted file mode 100644 index 16770c0..0000000 --- a/book/week_13/session_1/intro.ipynb +++ /dev/null @@ -1,133 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "id": "5adf6272", - "metadata": {}, - "source": [ - "```{index} Transformations; Class exercise using analytical formulas\n", - "```\n", - "\n", - "```{custom_download_link} intro.py\n", - ":text: \".py\"\n", - "```\n", - "\n", - "(lesson13.1)=\n", - "# Lesson November 25th\n", - "\n", - "During today's lesson you'll work on a complex exercise on the topic of the Transforming tensors. Please ask your questions regarding the [homework](homework13.1) as well!\n", - "\n", - "## Exercise Transforming tensors\n", - "\n", - "Given is the following structure and cross-section:\n", - "\n", - "```{figure} intro_data/structure.svg\n", - ":align: center\n", - "```\n", - "\n", - "1. Find the relevant cross-sectional properties.\n", - "2. Find the normal and shear stresses just below $\\text{G}$, in $\\text{H}$, in $\\text{I}$ and just right of $\\text{C}$ in cross-section $\\text{A}$.\n", - "3. Find the principal values of the stresses in the points just below $\\text{G}$, in $\\text{H}$, in $\\text{I}$ and just right of $\\text{C}$ in cross-section $\\text{A}$.\n", - "\n", - "````{admonition} Solution assignment 1\n", - ":class: tip, dropdown\n", - "\n", - "Normal force centre is given by:\n", - "```{figure} intro_data/NC.svg\n", - ":align: center\n", - "```\n", - "\n", - "- $A \\approx 17500 \\text{ mm}^2$\n", - "- $I_{zz} \\approx 655 \\cdot 10^6 \\text{ mm}^4$\n", - "\n", - "````\n", - "\n", - "````{admonition} Solution assignment 2\n", - ":class: tip, dropdown\n", - "\n", - "- $\\sigma_\\text{just below G} = +6.73 \\text{ MPa}$\n", - "- $\\tau_\\text{just below G} = +0.164 \\text{ MPa}$\n", - "- $\\sigma_\\text{H} = +6.73 \\text{ MPa}$\n", - "- $\\tau_\\text{H} = 0 \\text{ MPa}$\n", - "- $\\sigma_\\text{I} = -2 \\text{ MPa}$\n", - "- $\\tau_\\text{I} = +0.35 \\text{ MPa}$\n", - "- $\\sigma_\\text{just right of C} = -8.53 \\text{ MPa}$\n", - "- $\\tau_\\text{just right of C} = -0.12 \\text{ MPa}$\n", - "\n", - "````\n", - "\n", - "````{admonition} Solution assignment 3\n", - ":class: tip, dropdown\n", - "\n", - "- $\\sigma_\\text{1, just below G} = +6.73 \\text{ MPa}$\n", - "- $\\sigma_\\text{2, just below G} = -0.0040 \\text{ MPa}$\n", - "- $\\sigma_\\text{1, H} = +6.73 \\text{ MPa}$\n", - "- $\\sigma_\\text{2, H} = 0 \\text{ MPa}$\n", - "- $\\sigma_\\text{1, I} = 0.59 \\text{ MPa}$\n", - "- $\\sigma_\\text{2, I} = -2.06 \\text{ MPa}$\n", - "- $\\sigma_\\text{1, just right of C} = 0.0018 \\text{ MPa}$\n", - "- $\\sigma_\\text{2, just right of C} = -8.5 \\text{ MPa}$\n", - "\n", - "````\n", - "\n", - "Test of adding more text" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "4802feeb", - "metadata": { - "tags": [ - "remove-cell" - ] - }, - "outputs": [], - "source": [ - "Izz = 655e6\n", - "\n", - "tau_G = -3e3 * -250*10*286 / 20 / Izz\n", - "print(tau_G)\n", - "\n", - "tau_C = -3e3 * -250*20*(286-500) / 40 / Izz\n", - "print(tau_C)\n", - "\n", - "sigma_G = +6.73\n", - "tau_G = -tau_G\n", - "sigma_G_1 = 1/2 * (sigma_G + 0) + ((1/2 * (sigma_G + 0))**2 + tau_G**2)**0.5\n", - "sigma_G_2 = 1/2 * (sigma_G + 0) - ((1/2 * (sigma_G + 0))**2 + tau_G**2)**0.5\n", - "print(sigma_G_1, sigma_G_2)\n", - "\n", - "sigma_H = +6.73\n", - "tau_G = 0\n", - "sigma_H_1 = 1/2 * (sigma_H + 0) + ((1/2 * (sigma_H + 0))**2 + tau_G**2)**0.5\n", - "sigma_H_2 = 1/2 * (sigma_H + 0) - ((1/2 * (sigma_H + 0))**2 + tau_G**2)**0.5\n", - "print(sigma_H_1, sigma_H_2)\n", - "\n", - "sigma_I = -2\n", - "tau_I = +0.35\n", - "sigma_I_1 = 1/2 * (sigma_I + 0) + ((1/2 * (sigma_I + 0))**2 + tau_I**2)**0.5\n", - "sigma_I_2 = 1/2 * (sigma_I + 0) - ((1/2 * (sigma_I + 0))**2 + tau_I**2)**0.5\n", - "print(sigma_I_1, sigma_I_2)\n", - "\n", - "sigma_C = -8.53\n", - "tau_C = -tau_C\n", - "sigma_C_1 = 1/2 * (sigma_C + 0) + ((1/2 * (sigma_C))**2 + tau_C**2)**0.5\n", - "sigma_C_2 = 1/2 * (sigma_C + 0) - ((1/2 * (sigma_C))**2 + tau_C**2)**0.5\n", - "print(sigma_C_1, sigma_C_2)" - ] - } - ], - "metadata": { - "jupytext": { - "cell_markers": "\"\"\"" - }, - "kernelspec": { - "display_name": "base", - "language": "python", - "name": "python3" - } - }, - "nbformat": 4, - "nbformat_minor": 5 -} diff --git a/book/week_13/session_1/intro.md b/book/week_13/session_1/intro.md index d2aeab5..cbea619 100644 --- a/book/week_13/session_1/intro.md +++ b/book/week_13/session_1/intro.md @@ -16,7 +16,7 @@ kernelspec: ``` ```{custom_download_link} intro.py -:text: ".py" +:text: ".py:percent" ``` (lesson13.1)= diff --git a/book/week_13/session_1/intro.py b/book/week_13/session_1/intro.py index 97e3237..cdf5083 100644 --- a/book/week_13/session_1/intro.py +++ b/book/week_13/session_1/intro.py @@ -19,7 +19,7 @@ ``` ```{custom_download_link} intro.py -:text: ".py" +:text: ".py:percent" ``` (lesson13.1)=