wiki:u/johannjc/scratchpad5

Version 17 (modified by Jonathan, 9 years ago) ( diff )

Diffusion Solvers in AstroBEAR

Astrobear supports both implicit and explicit thermal diffusion that is both isotropic and anistropic. We first derive the equations for the implicit-anisotropic case, and then discuss simplifications that arise for isotropic and explicit versions.

Basic Equations

The anisotropic conduction equation looks like

however, the conduction coefficients have a Temperature dependence.

Collecting power's of T

So we can rewrite the equations as

or

Einstein simplification

or in Einstein notation

or

or

or

Implicitization

Now we can rewrite the equation

where the or subscript on , , and is implied.

and

and and

Now to solve this implicitly, we need to replace with where

Note for Backward Euler, and for Crank Nicholson,

It is simpler to linearize the equation in terms of and then subsitute then vice-versa - though both give the same answer

So we have

where and

Now we can expand the derivatives and get

Expand Derivatives

We can also write this as

where

Discretization

We then need expressions for

Using the above definitions, we can write the discretized equation as

where

Summary

And then using those we can calculate

Isotropic Case

For the Isotropic Case, the diffusion equation looks like

or

or in Einstein notation

which we can rewrite as

This is the exact same form as before, but now

is diagonal so the cross terms vanish

and

and it is independent of direction, so it is just a scalar.

Also if is a constant, the terms drop out.

Explicit Case

For the Explicit case, we just set which sets and and we have

Note: See TracWiki for help on using the wiki.