CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   About the $internalField boundary condition (http://www.cfd-online.com/Forums/openfoam-pre-processing/122386-about-internalfield-boundary-condition.html)

hfsf August 19, 2013 00:14

About the $internalField boundary condition
 
Hello, all.

Playing around with some tutorial examples in OF, i've stumped with some weird type of fixedValue boundary condition specification. Something like this:

exampleBC{
type fixedValue;
value $internalField
};

I've been searching in the guides for months, but never found anything about the $internalField operator. What is the meaning of it? And where can I find lectures about it?
Thanks in advance!!!

Bernhard August 19, 2013 01:43

You can refer previously defined variables in OpenFOAM dictionaries.

In this case, you would have something like
Code:

internalField  uniform 0;
on top of your code. So the "uniform 0" is also used for this BC. Just consider it as a string that is copied to that location, there is nothing special under the hood.

babakflame September 2, 2013 11:32

Hi hfsf

Although Bernhard reply was somehow sufficient and complete. I can add that for instance for pressure of the domain in free jets that exit to the non-confined environments; we can use this type of boundary condition.
The internal field value is 1e05 pa.

Regards
Bobi


All times are GMT -4. The time now is 23:37.