CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Mixed BC - heat transfer - laplacianFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree60Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 19, 2015, 01:46
Default
  #61
Member
 
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 11
STutexas is on a distinguished road
Hi Alex,

Thank you for your explanation. I have been trying (desperately) to code a mixed boundary condition using groovyBC and have not had any success with it. I was hoping to do it wuth mixed boundary condition. Could you take a look at my post and suggest any ideas that you have about implementing a mixed BC on a vector field.

http://www.cfd-online.com/Forums/ope...groovy-bc.html

Thanks again for the help.

Saurabh
STutexas is offline   Reply With Quote

Old   March 7, 2016, 03:19
Default Implementing groovyBC for vectors
  #62
Member
 
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 11
STutexas is on a distinguished road
Quote:
Originally Posted by zfaraday View Post
Hi Saurabh,

refGrad has a similar meaning than refValue and it is used depending on the Boundary Condition itself. In the case you mention proposed by argonaut its value is 0. However, if the same case had included an extra constant heat flux, for instance a known radiative heat flux, you should have used refGrad in the definition of the Tface expression.

To get a better understanding of what I am talking about, please, take a look at this document.

Hope it helps.

Best regards,


Alex

Hi

I am trying to implement the groovyBC for a vector field instead of a scalar field. When I put in the fractionExpression term in my code it starts to give me a weird solution. Could you explain the implementation of the fractionExpression term for vector?

P.S. I would specifically like to know
If groovyBC turns the scalar value of fractionExperssion in to a vector on implementation?
Does fraction expression affect only the diagonal coefficients of the final coefficient matrix or the non-diagonal coefficients as well?

Thank you.

Saurabh
STutexas is offline   Reply With Quote

Old   January 12, 2017, 13:03
Lightbulb Summary
  #63
Member
 
Thiago Parente Lima
Join Date: Sep 2011
Location: Diamantina, Brazil.
Posts: 65
Rep Power: 15
thiagopl is on a distinguished road
Quote:
Originally Posted by bhh View Post
3) (dT/dn)_w=h/k (T_w -T_inf). h and T_inf are given, k is the conductivity of the solid material and T_w is the wall temperature (Varies during the computations and along BC patch).

How can I get access to the mixed condition ( 3) above)?
regards
Bjorn
Returning to the initial question. This is what I've got from the two links below.
Firstly, try to understand the treatment given in the "Basic convection". Then, compare the terms of Eq. (5) to the terms of the equation given here. After this, relate these terms with the Usage of the mixed BC.

So, I think this is the answer:
Code:
type            mixed;
refValue <T_inf>
refGradient <0>
valueFraction <f (from the Basic Convection link - note that f is mesh dependent, which might be a problem) >;
__________________
Fields of interest: buoyantFoam, chtMultRegionFoam.

Last edited by thiagopl; January 13, 2017 at 06:54. Reason: English :)
thiagopl is offline   Reply With Quote

Old   January 12, 2017, 13:57
Default
  #64
Member
 
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 11
STutexas is on a distinguished road
Hi Thiago

You could use the Swak4FOAM and groovyBC library for accessing mesh properties while using mixed Boundary conditions.

f <valuefraction > could be mesh dependent. Swak4FOAM library has some functions that allow one to access mesh properties while setting boundary conditions.

You could also use refCast to extract mesh based values and the update the BC later in the code.

Hope it helps.

Saurabh
STutexas is offline   Reply With Quote

Old   January 13, 2017, 05:55
Default
  #65
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi guys,

I just want to inform you that if you want to implement something like that, you can check out my laserConvectionBC and the documentation. There you will find the derivation of the equation and in the source code you can follow how to implement all the stuff. More information about that can be found here: https://bitbucket.org/shor-ty/laserconvectionbc
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   February 7, 2019, 10:57
Default
  #66
New Member
 
Nilay Kulkarni
Join Date: May 2018
Posts: 24
Rep Power: 8
neilk is on a distinguished road
Hello,

I am trying to apply mixed boundary condition for volScalarField H2O to simulate absorption based on partition coefficients at a wall. I am trying to apply the boundary condition attached in the image below.Attachment 68209

Inorder to implement this I used the following BC:
Code:
BOTTOM
    {
        type            groovyBC;
		value			uniform 1;
		variables	"Dmuc=4.3e-6;Dmem=1.4e-6;tmem=1e- 
                   4;kow=200;liq{BOTTOM}=T;";
		//variables	"Dmuc=1;Dmem=0.1;tmem=1e-4;kow=200;";
		valueExpression	"liq";
        gradientExpression "0";
        fractionExpression "1";
        evaluateDuringConstruction 1;
In the groovyBC above I tried to discretize the gradient of H2O as a result only depending on the patch internal cell field value. But it doesn't take that into account.

Is there a way to implement this type of groovyBC?

Thank you

Nilay
neilk is offline   Reply With Quote

Reply


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
Heat transfer coefficient - what is waht Stan FLUENT 28 December 29, 2021 17:29
Convective / Conductive Heat Transfer in Hypersonic flows enigma Main CFD Forum 2 November 1, 2009 23:53
How can I increase Heat Transfer at Domain Interf? B.Simon CFX 3 October 28, 2008 19:53
CFX Heat Transfer RJamison CFX 0 July 24, 2008 13:11
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 16:55


All times are GMT -4. The time now is 12:36.