Time-Dependent Vector Boundary Conditions in OpenFOAM

OpenFOAM is one of the most famous open-source CFD toolbox, which current version is 1.6. In this version, there are some aspects changed, like: solver syntax, time-dependent vector boundary, integrating some flow models.

Here, I will show you how to set the time-dependent vector boundary:
F1 is set as time varying fixed value. its file name is vin.dat. and the "value" is the default number.

boundaryField
{
    F1              
    {
        type            timeVaryingUniformFixedValue; 
        fileName 	"vin.dat";
        value           uniform (0 0 0);
	outOfBounds     warn;
    }
    Wall           
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
}

The vin.dat file should be like:

(
(t0 (vx0 vy0 vz0))
(t1 (vx1 vy1 vz1))
...
...
(tn (vxn vyn vzn))
)
   Send article as PDF   

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.