Skip to content

Commit

Permalink
Merge pull request #440 from ONSAS/jorge
Browse files Browse the repository at this point in the history
fix images links in docs
  • Loading branch information
jorgepz committed Mar 27, 2022
2 parents 20dc47c + 93b7f33 commit 5caa6f8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 28 deletions.
5 changes: 4 additions & 1 deletion examples/springMass/springMass.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
%md# Spring-mass system example
%md
%md[![Octave script](https://img.shields.io/badge/script-url-blue)](https://github.com/ONSAS/ONSAS.m/blob/master/examples/springMass/springMass.m)
%md
%mdIn this example a simple spring-mass system is considered. The notation and the analytical solution are based on chapter 3 from
%mdthe book Dynamics of Structures by Ray W. Clough and Joseph Penzien, Third Edition, 2003.
%md
Expand Down Expand Up @@ -143,6 +146,6 @@
%print('../../docs/src/assets/springMassCheck.png','-dpng')
%md
%md```@raw html
%md<img src="../assets/springMassCheck.png" alt="plot check" width="500"/>
%md<img src="../../assets/springMassCheck.png" alt="plot check" width="500"/>
%md```
%md
22 changes: 5 additions & 17 deletions examples/staticVonMisesTruss/onsasExample_staticVonMisesTruss.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,9 @@
%mdThe structural model is formed by two truss elements with length $L$ as it is shown in the figure, with node $2$ submitted to a nodal load $P$ and restrained to move in the $x-z$ plane, and nodes $1$ and $3$ fixed.
%md
%md```@raw html
%md<img src="../assets/vonMisesTruss.svg" alt="structure diagram1" width="500"/>
%md<img src="../../assets/vonMisesTruss.svg" alt="von-mises truss structure diagram" width="500"/>
%md```
%md```@raw html
%md<img src="../../assets/vonMisesTruss.svg" alt="structure diagram2" width="500"/>
%md```
%md```@raw html
%md<img src="assets/vonMisesTruss.svg" alt="structure diagram3" width="500"/>
%md```

%md```@raw html
%md<img src="https://raw.githubusercontent.com/ONSAS/ONSAS.m/master/docs/src/assets/vonMisesTruss.svg" alt="structure diagram4" width="500"/>
%md```

%md
%md## Analytic solutions
%md
%mdThe solutions for the nonlinear cases are developed in section 2.3 of [(Bazzano and Pérez Zerpa, 2017)](https://www.colibri.udelar.edu.uy/jspui/bitstream/20.500.12008/22106/1/Bazzano_P%c3%a9rezZerpa_Introducci%c3%b3n_al_An%c3%a1lisis_No_Lineal_de_Estructuras_2017.pdf#section.2.3). The expressions obtained for different strain measures are:
Expand Down Expand Up @@ -174,11 +164,11 @@
difLoadGreenNRAL = analyticLoadFactorsNRALGreen' - loadFactorsNRALGreen ;
%md## Verification
%md the numerical resolution is validated for both strain measures.

%md
verifBoolean = ( ( norm( difLoadEngRot ) / norm( loadFactorsNREngRot ) ) < 1e-4 ) ...
&& ( ( norm( difLoadGreen ) / norm( loadFactorsNRGreen ) ) < 1e-4 ) ...
&& ( ( norm( difLoadGreenNRAL ) / norm( loadFactorsNRALGreen ) ) < 1e-4 ) ;

%md
%md### Plots
%md and solutions are plotted.
lw = 2.0 ; ms = 11 ; plotfontsize = 18 ;
Expand All @@ -198,8 +188,6 @@
%print('../../docs/src/assets/vonMisesTrussCheck.png','-dpng')
%md
%md```@raw html
%md<img src="../assets/vonMisesTrussCheck.png" alt="plot check" width="500"/>
%md<img src="../../assets/vonMisesTrussCheck.png" alt="plot check" width="500"/>
%md```
%md
%md![](assets/vonMisesTrussCheck.png)
%md
14 changes: 4 additions & 10 deletions examples/uniaxialExtension/uniaxialExtension.m
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
%md# Uniaxial Extension Solid example
%md---
%md
%md[![Octave script](https://img.shields.io/badge/script-url-blue)](https://github.com/ONSAS/ONSAS.m/blob/master/examples/uniaxialExtension/uniaxialExtension.m)
%md
%mdIn this tutorial example an elastic solid is submitted to a uniaxial extension test. The problem is inspired by Exercise 4 from section 6.5 in (Holzapfel,2000). The geometry and tension applied are shown in the figure, where the $Lx$, $Ly$ and $Lz$ are the dimensions and the tension $p$ is applied on the face $x=Lx$, as nominal traction (see (Holzapfel,2000)).
%md
%md```@raw html
%md<img src="https://raw.githubusercontent.com/ONSAS/ONSAS_docs/master/docs/src/diagramSolidUniaxialHTML.svg" alt="structure diagram" width="500"/>
%md```
%md
%md```@raw latex
%md\begin{center}
%md\def\svgwidth{0.7\textwidth}
%md\input{diagramSolidUniaxialPDF.pdf_tex}
%md\end{center}
%md<img src="../../assets/diagramSolidUniaxial.svg" alt="structure diagram" width="500"/>
%md```
%md
%md## Analytic solution
%md---
%md
%mdLet us consider that a uniform deformation is produced, with a nonzero axial stretch $\alpha$ and nonzero transversal stretch $\beta$. The corresponding deformation gradient and Green-Lagrange strain tensor are given by:
%md```math
%md\textbf{F} = \left[ \begin{matrix} \alpha & 0 & 0 \\ 0 & \beta & 0 \\ 0 & 0 & \beta \end{matrix} \right]
Expand Down

0 comments on commit 5caa6f8

Please sign in to comment.