Remove spaces from folders

This commit is contained in:
Eric 2026-03-16 08:46:28 -06:00
commit 1fe79c2a95
4 changed files with 319 additions and 0 deletions

View file

@ -0,0 +1,171 @@
\documentclass[11pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage[bookmarks=true]{hyperref}
\hypersetup{
pdftitle={},
pdfauthor={},
pdfkeywords={},
bookmarksnumbered,
breaklinks=true,
urlcolor=blue,
citecolor=black,
colorlinks=true,
linkcolor=black,
}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{booktabs}
\usepackage{caption}
\captionsetup[table]{skip=1ex}
\usepackage{graphicx}
%\graphicspath{{figures/}}
\usepackage{parskip}
%\usepackage{indentfirst}
%\setlength{\parindent}{2em}
\pagestyle{plain}
\begin{document}
% Header text
\hspace{-0.025\textwidth}\parbox[b]{1.05\textwidth}{\centering \bfseries
\vspace{-2\baselineskip} % I move it up a little bit above the 1" margins
{\Large \uppercase{CHEG 231 Chemical Engineering Thermodynamics}}\\
{\large {Department of Chemical and Biomolecular Engineering}}\\
{\large {University of Delaware}}
}
\vskip 2\baselineskip
\begin{center}
{\uppercase{\Large Math reminders}\par}
%{\itshape Eric\ M.\ Furst\par}
{\itshape \today \par}
\vskip \baselineskip
%{\large Nome: \hrulefill\hspace{1em}{\small RA}: \rule{25mm}{0.4pt}}
\vskip \baselineskip
%\begin{minipage}{10cm}
%\itshape\small\emph{Instruções:} Resolva todas as questões.
%Mostre todo o seu trabalho e considerações feitas.
%Inclua unidades apropriadas para todas as respostas e direções para grandezas vetoriais.
%Integridade acadêmica é esperada de todos.
%\end{minipage}
\end{center}
%Grupo (nome e {\small RA}):\\\answerbox{\linewidth}{25mm}
%f(x) = \frac{1}{x}
\section{A few common integrals}
Basic integration and integrals involving functions like $\frac{1}{x}$ show up frequently in thermodynamics.
\begin{center}
\renewcommand{\arraystretch}{1.5}
\setlength{\tabcolsep}{1em}
\begin{tabular}{cc}\\
%\multicolumn{4}{c}{Fourier transforms} \\
$f(x)$ & $F(x) = \int f(x) dx$ \\
\hline
$x$ & $\frac{1}{2}x^2$ \\
$\frac{1}{x}$ & $\ln x$ \\
$e^x$ & $e^x$ \\
%\multicolumn{4}{l}{\footnotesize $^1${$H(t)$ is the Heaviside step function.}} \\
%\multicolumn{4}{l}{\footnotesize $^2${$\Gamma(x) = \int^\infty_0 e^r r^{x-1}dr$ is the Gamma function. If $x$ is a positive integer, then $\Gamma(x+1) = x!$}} \\
\end{tabular}
\end{center}
\vspace{2\baselineskip}
Remember that the indefinite integral of a function includes a constant term, $\int f(x) dx = F(x) + c$ were $f(x) = \frac{d}{dx}F(x)$.
The definite integral is written:
\begin{equation}
\int_a^b f(x) dx= F(b) - F(a) \nonumber.
\end{equation}
Finally, we may see integration by parts in derivations. Recall that
\begin{equation}
\int u\,dv = uv + \int v\,du \nonumber.
\end{equation}
\section{Differentiation, too}
We will review plenty of differentiation when we discuss partial derivatives. We also write equations in a differential form and will solve simple differential equations. Be sure to review and practice the product rule and chain rule. A common mistake is to accidentally treat variables as constants and {\it vice versa}.
\begin{center}
\renewcommand{\arraystretch}{1.5}
\setlength{\tabcolsep}{1em}
\begin{tabular}{c}\\
$\frac{d}{dx}(cu) = c\frac{du}{dx}$, where $c$ is a constant\\
\end{tabular}
\end{center}
Contrast that to the case below when $u$ and $v$ are both functions of $x$. We must apply the \emph{product rule}:
\begin{equation}
\frac{d}{dx}(uv) = v\frac{du}{dx} + u\frac{dv}{dx} \nonumber
\end{equation}
Finally, review the other rules of differentiation, including the product rule and the chain rule,
\begin{equation}
\frac{d}{dx}(u + v) = \frac{du}{dx} + \frac{dv}{dx} \nonumber
\end{equation}
\begin{equation}
\frac{d}{dx}\left ( \frac{u}{v} \right ) = \frac{v\frac{du}{dx} - u\frac{dv}{dx}}{v^2} \nonumber
\end{equation}
\begin{equation}
\frac{d}{dx}u(v) = \frac{du}{dv}\frac{dv}{dx} \nonumber
\end{equation}
\begin{equation}
\frac{1}{y}\frac{dy}{dx} = \frac{d \ln y}{dx} \nonumber
\end{equation}
\begin{equation}
d\left ( \frac{1}{x} \right ) = - \frac{1}{x^2} dx \nonumber
\end{equation}
\section{Logarithmic functions}
Here, $\ln x$ is the natural logarithm ($\log_e x$). Most of the time when we see and use the function $\log$, we are referring to the logarithm with base 10, or $\log_{10}$.
\begin{center}
\renewcommand{\arraystretch}{1.5}
\setlength{\tabcolsep}{1em}
\begin{tabular}{c}\\
$\ln A + \ln B =$ $\ln (AB)$ \\
$\ln A - \ln B =$ $\ln \frac{A}{B}$ \\
$\ln x^a = a\ln x$\\
%\end{tabular}
%\begin{tabular}{c}\\
$\ln e^x = x\ln e = x$ \\
$\ln 1 = \ln e^0 = 0\times \ln e = 0$\\
$\ln e = 1$\\
\end{tabular}
\end{center}
\section{Exponential functions}
An exponential function is Euler's number $e$ raised to the $x$ power, $f(x) = e^x$. We've noted the relationship between the natural logarithm and $e$, which actually serves as a definition of $\ln x$: $\ln x = y \textrm{\ if and only if\ } e^y = x$.
\begin{center}
\renewcommand{\arraystretch}{1.5}
\setlength{\tabcolsep}{1em}
\begin{tabular}{c}\\
$e^0 = 1$\\
$e^ae^b = e^{a+b}$\\
$\frac{d}{dx}e^x = e^x$\\
\end{tabular}
\end{center}
\section{Taylor series expansion}
The Taylor series is often used to linearize a function. Given the function $f(x)$, we can write
\begin{equation}
f(x) \approx f(x_0) + (x-x_0)f'(x_0) + ... \nonumber
\end{equation}
%\usepackage[style=unsrt, citestyle=unsrt]{biblatex}
%\bibliography{references}
\end{document}

View file

@ -0,0 +1,43 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 29 12:12:56 2025
Plots the water, acetone and n-octane ternary diagram at 25 °C as calculated
by Aspen Plus.
@author: lobo
"""
import numpy as np
import matplotlib.pyplot as plt
import mpltern
data_set = np.loadtxt("WaterAcetoneOctaneEquil.csv", delimiter = ',', skiprows=2)
water = data_set[:,1]
acetone = data_set[:,2]
octane = data_set[:,3]
ax = plt.subplot(projection='ternary')
ax.plot(acetone, octane, water)
#Tie Lines
ax.plot([0,0],[0.9989768, 2.43E-06], [0.00102325, 0.9999976], 'b')
ax.plot([0.1248013,0.1403329],[0.8706273,0.000389155],[0.00457142,0.8592779], 'r')
ax.plot([0.2102607,0.3371009],[0.7798967,0.00720065],[0.00984261,0.6556985], 'k')
ax.plot([0.2552231,0.5722035],[0.731291,0.055398],[0.0134858,0.3723985], 'g')
ax.plot([0.4018703,0.6527512],[0.5729588,0.2466414],[0.0251709,0.1006074], 'c')
ax.grid()
ax.set_tlabel("Acetone")
ax.set_llabel("n-Octane")
ax.set_rlabel("Water")
plt.show()

View file

@ -0,0 +1 @@
NUMBER,MOLEFRAC WATER,MOLEFRAC ACETO-01,MOLEFRAC N-OCT-01 ,,, 1,0.00102325,0,0.9989768 1,0.00313195,0.0887932,0.9080748 1,0.00581823,0.1496758,0.844506 1,0.00844799,0.1915717,0.7999803 1,0.0102965,0.2160187,0.7736848 1,0.0114953,0.2308099,0.7576948 1,0.0126262,0.2446168,0.7427569 1,0.0141047,0.2629019,0.7229934 1,0.016268,0.2900783,0.6936536 1,0.0195717,0.3322021,0.6482261 1,0.0251668,0.4018477,0.5729855 1,0.0273743,0.4267799,0.5458458 1,0.031737,0.4666277,0.5016353 1,0.0689948,0.6182799,0.3127253 1,0.0849716,0.639267,0.2757613 1,0.1006058,0.6527549,0.2466392 1,0.1713427,0.6670415,0.1616157 1,0.2516352,0.6426541,0.1057108 1,0.3384626,0.5947338,0.0668036 1,0.4302309,0.5301969,0.0395722 1,0.5263484,0.4525658,0.0210858 1,0.626094,0.3644045,0.00950154 1,0.7256479,0.2709878,0.00336432 1,0.8196334,0.1795186,0.000847999 1,0.9070264,0.0928556,0.000117929 1,0.9999976,0,2.43E-06
1 NUMBER MOLEFRAC WATER MOLEFRAC ACETO-01 MOLEFRAC N-OCT-01 1 0.00102325 0 0.9989768 1 0.00313195 0.0887932 0.9080748 1 0.00581823 0.1496758 0.844506 1 0.00844799 0.1915717 0.7999803 1 0.0102965 0.2160187 0.7736848 1 0.0114953 0.2308099 0.7576948 1 0.0126262 0.2446168 0.7427569 1 0.0141047 0.2629019 0.7229934 1 0.016268 0.2900783 0.6936536 1 0.0195717 0.3322021 0.6482261 1 0.0251668 0.4018477 0.5729855 1 0.0273743 0.4267799 0.5458458 1 0.031737 0.4666277 0.5016353 1 0.0689948 0.6182799 0.3127253 1 0.0849716 0.639267 0.2757613 1 0.1006058 0.6527549 0.2466392 1 0.1713427 0.6670415 0.1616157 1 0.2516352 0.6426541 0.1057108 1 0.3384626 0.5947338 0.0668036 1 0.4302309 0.5301969 0.0395722 1 0.5263484 0.4525658 0.0210858 1 0.626094 0.3644045 0.00950154 1 0.7256479 0.2709878 0.00336432 1 0.8196334 0.1795186 0.000847999 1 0.9070264 0.0928556 0.000117929 1 0.9999976 0 2.43E-06

104
test_code/ternary.ipynb Normal file

File diff suppressed because one or more lines are too long