CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Boundary condition

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By alberto

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 1, 2007, 16:50
Default 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
alberto will become famous soon enoughalberto will become famous soon enough
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.
alberto is offline   Reply With Quote

Old   February 2, 2007, 15:47
Default 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
alberto will become famous soon enoughalberto will become famous soon enough
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.
luiscardona likes this.
__________________
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.
alberto is offline   Reply With Quote

Old   November 25, 2008, 08:28
Default Hi, How can one access/modif
  #3
Member
 
Radu Mustata
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 99
Rep Power: 17
r2d2 is on a distinguished road
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
r2d2 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


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