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))
)

Leave a Reply

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

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

*

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