{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "Homework Assignment 2\n", "=====================\n", "\n", "\n", "## Problem 1\n", "\n", "1. Write out the conservation of linear momentum equations without using the\n", "summation convection, i.e. all components." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**Solution**\n", "\n", "Writing out the components, using an $x,y,z$ component convention\n", "\n", "\\begin{align*}\n", " \\rho \\frac{Dv_x}{Dt} &= \\frac{\\partial \\sigma_{xx}}{\\partial x} + \\frac{\\partial \\sigma_{xy}}{\\partial y} + \\frac{\\partial \\sigma_{xz}}{\\partial z} + \\rho b_x \\\\\n", " \\rho \\frac{Dv_y}{Dt} &= \\frac{\\partial \\sigma_{xy}}{\\partial x} + \\frac{\\partial \\sigma_{yy}}{\\partial y} + \\frac{\\partial \\sigma_{yz}}{\\partial z} + \\rho b_y \\\\\n", " \\rho \\frac{Dv_z}{Dt} &= \\frac{\\partial \\sigma_{xz}}{\\partial x} + \\frac{\\partial \\sigma_{yz}}{\\partial y} + \\frac{\\partial \\sigma_{zz}}{\\partial z} + \\rho b_z\n", "\\end{align*}" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Problem 2\n", "\n", "For most of the class, we've used a solid mechanics setting to motivate the\n", "physics of interest; however, the principles we've derived are general enough to\n", "apply to fluids as well. In an ideal nonviscous fluid there can be no shear\n", "stress. Hence, the stress tensor is entire hydrostatic, $\\sigma_{ij} = -p\n", "\\delta_{ij}$. Show that this leads to the following form of the momentum\n", "equation, known as Euler's equation of motion for a frictionless fluid:\n", "\n", "$$\n", "-\\frac{1}{\\rho} \\nabla p + \\vec{b} = \\frac{\\partial \\vec{v}}{\\partial t} +\n", "\\vec{v} \\cdot \\nabla \\vec{v}\n", "$$\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**Solution**\n", "\n", "Starting with the conservation of momentum equation\n", "\n", "\\begin{align*}\n", "\\rho \\frac{D \\vec{v}}{D t} &= \\nabla \\cdot \\boldsymbol{\\sigma} + \\rho \\vec{b} \\\\\n", "\\frac{\\partial \\vec{v}}{\\partial t} + \\vec{v} \\cdot \\nabla \\vec{v} &= \\frac{1}{\\rho} \\nabla \\cdot \\boldsymbol{\\sigma} + \\vec{b} \\\\\n", "\\frac{\\partial \\vec{v}}{\\partial t} + \\vec{v} \\cdot \\nabla \\vec{v} &= -\\frac{1}{\\rho} \\nabla \\cdot (p \\mathbf{I}) + \\vec{b} \\\\\n", "\\frac{\\partial \\vec{v}}{\\partial t} + \\vec{v} \\cdot \\nabla \\vec{v} &= -\\frac{1}{\\rho} \\nabla p + \\vec{b}\n", "\\end{align*}" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Problem 3\n", "\n", "Using the different forms of conservation of mass, derive an expression for $\\frac{d J}{dt}$ in terms of $\\vec{v}$, where $J = \\det(\\mathbf{F})$\n", "\n", "**Solution**\n", "\n", "Using the material form of conservation of mass\n", "\n", "\\begin{align*}\n", " \\dot{J} &= \\frac{\\partial}{\\partial t}\\left( \\det \\left( \\mathbf{F} \\right) \\right), \\\\\n", " &= \\frac{\\partial\\left( \\det \\left( \\mathbf{F} \\right)\\right)}{\\partial F_{ij}} \\frac{\\partial F_{ij}}{\\partial t}, \\\\\n", " &= \\frac{\\partial\\left( \\det \\left( \\mathbf{F} \\right)\\right)}{\\partial F_{ij}} L_{ik} F_{kj}, \\\\\n", " &= \\det(\\mathbf{F}) F_{ji}^{-1} L_{ik} F_{kj}, \\\\\n", " &= \\det(\\mathbf{F}) L_{ik} \\delta_{ki}, \\\\\n", " &= \\det(\\mathbf{F}) L_{kk}, \\\\\n", " &= J \\, \\frac{\\partial v_k}{\\partial x_k}, \\\\\n", " &= J (\\nabla \\cdot \\mathbf{v}),\n", "\\end{align*}" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Problem 4\n", "\n", "Assume that the internal-energy density can be given as $u = u(\\epsilon, T)$,\n", "that the heat flux is governed by Fourier's law $\\vec{q} = −k(T)\\nabla T$, and\n", "that $r = 0$. Defining the specific heat $C = \\frac{\\partial u}{\\partial T}$,\n", "write the equation resulting from combining these assumptions with the energy-\n", "balance equation.\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**Solution**\n", "\n", "Starting with the energy equation, for small displacements $D_{ij} \\approx \\dot{\\varepsilon}_{ij}$\n", "\n", "\\begin{align*}\n", "\\rho \\frac{D u}{Dt} &= \\boldsymbol{\\sigma} : \\boldsymbol{\\dot\\varepsilon} + \\nabla \\cdot \\vec{q} \\\\\n", "\\rho \\frac{D u}{DT}\\frac{DT}{Dt} + \\rho \\frac{D u}{D\\epsilon} \\frac{D\\epsilon}{Dt} &= \\boldsymbol{\\sigma} : \\boldsymbol{\\dot\\varepsilon} - \\nabla \\cdot (k(T) \\nabla T) \\\\\n", "\\rho C \\dot{T} + \\rho \\frac{D u}{D\\epsilon} \\dot{\\epsilon} &= \\boldsymbol{\\sigma} : \\boldsymbol{\\dot\\varepsilon} - \\nabla k(T)\\nabla T - k(T)\\nabla^2 T \\\\\n", "\\rho C \\dot{T} + \\rho \\frac{D u}{D\\epsilon} \\dot{\\epsilon} &= \\boldsymbol{\\sigma} : \\boldsymbol{\\dot\\varepsilon} - k(T)\\nabla^2 T \\\\\n", "\\end{align*}\n", "\n", "where it is understood that $\\epsilon$ is a scalar internal state variable." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Problem 5\n", "\n", "Show that, in an isotropic linearly elastic solid, the principal stress and\n", "principal strain directions coincide.\n", "\n", "**Solution**\n", "\n", "There are several ways to demonstrate this, first, let's assume that there is an orthonormal tensor $\\mathbf{V}$ that diagonalizes the *strain tensor* $\\boldsymbol{\\varepsilon}$, i.e. it consists of eigenvectors of the strain tensor and produces a diagonal tensor, $\\boldsymbol{\\varepsilon'}$ with the principle strains on the diagonal.\n", "\n", "$$\\boldsymbol{\\varepsilon'} = \\mathbf{V}^{-1} \\boldsymbol{\\varepsilon} \\mathbf{V}$$\n", "\n", "We'll use the eigenvectors from the strain tensor to transform the stress tensor, if the result is diagonal, we know they are also eigenvectors of the stress tensor, that is the principle directions of both tensors are in the same direction.\n", "\n", "\\begin{align*}\n", "\\sigma_{ij}' &= V_{ik}^{-1} \\sigma_{kl} V_{lj} \\\\\n", " &= V_{ik}^{-1} \\left(2 \\mu \\varepsilon_{kl} + \\lambda \\varepsilon_{mm} \\delta_{kl} \\right) V_{lj} \\\\\n", " &= 2 \\mu V_{ik}^{-1} \\varepsilon_{kl} V_{lj} + \\lambda \\varepsilon_{mm} V_{il}^{-1} V_{lj} \\\\\n", " &= 2 \\mu V_{ik}^{-1} \\varepsilon_{kl} V_{lj} + \\lambda \\varepsilon_{mm} \\delta_{ij} \\\\\n", " &= 2 \\mu \\varepsilon'_{ij} + \\lambda \\varepsilon_{mm} \\delta_{ij} \\\\\n", "\\end{align*}\n", "\n", "By inspection we can see that both the first and second terms of the resulting expressions are diagonal by definition, therefore $\\boldsymbol{\\sigma}'$ is also diagonal and $\\mathbf{V}$ also contains the eigenvectors of $\\boldsymbol{\\sigma}$" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Problem 6\n", "\n", "Write the elastic modulus matrix $C_{IJ}$ for an isotropic linearly elastic\n", "solid in terms of the Young’s modulus $E$ and the Poisson’s ratio $\\nu$.\n", "\n", "\n", "**Solution**\n", "\n", "\n", "$$\n", "C_{IJ} = \\frac{E}{2 (1+\\nu)}\n", "\\begin{bmatrix}\n", "\\frac{2(1-\\nu)}{1-2\\nu} & \\frac{2\\nu}{1-2\\nu} & \\frac{2\\nu}{1-2\\nu} & 0 & 0 & 0 \\\\\n", "\\frac{2\\nu}{1-2\\nu} & \\frac{2(1-\\nu)}{1-2\\nu} & \\frac{2\\nu}{1-2\\nu} & 0 & 0 & 0 \\\\\n", "\\frac{2\\nu}{1-2\\nu} & \\frac{2\\nu}{1-2\\nu} & \\frac{2(1-\\nu)}{1-2\\nu} & 0 & 0 & 0 \\\\\n", "0 & 0 & 0 & 1 & 0 & 0 \\\\\n", "0 & 0 & 0 & 0 & 1 & 0 \\\\\n", "0 & 0 & 0 & 0 & 0 & 1\n", "\\end{bmatrix}\n", "$$" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Problem 7\n", "\n", "Combine the generalized Hooke's law for an isotropic linearly elastic solid with\n", "the equations of motion and the definition of small strain in order to derive\n", "the equations of motion for such a solid entirely in terms of displacement,\n", "using\n", "\n", "1. $\\lambda$ and $\\mu$\n", "\n", "2. $G$ and $\\nu$\n", "\n", "**Solution**\n", "\n", "\n", "\\begin{align*}\n", "\\rho \\frac{D^2\\vec{u}}{Dt^2} &= \\nabla \\cdot \\boldsymbol{\\sigma} + \\rho \\vec{b} \\\\\n", "&= \\nabla \\cdot \\left(2 \\mu \\boldsymbol{\\varepsilon} + \\lambda \\text{tr}(\\boldsymbol{\\varepsilon}) \\mathbf{I} \\right)+ \\rho \\vec{b} \\\\\n", "&= \\mu \\frac{\\partial}{\\partial x_j} \\left( \\frac{\\partial u_i}{\\partial x_j} + \\frac{\\partial u_j}{\\partial x_i} \\right) + \\lambda \\frac{\\partial^2 u_k} {\\partial x_j \\partial x_k} \\delta_{ij}\\\\\n", "&= \\mu \\frac{\\partial^2 u_i}{\\partial x_j^2} + \\mu \\frac{\\partial^2 u_j}{\\partial x_i\\partial x_j} + \\lambda \\frac{\\partial^2 u_k} {\\partial x_i \\partial x_k} \\\\ \n", "&= \\mu \\frac{\\partial^2 u_i}{\\partial x_j^2} + \\mu \\frac{\\partial^2 u_j}{\\partial x_i\\partial x_j} + \\lambda \\frac{\\partial^2 u_j} {\\partial x_i \\partial x_j} \\\\\n", "&= \\mu \\frac{\\partial^2 u_i}{\\partial x_j^2} + (\\mu + \\lambda) \\frac{\\partial^2 u_j} {\\partial x_i \\partial x_j} \\\\\n", "&= \\mu \\nabla^2 \\vec{u} + (\\mu + \\lambda) \\nabla (\\nabla \\cdot \\vec{u}) \\\\\n", "&= G \\nabla^2 \\vec{u} + \\frac{G}{1 - 2 \\nu}\\nabla (\\nabla \\cdot \\vec{u})\n", "\\end{align*}" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Problem 8\n", "\n", "\n", "1. Show that minimizing the integral\n", " $$\n", " I = \\int_{t_1}^{t_2} L(y, \\dot{y}, t) \\, dt\n", " $$\n", " results in the Euler-Lagrange Equation, i.e.\n", " $$\n", " \\frac{\\partial L}{\\partial y} - \\frac{d}{dt} \\left( \\frac{\\partial L}{\\partial \\dot{y}} \\right) = 0\n", " $$\n", "\n", "2. A mass $m$ suspended from a spring with stiffness $k$ has the following kinetic and potential energies,\n", " $$\n", " T = \\frac{1}{2} m \\dot{y}^2 \\quad U = \\frac{1}{2} k y^2\n", " $$\n", " Assume $L = T - U$ and use the Euler-Lagrange equation to derive the equation-of-motion for the spring-mass system.\n", "\n", "\n", "**Solution**\n", "\n", "\n", "1. Compute $\\delta I$, i.e.\n", "\n", " $$\n", " \\delta I = \\int_{t_1}^{t_2} \\frac{\\partial L}{\\partial y}\\delta y + \\frac{\\partial L}{\\partial \\dot{y}}\\delta \\dot{y} {\\rm d}t = 0\n", " $$\n", " \n", " integrate the second term by parts\n", " \n", " $$\n", " \\delta I = \\int_{t_1}^{t_2} \\frac{\\partial L}{\\partial y}\\delta y - \\frac{{\\rm d}}{{\\rm d}t}\\left(\\frac{\\partial L}{\\partial \\dot{y}}\\right)\\delta y {\\rm d}t + \\left[ \\frac{\\partial L}{\\partial \\dot{y}} \\delta y \\right]_{t_1}^{t_2} = 0\n", " $$\n", " \n", " the last term vanishes because the varations at $t_1$ and $t_2$ are fixed. Then using the fundamental lemma of the calculus of varations, we have\n", "\n", " $$\n", " \\frac{\\partial L}{\\partial y} - \\frac{{\\rm d}}{{\\rm d}t}\\left(\\frac{\\partial L}{\\partial \\dot{y}}\\right) = 0\n", " $$\n", "\n", "2. The Lagrangian is\n", " $$\n", " L = T - U = \\frac{1}{2} m \\dot{y}^2 - \\frac{1}{2} k y^2.\n", " $$\n", "\n", " Using the Euler-Lagrange equation:\n", " $$\n", " \\frac{\\partial L}{\\partial y} - \\frac{d}{dt} \\left( \\frac{\\partial L}{\\partial \\dot{y}} \\right) = 0,\n", " $$\n", "\n", " we compute the necessary derivatives:\n", " \\begin{align*}\n", " \\frac{\\partial L}{\\partial y} &= \\frac{\\partial}{\\partial y} \\left( \\frac{1}{2} m \\dot{y}^2 - \\frac{1}{2} k y^2 \\right) = -k y, \\\\\n", " \\frac{\\partial L}{\\partial \\dot{y}} &= \\frac{\\partial}{\\partial \\dot{y}} \\left( \\frac{1}{2} m \\dot{y}^2 - \\frac{1}{2} k y^2 \\right) = m \\dot{y}.\n", " \\end{align*}\n", "\n", " The time derivative of $\\frac{\\partial L}{\\partial \\dot{y}}$ is\n", " $$\n", " \\frac{d}{dt} \\left( \\frac{\\partial L}{\\partial \\dot{y}} \\right) = \\frac{d}{dt} (m \\dot{y}) = m \\ddot{y}.\n", " $$\n", "\n", " Substituting into the Euler-Lagrange equation\n", " $$\n", " -k y - m \\ddot{y} = 0,\n", " $$\n", "\n", " or, after rearranging\n", " $$\n", " m \\ddot{y} + k y = 0.\n", " $$" ] } ], "metadata": { "kernelspec": { "display_name": "AAPG", "language": "python", "name": "aapg" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.12.8" } }, "nbformat": 4, "nbformat_minor": 1 }