Latex Equations Cribsheet: Difference between revisions
(Replace QNET with KB Wiki) |
|||
(61 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
== Introduction == | == Introduction == | ||
This page provides some introductory material for writing LaTex equations for the | This page provides some introductory material for writing LaTex equations for the KB Wiki. It is not intended to be a thorough introduction to LaTex, but is to provide some guidelines, share good practice advice and other information that aids the authoring of LaTex in this Wiki. | ||
== Editing Latex == | == Editing Latex == | ||
Line 6: | Line 6: | ||
Alternatively, use the math element in the Edit page of the article as follows: | Alternatively, use the math element in the Edit page of the article as follows: | ||
<pre> | <pre> | ||
<math>V = frac{4}{3} \pi R^{3}</math> | <math>V = frac{4}{3} \pi R^{3}</math> | ||
Line 13: | Line 14: | ||
<math>V = \frac{4}{3} \pi R^{3}</math> | <math>V = \frac{4}{3} \pi R^{3}</math> | ||
==Basic Mathematical Expressions== | |||
=== Algebraic Equations === | |||
The above example shows a typical algebraic expression that uses a mixture of fractions and exponents. Fractions are generated using the frac expression with the numerator and denominator as two arguments: | |||
<pre> | |||
<math> | |||
a = \frac{b+c}{d} | |||
</math> | |||
</pre> | |||
<math> | |||
a = \frac{b+c}{d} | |||
</math> | |||
==Differential Equations== | |||
Ordinary and partial derivative expressions can be generated in the obvious way using the frac operator: | |||
<math>\frac{d^{2}x}{dt^{2}} = - \omega^{2} x</math> | |||
<math> | |||
\frac{\partial^{2} \phi(x,t)}{\partial t^{2}} = c^{2} \frac{\partial^{2} \phi(x,t)}{\partial x^2} | |||
</math> | |||
while exponents are written with the symbol '^': | |||
<pre> | |||
<math> | |||
E = mc^{2} | |||
</math> | |||
</pre> | |||
<math> | |||
E = mc^{2} | |||
</math> | |||
The curly braces '{}' are optional but may be required to remove ambiguities or aid readability in LaTex expressions. | |||
Subscripts are defined using the '_' symbol. | |||
<pre> | |||
<math> | |||
\sigma_{kk} | |||
</math> | |||
</pre> | |||
is rendered as: | |||
<math> | |||
\sigma_{kk} | |||
</math> | |||
=== Arrays of equations === | |||
<pre> | |||
<math> | |||
\begin{array}{lcl} | |||
a + b + c + d & = & e + f + \\ | |||
& & g + h | |||
\end{array} | |||
</math> | |||
</pre> | |||
<math> | |||
\begin{array}{lcl} | |||
a + b + c + d & = & e + f + \\ | |||
& & g + h | |||
\end{array} | |||
</math> | |||
More information on basic mathematical expressions can be found at the MediaWiki web site [http://www.mediawiki.org/wiki/Math here] and [http://meta.wikimedia.org/wiki/Help:Formula here]. | |||
==CFD Equations and Expressions== | ==CFD Equations and Expressions== | ||
There are many | There are many CFD equations and expressions used in the KB Wiki and some of the commonly used ones are listed here. These can be either copied verbatim from the article source or used as templates for similar equations, etc. | ||
=== Basic Expressions === | === Basic Expressions === | ||
==== Reynolds Number ==== | ==== Reynolds Number ==== | ||
Line 24: | Line 111: | ||
\mbox{Re} = \frac{\rho \overline{u} d}{\mu} | \mbox{Re} = \frac{\rho \overline{u} d}{\mu} | ||
</math> | </math> | ||
==== Prandl Number ==== | ==== Prandl Number ==== | ||
Line 29: | Line 117: | ||
\mbox{Pr} = \frac{C_{p} \mu}{\lambda} | \mbox{Pr} = \frac{C_{p} \mu}{\lambda} | ||
</math> | </math> | ||
=== Basic Flow Equations === | === Basic Flow Equations === | ||
==== Mass Continuity Equation ==== | ==== Mass Continuity Equation ==== | ||
Line 38: | Line 128: | ||
\frac{\partial}{\partial x_{j}} (\rho u_{j}) = 0 | \frac{\partial}{\partial x_{j}} (\rho u_{j}) = 0 | ||
</math> | </math> | ||
==== Eulers Equation ==== | ==== Eulers Equation ==== | ||
Line 45: | Line 136: | ||
</math> | </math> | ||
==== Navier Stokes Equations ==== | ==== Navier Stokes Equations ==== | ||
Line 69: | Line 161: | ||
</math> | </math> | ||
==== Reynolds Averaged Navier-Stokes Equation==== | |||
<math> | |||
\frac{ \partial \overline{u_{i}} }{\partial t} + | |||
\overline{u_{j}} \frac{ \partial \overline{u_{i}} }{ \partial x_{j} } = | |||
- \frac{1}{\rho} \frac{\partial \overline{p} }{ \partial x_{i} } | |||
+ \frac{1}{\rho} \frac{\partial}{\partial x_{j}} | |||
\left( \mu \frac{\partial \overline{u_{i}}}{\partial x_{j}} - | |||
\rho \overline{u_i^\prime u_j^\prime } \right) | |||
</math> | |||
==== Energy Transport Equation ==== | ==== Energy Transport Equation ==== | ||
Line 84: | Line 188: | ||
\equiv -C_{p} \frac{\mu}{\mbox{Pr}} \frac{\partial T}{\partial x_{j}} | \equiv -C_{p} \frac{\mu}{\mbox{Pr}} \frac{\partial T}{\partial x_{j}} | ||
</math> | </math> | ||
=== Equations of State === | === Equations of State === | ||
==== Ideal Equation of State ==== | ==== Ideal Equation of State ==== | ||
<math> | <math> | ||
p = \rho R T | p = \rho R T | ||
</math> | </math> | ||
=== Turbulence Equations === | === Turbulence Equations === | ||
==== Standard Two Equation Model ==== | ==== Standard Two Equation Model ==== | ||
Line 110: | Line 209: | ||
</math> | </math> | ||
Turbulent Kinetic Energy transport equation: | |||
<math> | <math> | ||
Line 124: | Line 223: | ||
<math> | <math> | ||
\frac{\partial \epsilon}{\partial t} + | \frac{\partial \epsilon}{\partial t} + | ||
Line 137: | Line 237: | ||
{| | {| | ||
<math>C_{\epsilon 1} = 1.44</math>||<math>C_{\epsilon 2} = 1.92</math>||<math>C_{\mu} = 0.09</math> | |- | ||
<math>C_{\epsilon 1} = 1.44</math> | |||
|| | |||
<math>C_{\epsilon 2} = 1.92</math> | |||
|| | |||
<math>C_{\mu} = 0.09</math> | |||
|- | |- | ||
<math>\sigma_{k} = 1.0</math> | <math>\sigma_{k} = 1.0</math> | ||
Line 155: | Line 260: | ||
l = C_{\mu} k^{3/2} / \epsilon | l = C_{\mu} k^{3/2} / \epsilon | ||
</math> | </math> | ||
==== Reynolds Stress Transport Equation ==== | |||
<math> | |||
\begin{array}{lcl} | |||
\frac{\partial}{\partial t} ( \overline{u^{\prime}_{i} u^{\prime}_{j}} ) + | |||
\frac{\partial}{\partial x_{k}} ( \rho u_{k} \overline{ u^{\prime}_{i}u^{\prime}_{j} } ) & = & | |||
- \frac{\partial}{\partial x_{k}} \left[ \rho \overline{ u^{\prime}_{i} u^{\prime}_{j} u^{\prime}_{k} } + | |||
\overline{p^{\prime} ( \delta_{kj} u^{\prime}_{i} + \delta_{ik} u^{\prime}_{j} ) } | |||
\right] \\ \\ | |||
& & + \frac{\partial}{\partial x_{k}} | |||
\left[ \mu \frac{\partial}{\partial x_{k}} ( \overline{u^{\prime}_{i} u^{\prime}_{i} } ) \right] | |||
- \rho \left( | |||
\overline{u^{\prime}_{i} u^{\prime}_{k}} \frac{\partial u_{j}}{\partial x_{k}} + | |||
\overline{u^{\prime}_{j} u^{\prime}_{k}} \frac{\partial u_{i}}{\partial x_{k}} | |||
\right) | |||
- \rho \beta ( g_{i} \overline{ u^{\prime}_{j} \theta } + g_{j} \overline{ u^{\prime}_{i} \theta } ) \\ \\ | |||
& & + \overline{ p^{\prime} \left ( \frac{\partial u^{\prime}_{i} }{\partial x_{j}} + \frac{\partial u^{\prime}_{j} }{\partial x_{i}} \right) } | |||
- 2\mu \overline{ \frac{\partial u^{\prime}_{i}}{\partial x_{k}} \frac{\partial u^{\prime}_{j}}{\partial x_{k}}} | |||
- 2\rho \Omega_{k} ( \overline{ u^{\prime}_{j} u^{\prime}_{m} } \epsilon_{ikm} | |||
+ \overline{ u^{\prime}_{i} u^{\prime}_{m} } \epsilon_{jkm} | |||
) | |||
\end{array} | |||
</math> | |||
<pre> | |||
</pre> |
Latest revision as of 11:03, 17 January 2021
Introduction
This page provides some introductory material for writing LaTex equations for the KB Wiki. It is not intended to be a thorough introduction to LaTex, but is to provide some guidelines, share good practice advice and other information that aids the authoring of LaTex in this Wiki.
Editing Latex
To add an equation to an article click on the "Mathematical formula" button in the Edit toolbar.
Alternatively, use the math element in the Edit page of the article as follows:
<math>V = frac{4}{3} \pi R^{3}</math>
This should generate the expression:
Basic Mathematical Expressions
Algebraic Equations
The above example shows a typical algebraic expression that uses a mixture of fractions and exponents. Fractions are generated using the frac expression with the numerator and denominator as two arguments:
<math> a = \frac{b+c}{d} </math>
Differential Equations
Ordinary and partial derivative expressions can be generated in the obvious way using the frac operator:
while exponents are written with the symbol '^':
<math> E = mc^{2} </math>
The curly braces '{}' are optional but may be required to remove ambiguities or aid readability in LaTex expressions.
Subscripts are defined using the '_' symbol.
<math> \sigma_{kk} </math>
is rendered as:
Arrays of equations
<math> \begin{array}{lcl} a + b + c + d & = & e + f + \\ & & g + h \end{array} </math>
More information on basic mathematical expressions can be found at the MediaWiki web site here and here.
CFD Equations and Expressions
There are many CFD equations and expressions used in the KB Wiki and some of the commonly used ones are listed here. These can be either copied verbatim from the article source or used as templates for similar equations, etc.
Basic Expressions
Reynolds Number
Prandl Number
Basic Flow Equations
Mass Continuity Equation
Eulers Equation
where in the case of a Newtonian fluid:
and
Energy Transport Equation
The heat flux is given by:
Equations of State
Ideal Equation of State
Turbulence Equations
Standard Two Equation Model
Kinematic eddy viscosity:
Turbulent Kinetic Energy transport equation:
Dissipation Rate transport equation:
Coefficients and Auxilliary Relations:
|
|
|
where
and
Reynolds Stress Transport Equation