/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | foam-extend: Open Source CFD                    |
|  \\    /   O peration     | Version:     4.1                                |
|   \\  /    A nd           | Web:         http://www.foam-extend.org         |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    inlet
    {
        type            spaceTimeVaryingMappedFixedValue;
        mapMethod       nearest;
        scaling         8.596e6;  //  = 7e-5 / (8.974624582e-08 * 9.0738e-5)

// (1) --> directly embed table data
//
//        timePattern     table;
//        timePatternCoeffs
//        {
//            values
//            (
//                (0    0)
//                (0.01 0.01)
//                 ...
//                (0.02 0.00)
//            );
//            interpolationScheme linear;
//            outOfBounds     repeat;
//        }

// (2) --> read from specified file using foam format
//
        timePattern     tableFile;
        timePatternCoeffs
        {
            file        "$FOAM_CASE/constant/timeData/pulse.dat";
            interpolationScheme linear;
            outOfBounds     repeat;
        }

// (3) --> read from specified file using csv format
//
//        timePattern     csvFile;
//        nHeaderLine     1;
//        refColumn       0;
//        componentColumns ( 1 );
//        separator       ",";
//        mergeSeparators no;
//        file            "$FOAM_CASE/constant/timeData/pulse.csv";
//        interpolationScheme linear;
//        outOfBounds     repeat;

    }

    "outlet|artery[123]"
    {
        type            inletOutlet;
        inletValue      uniform (0 0 0); // 逆流時の速度（通常はゼロ）
        value           uniform (0 0 0); // 初期値
    }

    walls
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }

}

// ************************************************************************* //
