Latex Equations Cribsheet: Difference between revisions

From KBwiki
Jump to navigation Jump to search
No edit summary
Line 22: Line 22:
</math>
</math>
</pre>
</pre>
<math>
<math>
   a = \frac{b}{c}
   a = \frac{b}{c}
</math>
</math>
while exponents are written with the symbol '^':
while exponents are written with the symbol '^':
<pre>
<pre>
<math>
<math>
Line 32: Line 35:
</pre>
</pre>


The curly braces '{}' are optional but may be required to remove ambiguities in expressions.
The curly braces '{}' are optional but may be required to remove ambiguities or aid readability in LaTex expressions.


<math>
<math>
Line 51: Line 54:
</math>
</math>


Basic equations can be typed as follows.
<pre>
    V =
</pre>
==CFD Equations and Expressions==
==CFD Equations and Expressions==
There are many commonly used CFD equations and expressions used in the QNET Wiki and some of the commonly used ones are listed here. These can be either copied verbatim or used as templates for similar equations, etc.
There are many commonly used CFD equations and expressions used in the QNET Wiki and some of the commonly used ones are listed here. These can be either copied verbatim or used as templates for similar equations, etc.

Revision as of 11:07, 3 July 2009

Introduction

This page provides some introductory material for writing LaTex equations for the QNET 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}
</math>

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>


CFD Equations and Expressions

There are many commonly used CFD equations and expressions used in the QNET Wiki and some of the commonly used ones are listed here. These can be either copied verbatim or used as templates for similar equations, etc.

Basic Expressions

Basic expressions here.

Reynolds Number

Prandl Number

Basic Flow Equations

Mass Continuity Equation

Eulers Equation

Navier Stokes Equations

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

Reynolds Stress Transport Equation

Standard Two Equation Model

Kinematic eddy viscosity:

Turbulence Kinetic Energy transport equation:

Dissipation Rate transport equation:

Coefficients and Auxilliary Relations:

where

and