CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   TimeVaryingUniformFixedValue b.c. (http://www.cfd-online.com/Forums/openfoam-solving/94867-timevaryinguniformfixedvalue-b-c.html)

merlyn November 28, 2011 16:48

TimeVaryingUniformFixedValue b.c.
 
Hi Guys,
I am trying to implement TimeVaryUniformFixedValue b.c to setup a temperature b.c. which changes linearly with time, like T=10+5*time()

in T/0
I wrote as:

front_heat_in
{
type timeVaryingUniformFixedValue;
timeDataFileName "test1.dat";
value uniform 0;
}

and the error came up:

--> FOAM FATAL IO ERROR:
keyword outOfBounds is undefined in dictionary "/home/merlin/OpenFOAM/merlin-1.7.1/run/tutorials/myFoam/ckaniso2D/0/T::boundaryField::front_heat_in"

file: /home/merlin/OpenFOAM/merlin-1.7.1/run/tutorials/myFoam/ckaniso2D/0/T::boundaryField::front_heat_in from line 33 to line 35.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 395.

BTW, the time series, "test1.dat" was coded:

(
1 300
2 300
3 300
4 330
5 340
6 350
7 360
8 370
9 380
10 390
)

where the first column stands for time: 1sec, 2sec....
and the second column is temperature: 300k 300k 300k 330k ...

The purpose is pretty simple, but i am not familiar with this transient case,
please help me!

-Thank you in advance

marupio November 28, 2011 21:48

It's telling you that you are missing the keyword "outOfBounds" in the dictionary. I believe this is a setting that determines how it handles extrapolation to time values outside what is defined in your data. See here:
http://openfoamwiki.net/index.php/Op...rpolationTable

merlyn November 29, 2011 16:36

Quote:

Originally Posted by marupio (Post 333887)
It's telling you that you are missing the keyword "outOfBounds" in the dictionary. I believe this is a setting that determines how it handles extrapolation to time values outside what is defined in your data. See here:
http://openfoamwiki.net/index.php/Op...rpolationTable

Thank you buddy!
Appreciate that. It works well now after I added "outOfBounds warn;"
but still cant tell the necessity for this line:(

-merlin

Hale October 1, 2013 03:45

Hi everyone,

I want to apply the timeVaryingUniformFixedValue boundary condition to the outlet in such a way that the outlet is closed for the first 3 seconds then it is open (an inletOutlet b.c.) for the next 2 seconds and it continues like that.

Is it possible to apply derived boundary conditions (e.g. inletOutlet) in timeVaryingUniformFixedValue for the velocity?

Thanks


All times are GMT -4. The time now is 05:11.