Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix images links in docs #440

Merged
merged 3 commits into from
Mar 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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