Adds latex stuff

This commit is contained in:
Vishakh Kumar 2025-05-10 21:38:34 +04:00
parent 69f4eae688
commit 22988e6de0
31 changed files with 788 additions and 0 deletions

4
.gitattributes vendored
View File

@ -362,3 +362,7 @@
/sem_eds_optical/SEM_Diagrams_Handout_(Concepts).pdf filter=lfs diff=lfs merge=lfs -text
/sem_eds_optical/images/20240310-113907_screenshot.png filter=lfs diff=lfs merge=lfs -text
/sem_eds_optical/vega-manual-2014.pdf filter=lfs diff=lfs merge=lfs -text
/Figures/rk4_0-100_dt-0-0001.png filter=lfs diff=lfs merge=lfs -text
/Heriot_Watt_Thesis_Template.pdf filter=lfs diff=lfs merge=lfs -text
/Untitled.ipynb filter=lfs diff=lfs merge=lfs -text
/references.bib filter=lfs diff=lfs merge=lfs -text

View File

@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}

8
Appendices/Appendix1.tex Normal file
View File

@ -0,0 +1,8 @@
\documentclass[../Thesis]{subfiles}
\begin{document}
\chapter{This is an appendix}
\chaptermark{working with appendices yes}
Appendices, labelled A, B etc., should be treated as additional chapters and should normally follow the main text. Appendices may consist of supporting material of considerable length or of lists, documents, commentaries, tables or other evidence that if included in the main text,would interrupt its flow. The style of appendices must be consistent with the style of the main text. Long appendices may be divided into sections, labelled as Appendix A.1 etc., with corresponding subsection numbering, which must be entered in the table of contents. Alternatively, short appendices may be attached to individual chapters, as an extra section with a heading of style 3.7 Appendix
\end{document}

13
BibMine.bib Normal file
View File

@ -0,0 +1,13 @@
@misc{C05,
author = {Awesome, F.},
year = {2005},
title = {Frank},
keywords={mine}
}
@misc{C06,
author = {Awesome, F.},
year = {2006},
title = {frank, but lowercase},
keywords={mine}
}

39
Bibliography.bib Normal file
View File

@ -0,0 +1,39 @@
@misc{C01,
author = {Anglois, B.},
year = {2005},
title = {This is a paper},
keywords={biblio}
}
@misc{C02,
author = {Ovalie, F.},
year = {2005},
title = {Robert},
keywords={biblio}
}
@misc{C03,
author = {Cuthor, C.},
year = {2003},
title = {Charlie},
}
@misc{C04,
author = {Absol, E.},
year = {2005},
title = {Danger},
}
@misc{C07,
author = {Andre, S.},
year = {2003},
title = {Orange},
keywords={biblio}
}
@misc{C08,
author = {Kor, W.},
year = {2001},
title = {Poule},
keywords={biblio}
}

144
Chapters/Cavitation.tex Normal file
View File

