Overview

  • This is a convection-diffusion problem with a non-linear material property.
  • The ExampleDiffusion kernel uses a coefficient produced from a linearly interpolated tabulated Material property.
  • The ExampleMaterial object couples in the gradient of the "diffused" variable and uses it to make a gradient material property
  • The ExampleConvection kernel uses the gradient material property as a velocity vector.

Complete Source Files

ex08.i

ExampleApp.C

Example Material Object

ExampleMaterial.h

ExampleMaterial.C

Diffusion with Material Property

ExampleDiffusion.h

ExampleDiffusion.C

Convection with Material Property

ExampleConvection.h

ExampleConvection.C

Outputs

08_convected.png
Convection

08_diffused.png
Diffusion