CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Time varying inflow BC in OF Extend available? (https://www.cfd-online.com/Forums/openfoam/196205-time-varying-inflow-bc-extend-available.html)

tdof November 28, 2017 10:26

Time varying inflow BC in OF Extend available?
 
Hi all,

I'm studying viscoelastic flows using OF Extend 4.0 and a time varying inlet BC would be rather helpful. Unfortunately, Extend does not seem to support uniformFixedValue and a simple table. I tried using vectors and scalars as well as flowRateInletVelocity, but it does not recognize the setting. The same setting works flawlessly in OF 4.1.


From my U file:
Code:

    inlet
    {
        type            uniformFixedValue;
        uniformValue    table     
        (
        (0 (0 0 0))
        (1 (0.01 0 0))
        );
    }

The following error message comes up:

Code:

--> FOAM FATAL IO ERROR:
Expected a '(' while reading VectorSpace<Form, Cmpt, nCmpt>, found on line 26 the word 'tableFile'

file: /media/sf_shared/spalt_var/0/U::boundaryField::inlet::uniformValue at line 26.

    From function Istream::readBegin(const char*)
    in file db/IOstreams/IOstreams/Istream.C at line 86.

FOAM exiting

I found several topics related to this, but they all used the standard OF version. I've tried tableFile as well, but OF Extend just ignores this keyword and replies with the same error message. Does anyone have an idea?

tdof November 29, 2017 10:38

Hooray for swak4foam, it works :) Sorry for wasting webspace, but maybe someone will find this useful in the future.


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