get the value of a field in the neighbour cell of a patch face
Hi,
I am using groovyBC from swak4foam with OF 2.0.1. I am working a lot with TwophaseEulerfoam solver. I want to set a value for a field (Ua Ub and alpha o be more specific) at a patch boundary. To evaluate the expression of my groocyBC, I need for a given face of a patch to use the value caculated in the neighbouring cell. I have seen in the swak4foam wiki page this expression atmosphere { type groovyBC; valueExpression "-(gamma+internalField(gamma))*0.5*normal()"; value uniform (0 0 0); } I am under the impression that "internalField(gamma) " stands for the internal value for the field gamma given at the beginning of the gamma dictionary. Am I right ? If yes does anyone know the expression I can use with groovyBC to have the value of a field in the cell connected to a face patch. Is there a particular syntax for Ua Ub or alpha. Thanks a lot for your help. Regards, Miles |
Quote:
Bernhard |
Quote:
Hi, Thanks for your answer. Sorry if my question seems silly but I am new to OF and sometimes I miss correspondence between entities or method. Hence some confusion. It's a lot to learn. If I have well understood, this time, internalfield is the function I was looking for: it does return the value taken in the internaflied next to the patch, hence in the neighboring cell for a given face. When I try to apply this to the following expression, I am missing something: Code:
atmosphere - does it mean that the BC here is calculated by combining the actual face value of gamma (“gamma”) and the internalfield value of gamma (“internafield(gamma)”) . - if yes, is it some kind of under-relaxation for the calculation of the boundary? (I use under-relaxation but maybe the world is not appropriate here. Sorry for the shortcut). Thanks again. Have a nice evening, Miles. |
Quote:
|
Ok
This is clear to me now. Thanks again for your anwsers. Miles P.S.: the "wmake all" command executed to install swake4foam is not listed in the userguide as a common wmake argument (page U-75). I did not get what the "all" stands for exactly? Does this mean all the libs in a given folder? |
Quote:
|
Thanks for the answer.
BTW I have found the link to the presentation of PyFoam on the swak4foam page. It's realy a pity that it is not highlighted in big! It is very usefull. I was wondering is pyFoam working on OF2.0.1? regards, Miles |
Quote:
|
All times are GMT -4. The time now is 02:01. |