Skip to main content

Time scheme example

Introduction

The test case comprises a 2-D box section, across which a uniform flow is applied. A passive scalar is introduced in a circular region at the start time, and transported across the domain. By looking at the profile of the scalar across the section, we can determine the characteristics of our time scheme selection.

Case set-up

The impact of the choice of time scheme is assessed by varying the ddt scheme entry of the fvSchemes file:

ddtSchemes
{
ddt(phi) <time scheme>
}

Boundary conditions

Velocity boundary conditions

PatchTypeValue
leftfixedValue(1,1,0)
rightzeroGradient
topzeroGradient
bottomfixedValue(1,1,0)
frontAndBackempty

Scalar boundary conditions

PatchTypeValue
leftfixedValue0
rightzeroGradient
topzeroGradient
bottomfixedValue0
frontAndBackempty

Initial field

Mesh

Case set-up

Results

Euler results

Time 1
Time 2
Time 3

backward results

Time 1
Time 2
Time 3

Crank-Nicolson results

Time 1
Time 2
Time 3