# Boundary condition

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 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,894 Rep Power: 26 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::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 live DVD/USB, hard drive image and virtual image. OpenQBMM - An open-source implementation of quadrature-based moment methods

 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,894 Rep Power: 26 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 live DVD/USB, hard drive image and virtual image. OpenQBMM - An open-source implementation of quadrature-based moment methods

 November 25, 2008, 08:28 Hi, How can one access/modif #3 Member   Radu Mustata Join Date: Mar 2009 Location: Zaragoza, Spain Posts: 96 Rep Power: 8 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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Tomik FLUENT 0 December 5, 2006 18:37 plage OpenFOAM Running, Solving & CFD 4 October 3, 2006 12:21 Shukla Main CFD Forum 3 November 11, 2005 16:02 Jeff FLUENT 2 November 20, 2003 18:15 Zhang Tsiang Main CFD Forum 3 February 5, 2002 21:15

All times are GMT -4. The time now is 20:13.

 Contact Us - CFD Online - Top