@ -0,0 +1,144 @@
\documentclass[../Thesis]{subfiles}
\begin{document}
\chapter{Introduction}
\section{General Background}
%Analysis: The paragraph effectively introduces the challenge of cavitation erosion in fluid-handling systems and discusses the need for materials with improved resistance or proposes potential mitigation strategies.
%Problem Statement: It starts by clearly stating the prevalence and detrimental effects of cavitation (e.g., material erosion, reduced efficiency, noise, vibration, component failure) in key applications (e.g., pumps, propellers, turbines, valves), establishing the necessity for effective solutions.
%Focus Area / Proposed Solution: It highlights the goal of developing or utilizing materials/coatings/treatments with enhanced cavitation resistance, or introduces specific approaches intended to combat the damage.
%Mechanism: It explains the fundamental mechanism of cavitation damage (e.g., vapor bubble formation and violent collapse, generation of shockwaves and micro-jets) leading to material erosion, and potentially discusses how a proposed solution resists this mechanism.
%Context/Validation: It grounds the issue by referencing specific industries or critical components where cavitation erosion is a significant operational problem (e.g., marine propulsion, hydropower generation, hydraulic machinery, chemical processing) and underscores the importance of resistant materials in these contexts.
%Relevant Properties: It lists specific material characteristics or properties deemed crucial for resisting cavitation erosion (e.g., toughness, hardness, fatigue strength, work-hardening capacity, corrosion resistance, grain structure, phase stability).
%Knowledge Gap: Critically, it may point out limitations in current materials, testing standards, predictive models, or fundamental understanding, such as predicting erosion rates accurately, performance under combined erosion-corrosion conditions, or the behavior of novel materials.
%Call for Research/Development: Consequently, it emphasizes the need for further research, development of new materials/coatings, improved testing protocols, or advanced modeling techniques to better predict and mitigate cavitation erosion.
%Potential Applications: It suggests specific components (e.g., impellers, propellers, valve seats, cylinder liners) or systems that would directly benefit from advancements in cavitation-resistant materials, improving reliability and performance across various sectors.
\section{Stellites}
\section{Objectives and Scope of the Research Work}
\section{Thesis Outline}
\section{Literature Survey}
\section{Cavitation Tests}
\chapter{Analytical Investigations}
\section{Introduction}
\section{Finite Element Model (FEM)}
\section{Model description}
\section{Model Validation}
\section{Result Analysis of Typical Load Case}
\chapter{Experimental Investigations}
\section{Introduction}
\section{X-ray diffraction technique of residual stress measurement}
\section{Surface Roughness Measurements}
\section{Microhardness measurements}
\chapter{Discussion}
\chapter{Cavitation Erosion}
\chaptermark{Cavitation Erosion} % optional for veryy long chapter, you can rename what appear in the header
%% have a mini table of content at the start of the chapter
{
\hypersetup{linkcolor=black}
\minitoc
}
%cite:@Franc2004265, @Romo201216, @Kumar2024, @Kim200685, @Gao2024, @20221xix, @Usta2023, @Cheng2023, @Zheng2022
Cavitation erosion presents a significant challenge in materials degradation in various industrial sectors, including hydroelectric power, marine propulsion, and nuclear systems, stemming from a complex interaction between fluid dynamics and material response \cite{francCavitationErosion2005, romoCavitationHighvelocitySlurry2012}. Hydrodynamically, the phenomenon initiates with the formation and subsequent violent collapse of vapor bubbles within a liquid, triggered by local pressures dropping to the saturated vapor pressure. These implosions generate intense, localized shockwaves and high-speed microjets that repeatedly impact adjacent solid surfaces \cite{gevariDirectIndirectThermal2020}. From a materials perspective, these impacts induce high stresses (100-1000 MPa) and high strain rates, surpassing material thresholds and leading to damage accumulation via plastic deformation, work hardening, fatigue crack initiation and propagation, and eventual material detachment. Mitigating this requires materials capable of effectively absorbing or resisting this dynamic loading, often under demanding conditions that may also include corrosion.
Stellite alloys, cobalt-chromium formulations that contain carbon, tungsten and/or molybdenum, represent a critical class of materials renowned for their wear resistance in such harsh environments \cite{shinEffectMolybdenumMicrostructure2003}. Their performance stems from a composite-like microstructure combining a strong cobalt-rich matrix, strengthened by solid solutions of Cr and W/Mo, with hard carbide precipitates (e.g., M7C3, M23C6) that impede wear and crack propagation \cite{ahmedSlidingWearBlended2021a, crookCobaltbaseAlloysResist1994}.
% Martensitic transformation
Crucially, the cobalt matrix often possesses a low stacking fault energy, facilitating a strain-induced martensitic transformation from a metastable face-centered cubic $\gamma$ phase to a hexagonal close-packed $\epsilon$ phase under the intense loading of cavitation. This transformation is a primary mechanism for dissipating impact energy and enhancing work hardening, contributing significantly to Stellite's characteristic cavitation resistance \cite{huangMicrostructureEvolutionMartensite2023, tawancyFccHcpTransformation1986}.
HIPing is a thermo-mechanical material processing technique which involves the simultaneous application of pressure (up to 200 MPa) and temperature (2000 C), which results in casting densification, porosity closure, and metallurgical bonding. \cite{yuComparisonTriboMechanicalProperties2007}
While commonly applied via casting or weld overlays, processing routes like Hot Isostatic Pressing (HIP) offer potential advantages such as microstructure refinement \cite{stoicaInfluenceHeattreatmentSliding2005} finer microstructures and enhanced fatigue resistance \cite{ahmedInfluenceReHIPingStructure2013, yuComparisonTriboMechanicalProperties2007}.
HIPing of surface coatings results in microstructure refinement, which can yield improved fatigue and fracture resistance.
HIPing leads to carbide refinement, which can yield improved impact toughness \cite{yuInfluenceManufacturingProcess2008}, and reduce carbide brittleness \cite{yuComparisonTriboMechanicalProperties2007}.
Furthermore, HIP facilitates the consolidation of novel 'blended' alloys created from mixed elemental or pre-alloyed powders, providing a pathway to potentially tailor compositions or microstructures for optimized performance. However, despite the prevalence of Stellite alloys and the known influence of processing on microstructure and properties, the specific cavitation erosion behavior of HIP-consolidated Stellites, particularly these blended formulations, remains underexplored in academic literature. Given that erosion mechanisms in Stellites often involve interactions at the carbide-matrix interface \cite{szalaEffectNitrogenIon2021}, understanding how HIP processing and compositional blending affect these interfaces and the matrix's transformative capacity under cavitation, especially when potentially coupled with corrosion, constitutes a critical knowledge gap addressed by this research.
% Need to describe Stellite 1
\section{Stellite 1}
Stellite 1 is a high-carbon and high-tungsten alloy, making it suitable for demanding applications that require hardness & toughness to combat sliding & abrasive wear \cite{crookCobaltbaseAlloysResist1994}
\section{Experimental Test Procedure}
\subsection{Materials and Microstructure}
The HIPed alloy was produced via canning the gas-atomized powders at 1200C and 100 MPa pressure for 4h, while the cast alloys were produced via sand casting.
% Sieve analysis and description of powders
% Refer to Table of chemical compositions of both cast and HIPed alloys.
The microstructure of the alloys were observed via SEM in BSE mode, and the chemical compositions of the identified phases developed in the alloys were determined via EDS as well as with XRD under Cu $K_{\alpha}$ radiation.
Image analysis was also conducted to ascertain the volume fractions of individual phases.
\subsection{Hardness Tests}
The Vickers microhardness was measured using a Wilson hardness tester under loads of BLAH. Thirty measurements under each load were conducted on each sample.
\subsection{Cavitation}
\section{Relationships between cavitation erosion resistance and mechanical properties}
\section{Influence of vibratory amplitude}
% Insert the whole spiel by that French dude about displacement and pressure (and then ruin it)
The pressure of the solution depends on the amplitude of the vibratory tip attached to the ultrasonic device. Under simple assumptions, kinetic energy of cavitation is proportional to the square of the amplitude and maximum hammer pressure is proportional to A.
\begin{align}
x &= A sin(2 \pi f t) \\
v &= \frac{dx}{dt} = 2 \pi f A sin(2 \pi f t) \\
v_{max} &= 2 \pi f A \\
v_{mean} &= \frac{1}{\pi} \int^\pi_0 A sin(2 \pi f t) = 4 f A \\
\end{align}
However, several researchers have found that erosion rates are not proportional to the second power of amplitude, but instead a smaller number.
Thiruvengadum \cite{thiruvengadamTheoryErosion1967} and Hobbs find that erosion rates are proportional to the 1.8 and 1.5 power of peak-to-peak amplitude.
Tomlinson et al find that erosion rate is linearly proportional to peak-to-peak amplitude in copper [3].
Maximum erosion rate is approximately proportional to the 1.5 power of p-p amplitude [4].
The propagation of ultrasonic waves may result in thermal energy absorption or into chemical energy, resulting in reduced power. For the purposes of converting data from studies that do not use an amplitude of 50um, a exponent factor of 1.5 has been applied.
\end{document}

