|
[Sponsors] |
February 1, 2007, 16:50 |
I have to implement a BC in th
|
#1 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
I have to implement a BC in the form:
T = -A(T) * dT/dn + B where B is not function of T. I examined the mixedFvPatchField, but I've some doubt on how to adapt it to my case. What is it's analytical expression? In the evaluate function it says: Field<type>::operator= ( valueFraction_*refValue_ + (1.0 - valueFraction_)* ( this->patchInternalField() + refGrad_/this->patch().deltaCoeffs() ) ); The comment in the code says it calculates the field on the patch, but, if so, why does the patchInternalField is present? Does this mean the BC is implemented in the following form? T = valueFraction*refValue + (1-refValue)(T + refGrad/DeltaCoeff) Thanks in advance, Alberto
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
February 2, 2007, 15:47 |
I answer to myself: the patchI
|
#2 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
I answer to myself: the patchInternalField is present because to calculate the field it's necessary to know the value in the cell centre.
Sorry, I confused it...I shouldn't post a question when sleepy :-)) A.
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
November 25, 2008, 08:28 |
Hi,
How can one access/modif
|
#3 |
Member
Radu Mustata
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 99
Rep Power: 17 |
Hi,
How can one access/modify the value of "valueFraction" in a mixed bc at runtime? So if my U boundary value at a patch cell face checks against some given value (in this first case itīs a zero gradient bc <=> valueFraction = 0) then I want to switch valueFraction to 1 (known value) and set the value of U at the patch to the value I checked against. U bc, are declared as nonuniform lists on that patch (and of course change the bc for pressure accordingly). Is this possible? Cheers, Radu |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boundary condition for UDS | Tomik | FLUENT | 0 | December 5, 2006 18:37 |
Boundary condition of the third kind or Danckwertz boundary condition | plage | OpenFOAM Running, Solving & CFD | 4 | October 3, 2006 13:21 |
Slip Boundary Condition for Moving Boundary | Shukla | Main CFD Forum | 3 | November 11, 2005 16:02 |
UDF boundary condition | Jeff | FLUENT | 2 | November 20, 2003 18:15 |
Boundary Condition in LES | Zhang Tsiang | Main CFD Forum | 3 | February 5, 2002 21:15 |