问题

已知某应力张量的分量为

\[\sigma_{11}=3,\quad\sigma_{12} = \sigma_{13} = 1, \quad \sigma_{22} = \sigma_{33} = 0, \quad\sigma_{23} = 2
\]

  • 1、全部主应力
  • 2、最大主应力对应的主方向
  • 3、求方向矢量为 $\boldsymbol{n} = \left(0, \dfrac{1}{\sqrt{2}}, \dfrac{1}{\sqrt{2}}\right)$ 的斜面上的正应力 $\sigma_n$ 和剪应力 $\tau_n$。
  • 应力张量

    已知应力张量有如下形式

    \[\left[
    \begin{array}{ccc}
    \sigma_{x} & \tau_{xy} & \tau_{xz}\\
    \tau_{yx} & \sigma_{y} & \tau_{yz}\\
    \tau_{zx} & \tau_{zy} & \sigma_{z}
    \end{array}
    \right]
    =
    \left[
    \begin{array}{ccc}
    3 & 1 & 1\\
    1 & 0 & 2\\
    1 & 2 & 0
    \end{array}
    \right]
    \]

    求解

    导入sympy模块

    from sympy import *
    init_printing(use_unicode=True)

    Matrix对象表示应力矩阵

    sigma = Matrix([[3, 1, 1], [1, 0, 2], [1, 2, 0]])
    sigma

    \[\left[\begin{matrix}3 & 1 & 1\\1 & 0 & 2\\1 & 2 & 0\end{matrix}\right]
    \]

    1、求全部主应力

    求特征值

    • 调用 Matrix 对象的 eigenvals 方法
    sigma.eigenvals()

    \[\left \{ -2 : 1, \quad 1 : 1, \quad 4 : 1\right \}
    \]

    • 冒号后的数字表示一重特征值

    求特征矢量

    • 调用 Matrix 对象的 eigenvects 方法
    sigma.eigenvects()

    \[\left [ \left ( -2, \quad 1, \quad \left [ \left[\begin{matrix}0\\-1\\1\end{matrix}\right]\right ]\right ), \quad \left ( 1, \quad 1, \quad \left [ \left[\begin{matrix}-1\\1\\1\end{matrix}\right]\right ]\right ), \quad \left ( 4, \quad 1, \quad \left [ \left[\begin{matrix}2\\1\\1\end{matrix}\right]\right ]\right )\right ]
    \]

    2、求最大主应力对应的主方向

    最大主应力

    \[\sigma_1 = 4
    \]

    最大主应力对应的主方向

    \[\dfrac{1}{\sqrt{6}}\left(2, 1, 1\right)
    \]

    3、求斜面上的正应力 \(\sigma_n\) 和剪应力 \(\tau_n\)

    方向矢量

    \[\boldsymbol{n} = \left(0, \dfrac{1}{\sqrt{2}}, \dfrac{1}{\sqrt{2}}\right)
    \]

    n = Matrix([[0], [1], [1]])/sqrt(2)
    n

    \[\left[\begin{matrix}0\\\frac{\sqrt{2}}{2}\\\frac{\sqrt{2}}{2}\end{matrix}\right]
    \]

    应力矢量 \(\boldsymbol{T} = \boldsymbol{\sigma}\cdot\boldsymbol{n}\)

    T = sigma*n
    T

    \[\left[\begin{matrix}\sqrt{2}\\\sqrt{2}\\\sqrt{2}\end{matrix}\right]
    \]

    正应力 \(\sigma_n = \boldsymbol{T}\cdot\boldsymbol{n}\)

    sigma_n = T.T*n
    sigma_n

    \[\left[\begin{matrix}2\end{matrix}\right]
    \]

    剪应力

    \[\tau_n = \sqrt{T^2 - \sigma_n^2}
    \]

    tau_n =sqrt(T.T*T - sigma_n**2)
    tau_n

    \[\left(\left[\begin{matrix}2\end{matrix}\right]\right)^{\frac{1}{2}}
    \]

    参考

    Python3之弹性力学——应力张量2的更多相关文章

    1. Python3之弹性力学——应力张量1

      题目 已知某点的应力张量为: \[ \left[ \begin{array}{ccc} \sigma_{x} &\tau_{xy} &\tau_{xz}\\ \tau_{yx} &am ...

    2. python3  threading初体验

      python3中thread模块已被废弃,不能在使用thread模块,为了兼容性,python3将thread命名为_thread.python3中我们可以使用threading进行代替. threa ...

    3. Python3中的字符串函数学习总结

      这篇文章主要介绍了Python3中的字符串函数学习总结,本文讲解了格式化类方法.查找 & 替换类方法.拆分 & 组合类方法等内容,需要的朋友可以参考下. Sequence Types ...

    4. Mac-OSX的Python3.5虚拟环境下安装Opencv

      Mac-OSX的Python3.5虚拟环境下安装Opencv 1   关键词 关键词:Mac,OSX,Python3.5,Virtualenv,Opencv 2   概述 本文是一篇 环境搭建 的基础 ...

    5. Ubuntu部署python3.5的开发和运行环境

      Ubuntu部署python3.5的开发和运行环境 1 概述 由于最近项目全部由python2.x转向 python3.x(使用目前最新的 python3.5.1) ,之前的云主机的的默认python ...

    6. Python3 登陆网页并保持cookie

      网页登陆 网页登陆的原理都是,保持一个sessionid在cookie然后,根据sessionid在服务端找到cookie进行用户识别 python实现 由于python的简单以及丰富的类库是开发网络 ...

    7. 阿里云 SDK python3支持

      最近的一个项目需要操作阿里云的RDS,项目使用python3,让人惊讶的是官方的SDK竟然只支持python2 在阿里云现有SDK上改了改,文件的修改只涉及aliyun/api/base.py,详见h ...

    8. python3爬取1024图片

      这两年python特别火,火到博客园现在也是隔三差五的出现一些python的文章.各种开源软件.各种爬虫算法纷纷开路,作为互联网行业的IT狗自然看的我也是心痒痒,于是趁着这个雾霾横行的周末瞅了两眼,作 ...

    9. CentOS7中安装Python3.5

      1.下载 https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz 2.上传到服务器 3. 安装相关依赖 yum install gcc ope ...

    随机推荐

    1. bzoj 4011

      看了好多篇题解才看懂的题,我实在太菜了... 首先根据一个我不知道的算法,可以证明在没有加入新的边的时候,原图的所有生成树的方案数就是所有点(除1以外)的度之积 那么在新加入这条边之后,我们仍然可以这 ...

    2. 第四周学习总结-HTML

      2018年8月5日 这是暑假第四周,这一周我在菜鸟教程网学到了许多HTML的知识.HTML编写网页不像C语言.Java语言那必须有主方法.主函数什么的,它基本上都是标签(元素),但是它可以与CSS(层 ...

    3. 从零开始 DOM操作 笔记

          <div id="box" class="box"></div>   --> var myBox = document.g ...

    4. springboot多环境(dev、test、prod)配置

      propertiest配置格式在Spring Boot中多环境配置文件名需要满足application-{profile}.properties的格式,其中{profile}对应你的环境标识,比如: ...

    5. VOC数据集生成代码使用说明

      #split.py 文件 输入格式为images ,和标签txt文件,txt中的数据为坐标值共8个. import os import numpy as np import math import c ...

    6. Java+selenium之WebDriver的抛出异常分析(七)

      NoSuchElementException 1.检查元素的定位器是否正确 2.如果定位器正确,增加休眠时间 3.等待了足够的时间依然找不到的话,更换定位器的定位方式 NoSuchWindowExce ...

    7. 20165323 实验三 敏捷开发与XP实践

      一.实验报告封面 课程:Java程序设计 班级:1653班 姓名:杨金川 学号:20165323 指导教师:娄嘉鹏 实验日期:2018年4月28日 实验时间:13:45 - 15:25 实验序号:实验 ...

    8. DapperHelper 帮助类

      using System; using System.Collections.Generic; using System.Configuration; using System.Data; using ...

    9. Windows10右键添加“在此处打开命令窗口”

      cmdHere.reg: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere] @= ...

    10. curl请求https请求

      function curl_https($url,$data){ $ch = curl_init (); curl_setopt ( $ch, CURLOPT_URL, $url ); curl_se ...