View File

@ -0,0 +1,116 @@
\documentclass[../Thesis]{subfiles}
\begin{document}
\chapter{Introduction}
\chaptermark{Chapter 1 title} % optional for veryy long chapter, you can rename what appear in the header
{
\hypersetup{linkcolor=black}
\minitoc
}
%% have a mini table of content at the start of the chapter
\section{Start}
\subsection{Basic Info}
\subsubsection{This Is A Subsubsection}
Subsubsection should not be numbered, nor indicated in the table of contents. The config options are tocdepth and secnumdepth, you can find them in the config file.
\paragraph{Paragraph Title}
I studied \cite{C08} and that was fun. I also looked at \cite{C02} \footnote{you should do footnotes like this. More details here \url{https://www.overleaf.com/learn/latex/Footnotes}}.
I also wrote this \cite{C05}. But the most fun thing was reading \cite{C01}
URI should be included like this \url{https://github.com/jackred/Heriot_Watt_Thesis_Template}.
\subsection{Equation}
Equations placed on separate lines from the text should be numbered whether or not they are referred to in the text. Numbering should appear in round brackets at the right hand side of the page and be ordered consecutively either throughout the thesis as (1) etc, or in each chapter (1.1) etc. Equations should be referred to in the text as equation(1) etc.\par
\bigskip
Believe it or not, this is the equation for the canonical version of PSO, using the inertia factor, first proposed in 1998.
\begin{equation}
V_{i} = wV_{i} + c_{1} * U(0,1) * (P_{i} - X_{i}) + c_{2} * U(0,1) * (L_{i} - X_{i})
\label{eqn:velocityInertia}
\end{equation}
% you refer an equation like this
And here you have the constriction factor equation, which have the same role as the inertia factor defined in \eref{eqn:velocityInertia}, but is used differently. Proposed in 1999.
\begin{equation}
\chi = \dfrac{2}{|2 - \phi - \sqrt{\phi^{2} - 4\phi}|}
\label{eqn:velocityConstriction}
\end{equation}
Was I just lazy and copied the equation of my Master Thesis? Not at all. Look, here is the gravity equation for PSO2011, proposed, as the name suggest, in 2011.
\begin{equation}
G_{i} = \dfrac{X_{i} + (X_{i}+U(0,1)c(P_{i}-X_{i})) + (X_{i}+U(0,1)c(L_{i}-X_{i}))}{3}
\label{eqn:gravityVelocity2011}
\end{equation}
\clearpage % aesthetic purpose
\subsection{Tables}
Tables, figures etc. shall be numbered either consecutively throughout the thesisTable 1, Figure 1 etc., or within individual chapters Chapter Table1.1, but not within sections or subsections. With in the text tables should be referred to as table 1etc.
\begin{table}[H]
\centering
\begin{tabular}{llllll}
D10 & min & max & median & std & average \\
f1 & 0.00E+00 & 0.00E+00 & 0.00E+00 & 0.00E+00 & 0.00E+00 \\
f3 & 4.40E-02 & 1.37E+08 & 3.49E+05 & 2.18E+07 & 6.46E+06 \\
f8 & 2.01E+01 & 2.05E+01 & 2.03E+01 & 8.44E-02 & 2.03E+01 \\
f9 & 1.51E+00 & 6.96E+00 & 4.54E+00 & 1.21E+00 & 4.53E+00 \\
f15 & 1.41E+02 & 1.04E+03 & 7.16E+02 & 2.26E+02 & 6.64E+02 \\
f20 & 1.26E+00 & 3.82E+00 & 3.02E+00 & 5.67E-01 & 2.93E+00 \\
f21 & 1.00E+02 & 4.00E+02 & 4.00E+02 & 1.05E+02 & 3.33E+02 \\
f22 & 8.79E+01 & 8.30E+02 & 4.83E+02 & 2.00E+02 & 4.91E+02 \\
f25 & 2.04E+02 & 2.23E+02 & 2.15E+02 & 3.73E+00 & 2.15E+02
\end{tabular}
\rule{35em}{0.5pt}
\caption[Example table]{Summary Statistics for the 10 dimensional case of PSO 2007 with a ring neighborhood of 4. I know you don't know what it means. But at least you have an example of a table. More info here \url{https://www.overleaf.com/learn/latex/Tables}}
\label{tab:PSO_2007_D10_R4}
\end{table}
\subsection{Figures}
Because I think you are very interested in PSO (or I am just very lazy) here is a nice figure explaining how PSO 2006 works.
\begin{figure}[H]
\centering
\includegraphics[]{Figures/pso2006.png}
\rule{35em}{0.5pt}
\caption[SPSO 06/07 movement]{SPSO 2006 and 2007 particle's position update. $X'_{i}$ and $X"_{i}$ are temporary point to explain the second and third terms of equation \ref{eqn:velocityInertia}.}
\label{fig:schemaPSO2006Update}
\end{figure}
\clearpage % aesthetic purpose
And while we are at it, look at the 2011 version, that you can't probably understand without the context, but eh, it's a figure to illustrate how to put some. We can see it is different than \fref{fig:schemaPSO2006Update}
\begin{figure}[H]
\centering
\includegraphics[]{Figures/pso2011.png}
\rule{35em}{0.5pt}
\caption[SPSO 2011 movement]{SPSO 2011 particle's position update. $X'_{i}$ is generated inside the hyper-sphere of center $G_{i}$.}
\label{fig:schemaPSO2011Update}
\end{figure}
I placed my figure right after the text, but you will usually use other option to place them, such as \textit{htpb}. More info \url{https://www.overleaf.com/learn/latex/Positioning_of_Figures}.
\begin{figure}[H]
\centering
\rotatebox{90}{\includegraphics[width=22cm]{Figures/rk4_0-100_dt-0-0001}}
\rule{35em}{0.5pt}
\caption[Sideways picture]{How to put a very big picture sideways. It is in French but who cares?}
\label{fig:veryBigFigure}
\end{figure}
\begin{landscape}
\begin{figure}[!h]
\centering
\includegraphics[width=\linewidth]{Figures/rk4_0-100_dt-0-0001}
\caption{How to put a figure in landscape instead}
\label{fig:verybigfigure2}
\end{figure}
\end{landscape}
\end{document}

22
Chapters/Chapter2.tex Normal file
View File

@ -0,0 +1,22 @@
\documentclass[../Thesis]{subfiles}
\begin{document}
\chapter{Some Very Informative Text}
\chaptermark{Title of The Chapter}
{
\hypersetup{linkcolor=black}
\minitoc
}
\section{Information}
\subsection{This is a test}
Let's just have the equation of Charged PSO to see how equation are numbered through Chapter (spoil, per chapter):
\begin{equation}
V_{i} = wV_{i} + c_{1} * U(0,1) * (P_{i} - X_{i}) + c_{2} * U(0,1) * (L_{i} - X_{i}) + a_{i} \label{eqn:velocityChargedUpdate}
\end{equation}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Congue eu consequat ac felis donec et odio pellentesque. Sem fringilla ut morbi tincidunt augue interdum. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Urna condimentum mattis pellentesque id nibh tortor. Fringilla est ullamcorper eget nulla facilisi etiam dignissim. Vel turpis nunc eget lorem dolor sed viverra ipsum nunc. Volutpat est velit egestas dui id ornare arcu odio. Pretium nibh ipsum consequat nisl vel pretium lectus. Aenean et tortor at risus viverra adipiscing at. Vivamus arcu felis bibendum ut tristique et egestas quis. Sollicitudin aliquam ultrices sagittis orci. Vulputate sapien nec sagittis aliquam malesuada bibendum.
\end{document}

16
Chapters/Chapter3.tex Normal file
View File

@ -0,0 +1,16 @@
\documentclass[../Thesis]{subfiles}
\begin{document}
\chapter{Conclusion}
\chaptermark{This is the end, skyfall}
{
\hypersetup{linkcolor=black}
\minitoc
}
\section{This is the end}
You have to finish your Thesis. I know it's sad, but all things come to end.
\end{document}

BIN
Figures/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
Figures/pso2006.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Figures/pso2011.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Figures/rk4_0-100_dt-0-0001.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Heriot_Watt_Thesis_Template.pdf (Stored with Git LFS) Normal file

Binary file not shown.

131
I-config.tex Normal file
View File

@ -0,0 +1,131 @@
%% prefer than direct use in usepackage geometry
%% A4 layout in point is % 595x842
%% default value
\setlength{\hoffset}{0pt}
\setlength{\voffset}{0pt}
%% height
%% 72 - 60 + 20 + 25 = 57
\setlength{\topmargin}{-60pt}
\setlength{\headheight}{20pt}
\setlength{\headsep}{25pt}
\setlength{\footskip}{30pt}
%% width
%% 72 + 32 + 10 = 114pt = 40mm
\setlength{\oddsidemargin}{32pt}
\setlength{\evensidemargin}{32pt}
\setlength{\marginparsep}{10pt}
%% size text
\setlength{\textheight}{728pt}
\setlength{\textwidth}{425pt}
%% style
%% preliminary, just roman pagination + empty header
\fancypagestyle{preliminary}{
\renewcommand{\headrulewidth}{0pt}
\fancyhead[RCL]{}
\pagenumbering{Roman}
}
%% chapter/classic text style
\fancypagestyle{chapter}{
%% title of the chapter, left header, no uppercase, 10 pt, italics, no bold
\fancyhead[L]{\normalfont\itshape\fontsize{10pt}{12pt}\selectfont\nouppercase{\leftmark}}
\fancyhead[R]{}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}
\pagenumbering{arabic}
}
%% define length and scaling for baseline
\newcommand{\headingBaseline}{12}
\newcommand{\headingBaselineDiv}{10}
\newlength{\chapterFontSize}
\newlength{\sectionFontSize}
\newlength{\subsectionFontSize}
\newlength{\chapterBaseline}
\newlength{\sectionBaseline}
\newlength{\subsectionBaseline}
%% change those value if you want to change the chapter/section/subsection font size
\setlength{\chapterFontSize}{14pt}
\setlength{\sectionFontSize}{12pt}
\setlength{\subsectionFontSize}{12pt}
%% automatic computation for baseline, rule of thumb is 1.2
\setlength{\chapterBaseline}{ \chapterFontSize * \headingBaseline / \headingBaselineDiv}
\setlength{\sectionBaseline}{ \sectionFontSize * \headingBaseline / \headingBaselineDiv}
\setlength{\subsectionBaseline}{ \subsectionFontSize * \headingBaseline / \headingBaselineDiv}
%% headings
%% Chapter, 14-point, bold
\titleformat{\chapter}[display]
{\normalfont\bfseries\fontsize{\chapterFontSize}{\chapterBaseline}\selectfont}{\chaptertitlename\ \thechapter}{14pt}{}
%% capitalised initial letter,
% \titleformat{\chapter}[display]
% {\normalfont\bfseries\fontsize{\chapterFontSize}{\chapterBaseline}\selectfont}{\chaptertitlename\ \thechapter}{14pt}{\capitalisewords}
%% left|above|below
\titlespacing{\chapter}{0pt}{10pt}{25pt}
%% Section, 12-point
\titleformat{\section}[hang]
{\normalfont\bfseries\fontsize{\sectionFontSize}{\sectionBaseline}\selectfont}{\thesection}{5pt}{}
%% capitalised initial letter
% \titleformat{\section}[hang]
% {\normalfont\bfseries\fontsize{\sectionFontSize}{\sectionBaseline}\selectfont}{\thesection}{5pt}{\capitalisewords}
%% left|above|below
\titlespacing{\section}{0pt}{25pt}{15pt}
%% Subsection, 12-point, italic
\titleformat{\subsection}[hang]
{\normalfont\bfseries\itshape\fontsize{\subsectionFontSize}{\subsectionBaseline}\selectfont}{\thesubsection}{5pt}{}
% \titleformat{\subsection}[hang]
% {\normalfont\bfseries\itshape\fontsize{\subsectionFontSize}{\subsectionBaseline}\selectfont\MakeLowercase}{\thesubsection}{5pt}{\makefirstuc}
%% left|above|below
\titlespacing{\subsection}{0pt}{20pt}{10pt}
%% table of content
\renewcommand{\contentsname}{Table of Contents}
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{2}
%% list of figure
\renewcommand*\listfigurename{Figure table}
%% init gloassaries
%% noidx cause otherwise we have to do a normal glossary, compile, then remove it so it is cached
%% because we only use acronym
\makenoidxglossaries
%% bibliography config
%% https://tex.stackexchange.com/a/6977
\DeclareBibliographyCategory{cited}
\AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}}
\addbibresource{Bibliography.bib}
\addbibresource{BibMine.bib}
\addbibresource{references.bib}
%% hyperref setup
\hypersetup{
colorlinks = true,
linkcolor = blue, % normal internal links, like ref, can be black tbh
citecolor = blue, % bibliographical links
urlcolor = blue, % linked urls
filecolor = black % url which open local files
}
%% modified reference function
%% https://tex.stackexchange.com/a/438998
\newcommand\eref[1]{equation~(\ref{#1})}
\newcommand\tref[1]{table~\ref{#1}}
\newcommand\fref[1]{figure~\ref{#1}}
%% 1.5 line spacing
\setstretch{1.5}

2
I-glossary.tex Normal file
View File

@ -0,0 +1,2 @@
\newacronym{gcd}{GCD}{Greatest Common Divisor}
\newacronym{lcm}{LCM}{Least Common Multiple}

22
I-info.tex Normal file
View File

@ -0,0 +1,22 @@
%% The title of Thesis
\newcommand{\thesisTitle}{How to make a thesis following the guideline with more text to have two lines}
%% Number of Volume, if more than one
%% not sure how it works out with latex tbh
\newcommand{\numberVolume}{2}
%% The number of this volume
\newcommand{\actualVolume}{1}
%% The author's name (you)
\newcommand{\authorName}{A Good Name}
%% Distinctions/Qualifications if desired
\newcommand{\distinction}{The awesome}
%% The qualification
\newcommand{\degreeQualification}{Doctor of Philosophy}
%% The institution
\newcommand{\institution}{Some weird institute no one ever heard about}
%% The school
\newcommand{\school}{School of Latex and Writing}
\newcommand{\university}{Heriot-Watt University}
%% Month of submission
\newcommand{\monthDate}{September}
%% Year of submission
\newcommand{\yearDate}{2042}

1
I-packages-2.tex Normal file
View File

@ -0,0 +1 @@
\usepackage{subfiles}

24
I-packages.tex Normal file
View File

@ -0,0 +1,24 @@
\usepackage{graphicx} % include graphics
\usepackage{fancyhdr} % layout
\usepackage[english]{babel}
%\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} % font
\usepackage{csquotes}
%\usepackage[defernumbers=true, sorting=none]{biblatex}
\usepackage[defernumbers=true, sorting=none, style=authoryear, backend=biber, maxbibnames=999]{biblatex}
\usepackage{setspace} % spacing
% \usepackage[left=4cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage{mathptmx} % looks like times new roman
\usepackage{slantsc}
\usepackage{titlesec}
\usepackage{mfirstuc}
\usepackage{calc}% http://ctan.org/pkg/calc
\usepackage[acronym, nonumberlist]{glossaries} % https://www.overleaf.com/learn/latex/Glossaries
\usepackage{hyperref} % https://ctan.org/pkg/hyperref
\usepackage{pdfpages}
\usepackage{float}
\usepackage{minitoc}
\usepackage{pdflscape}

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2021 Dorian Gouzou
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -0,0 +1,46 @@
\begin{center}
\vspace*{15pt}\par
\setstretch{1}
% \hrule
% \vspace{10pt}\par
\begin{spacing}{1.8}
%% you can replace by \MakeUppercase if you want uppercase
{\Large\bfseries\MakeLowercase{\capitalisewords{\thesisTitle}}}\\
\end{spacing}
% \hrule
% This thesis is composed of \numberVolume volumes. This one is the number \actualVolume.
\vspace{40pt}\par
\includegraphics[width=140pt]{Figures/logo.png}\\
\vspace{40pt}\par
{\itshape\fontsize{15.5pt}{19pt}\selectfont by\\}\vspace{15pt}\par
{
\Large \authorName
% , \distinction
}\vspace{55pt}\par
{
\large Submitted for the degree of \\ \vspace{8pt} \Large\slshape\degreeQualification\\
}
\vspace{35pt}\par
{\scshape\setstretch{1.5} \institution\\ \school\\ \university\\
}
\vspace{50pt}\par
{\large \monthDate\ \yearDate}
\vfill
\begin{flushleft}
\setstretch{1.4}\small
The copyright in this thesis is owned by the author. Any quotation from the thesis or use of any of the information contained in it must acknowledge this thesis as the source of the quotation or information.
\end{flushleft}
\end{center}

View File

@ -0,0 +1,7 @@
\begin{center}
\LARGE\textbf {Abstract}
\end{center}
\vspace{5pt}
\noindent
In accordance with the Academic Regulations the thesis must contain an abstract preferably not exceeding 200 words, bound in to precede the thesis. The abstract should appear on its own, on a single page. The format should be the same as that of the main text. The abstract should provide a synopsis of the thesis and shall state clearly the nature and scope of the research undertaken and of the contribution made to the knowledge of the subject treated. There should be a brief statement of the method of investigation where appropriate, an outline of the major divisions or principal arguments of the work and a summary of any conclusions reached. The abstract must follow the Title Page.

View File

@ -0,0 +1,7 @@
\begin{center}
\LARGE\textbf {Dedication}
\end{center}
\vspace{5pt}
If a dedication is included then it should be immediately after the Abstract page.\par
I don't what it is actually.

View File

@ -0,0 +1,6 @@
\begin{center}
\LARGE\textbf {Acknowledgements}
\end{center}
\vspace{5pt}
\noindent I wanna thanks all coffee and tea manufacturers and sellers that made the completion of this work possible.

Binary file not shown.

View File

@ -0,0 +1,6 @@
Declaration statement
https://www.hw.ac.uk/students/studies/examinations/thesis.htm
This form should be placed after the Acknowledgements and bound into every copy of the thesis. Please note that the Student Service Centre will be unable to accept your thesis if the form is not bound into each submitted copy

Binary file not shown.

119
Thesis.tex Normal file
View File

@ -0,0 +1,119 @@
%%%%
%% This Source Code Form is subject to the terms of the MIT License.
%% If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/mit
%%
%% Last update: 2024/03/11
%%
%% author: Dorian Gouzou <jackred@tuta.io>
%% repository hosted on github at https://github.com/jackred/Heriot_Watt_Thesis_Template
%%%%
\documentclass[12pt,a4paper]{report}
\input{I-packages}
\input{I-config}
\input{I-info}
\input{I-glossary}
\input{I-packages-2} % some package need to be loaded last in preamble
\begin{document}
\dominitoc
\pagestyle{empty}
\input{Preliminaries/1-titlepages}
\clearpage
% % remove this line if you don't want pagination on preliminary pages
% % also read the comment below, for table of content and other
% \pagestyle{preliminary}
\input{Preliminaries/2-abstract}
\clearpage
%\input{Preliminaries/3-dedication}
%\clearpage
\input{Preliminaries/4-acknowledgments}
\clearpage
% % read about declaration in file
% % \input{Preliminaries/5-declaration}
\includepdf[pages=-]{Preliminaries/5-declaration.pdf}
{
\setstretch{1}
\hypersetup{linkcolor=black}
\tableofcontents
\listoftables % optional
\listoffigures % optional
\glsaddall % this is to include all acronym. You can do a sort of citation for acronym and include only the one you use, Look at the glossary package for details.
\printnoidxglossary[type=\acronymtype, title=Glossary] % optional
%% put your publications in BibMine.bib
%% They will be displayed here
\begin{refsection}[BibMine.bib]
\DeclareFieldFormat{labelnumberwidth}{#1}
\nocite{*}
\printbibliography[omitnumbers=true,title={List of Publications}]
\end{refsection}
}
%% if you don't want pagination you need to use this commented part instead of the one above for the table of content/list of figure/etc
%% this is because the toc is defined in an annoying way, especially multi page one
%% solution found here: https://tex.stackexchange.com/a/173423
% {
% \hypersetup{linkcolor=black}
% \pagestyle{empty} % Removes numbers from middle pages.
% \fancypagestyle{plain} % Re-definition removes numbers from first page.
% {
% \fancyhf{}% % Clear all header and footer fields.
% \renewcommand{\headrulewidth}{0pt}% Clear rules (remove these two lines if not desired).
% \renewcommand{\footrulewidth}{0pt}%
% }
% \tableofcontents
% \thispagestyle{empty}
% \listoftables %optional
% \thispagestyle{empty}
% \listoffigures %optional
% \thispagestyle{empty}
% \glsaddall % this is to include all acronym. You can do a sort of citation for acronym and include only the one you use, Look at the glossary package for details.
% \printnoidxglossary[type=\acronymtype, title=Glossary] % optional
% \thispagestyle{empty}
% %% put your publications in BibMine.bib
% %% They will be displayed here
% \begin{refsection}[BibMine.bib]
% \DeclareFieldFormat{labelnumberwidth}{#1}
% \nocite{*}
% \printbibliography[omitnumbers=true,title={List of Publications}]
% \end{refsection}
% \thispagestyle{empty}
% }
\clearpage
\pagestyle{chapter}
\subfile{Chapters/Cavitation}
\subfile{Chapters/Chapter1-Introduction}
\subfile{Chapters/Chapter2}
\subfile{Chapters/Chapter3}
\appendix
\subfile{Appendices/Appendix1}
%% add publications in pdf format
\clearpage
\stepcounter{chapter}
\addcontentsline{toc}{chapter}{\thechapter\ \ \ \ Publication 1}
\includepdf[pages=-]{Publications/Publication1.pdf}
%% using biblatex rather than bibtex to easily have further reading and references
%% you need to remove the cache file when adding files to the bibliography
%% Log and output files > trash icons in Overleaf
%% sorted by citation
\label{Bibliography}
\printbibliography[title={References}, heading=bibintoc, resetnumbers=true]
%% sorted by alphabetical order, using author name
%\begin{refsection}
%\DeclareFieldFormat{labelnumberwidth}{#1}
%\nocite{*}
%\printbibliography[title={Bibliography}, notcategory=cited, omitnumbers=true, heading=bibintoc]
%\end{refsection}
\end{document}

BIN
Untitled.ipynb (Stored with Git LFS) Normal file

Binary file not shown.

16
cavitation_models.org Normal file
View File

@ -0,0 +1,16 @@
#+TITLE: Cavitation Models
#+AUTHOR: Vishakh Pradeep Kumar
karimiPhenomenologicalModelCavitation1987
$$ \epsilon (x) = \epsilon_s {\left( 1 - \frac{x}{L} \right)}^{\theta} $$
Parameters:
maximum width of work-hardening $L$
shape coefficient $\theta$

BIN
references.bib (Stored with Git LFS) Normal file

Binary file not shown.