Skip to content

Commit

Permalink
draw loads and reaction forces
Browse files Browse the repository at this point in the history
  • Loading branch information
beachdweller committed Dec 6, 2024
1 parent 7f4151b commit 1b4234a
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions 60_linear_algebra_2/127_Truss_Section_Method.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
"cells": [
{
"cell_type": "markdown",
"id": "eb2204d4",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
"colab_type": "text",
"id": "view-in-github"
},
"source": [
"<a href=\"https://colab.research.google.com/github/kangwonlee/nmisp/blob/truss-example/60_linear_algebra_2/127_Truss_Section_Method.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>\n"
Expand All @@ -13,6 +14,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "cc57ebcd",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -23,6 +25,7 @@
},
{
"cell_type": "markdown",
"id": "95df90d9",
"metadata": {},
"source": [
"## Truss\n",
Expand All @@ -32,6 +35,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "730ff013",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -48,6 +52,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "226a4774",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -67,6 +72,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "2c6f5931",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -95,14 +101,30 @@
"# E-G\n",
"draw_line(4, 5, points, ax)\n",
"\n",
"# -F @ C\n",
"plt.arrow(*points[2], 0, -0.5, head_width=0.1)\n",
"\n",
"# -2F @ E\n",
"plt.arrow(*points[4], 0, -1.0, head_width=0.1)\n",
"\n",
"\n",
"# R @ A\n",
"plt.arrow(0, 0.5, 0, 0.5, head_width=0.1, length_includes_head=True)\n",
"\n",
"# R @ G\n",
"plt.arrow(3.0, -1.0, 0, 1.0, head_width=0.1, length_includes_head=True)\n",
"\n",
"\n",
"plt.axis('equal')\n",
"plt.grid(True)\n",
"\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "81ce2c0a",
"metadata": {},
"outputs": [],
"source": []
Expand All @@ -129,4 +151,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}

0 comments on commit 1b4234a

Please sign in to comment.