CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   time dependence - inlet velocity - validation (paper) (https://www.cfd-online.com/Forums/openfoam-pre-processing/144177-time-dependence-inlet-velocity-validation-paper.html)

Qihao December 29, 2017 04:15

Quote:

Originally Posted by alexeym (Post 518383)
Hi,

the error is quite obvious (and the reason for it was explained in error message), you have to specify file name as a string (i.e. use quotation marks).

Concerning your first question, it depends on how you'd like the velocity to change. With the file you've posted it'll linearly increase from 1 to 5 during 0.5 s, the to 10 during next 0.5 s and finally linearly go to zero during next 0.5 s. If it's what you want, yes, file is right.

About format, it seems to be correct. Also you can try to use csvFile, it has more clear configuration dictionary:

Code:

        csvFileCoeffs
        {
            nHeaderLine        4;
            refColumn          0;          // reference column index
            componentColumns    (1 2 3);    // component column indices
            separator          ",";        // optional (defaults to ",")
            mergeSeparators    no;        // merge multiple separators
            fileName            "fileXYZ";  // name of csv data file
            outOfBounds        clamp;      // optional out-of-bounds handling
            interpolationScheme linear;    // optional interpolation scheme
        }


hi ,can I use this format to define the boundary condition of spatial varying, which my time is not vary? only the pressure value vary in the x direction. and the file is scatter and also need to interpolate and then use it


All times are GMT -4. The time now is 16:26.