CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   error about timeVaryingUniformFixedValue (https://www.cfd-online.com/Forums/openfoam-solving/65313-error-about-timevaryinguniformfixedvalue.html)

flying June 11, 2009 04:59

error about timeVaryingUniformFixedValue
 
Hey foamers!

I wish all of you have a good holiday.

I am trying to use the timeVaryingUniformFixedValue patch. But there is some error information as follows:

/OpenFOAM/cui-1.5/run/Project/Simplied_circular_geometry/Oodlagrangian/test/0/U::INLET"

file: /home/cui/OpenFOAM/cui-1.5/run/Project/Simplied_circular_geometry/Oodlagrangian/test/0/U::INLET from line 25 to line 27.

From function dictionary::lookupEntry(const word& keyword) const
in file db/dictionary/dictionary.C at line 213.

Would you like to give me some advice about it?

Moreover, Does anybody know the tutorial for the patch?

Thanks and Best wishes!

flying June 12, 2009 08:21

Is there anybody caring about this problem?

I wish there will be good advice on it.

norman1981 June 14, 2009 13:15

Hi,

could you post your U file? Looking at your errors it seems that your inlet bc is hill posed (maybe your timeVaryingUniformFixedValue is not well set).

Norman

flying June 17, 2009 03:21

Hey Norman:

I am really sorry to reply late because I was out of work.

This is the U file

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

internalField uniform (0 0 0);

boundaryField
{
INLET
{
type timeVaryingUniformFixedValue;
fileName "inlet.dat";
boundAction repeat ;
}

OUTLET
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}

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

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

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

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


In addition, I didn't give timeSeries file because I really don't know how to give it.

Would you like to tell me the tutorial for using this patch?

Thanks and best wishes!

norman1981 June 17, 2009 03:54

Hi,

don't worry ;-)

Try setting the INLET in this way:
----

INLET
{
type timeVaryingUniformFixedValue;
// value uniform (0 0 0); //Un-comment it if OF complaints..
fileName "series.dat"; // You can change the filename...
outOfBounds clamp;
}

---

Put a "series.dat" file in your case directory. The "series.dat" file has this format:

(
(time_1 (vx_1 vy_1 vz_1))
(time_2 (vx_2 vy_2 vz_2))
...
(time_n (vx_1 vy_1 vz_1))
)

Please, note I used this bc in OpenFOAM-1.5.x version. I have not found a way to use it in OpenFOAM-1.5-dev although it is present in the source code.

Regards

Norman

flying June 17, 2009 04:49

Thanks a lot for your reply. It is so helpful that I have solved the problem.
If you would like to spend your cherish time to answer my other question, I will be more grateful.
In fact, the velocity in the inlet boundary not only change with time, but it is also needed to add some fluctuation on it. It means that I need to use turbulence inlet boundary as well.

Would you like to give me some advice on how to use it?

Thanks and best wishes!


All times are GMT -4. The time now is 08:01.