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

Closing heat and mass balance

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By LaszloBarta

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 25, 2015, 07:34
Thumbs up Closing heat and mass balance
  #1
New Member
 
Laszlo Barta
Join Date: Nov 2015
Posts: 8
Rep Power: 10
LaszloBarta is on a distinguished road
Hello,

I am looking for procedures to check mass and more importantly heat balance on my cases. Radiation included. Is there a utility for this? Im using openfoam 3.0.0 package.

Thanx, laszlo

To be more specific: I have an inlet boundary with fixedvalue velocity and temperature condition. i am using the DO method for radiation heat transfer. I am looking for a special boundary condition which sets the radiation heatflux to zero at the input. Anyone has an idea?
Thanx laszlo
hcl734 likes this.

Last edited by LaszloBarta; November 30, 2015 at 00:17.
LaszloBarta is offline   Reply With Quote

Old   January 26, 2016, 08:17
Default
  #2
Member
 
Join Date: May 2015
Posts: 68
Rep Power: 10
hcl734 is on a distinguished road
Did you made any progress on this?
Which solver are you using?
hcl734 is offline   Reply With Quote

Old   January 29, 2016, 11:07
Default
  #3
New Member
 
Laszlo Barta
Join Date: Nov 2015
Posts: 8
Rep Power: 10
LaszloBarta is on a distinguished road
Hi, I was able to resolve mass balance with using paraFoam calculations. It lookes fine. But, regarding energy closure, I was not able to solve my problem. Which was : if I have an inlet boundary condition with high temperature inflow (Like 2000 K) the radiation through this inlet boundary is just too high, and I was not able to set this zero. This problem is related to high temperature flame entering a combustion chamber. Will work on this further. Laszlo
LaszloBarta is offline   Reply With Quote

Old   January 31, 2016, 03:31
Default
  #4
Member
 
Join Date: May 2015
Posts: 68
Rep Power: 10
hcl734 is on a distinguished road
You can also measure mass flow using functionObject

Code:
MassFlowInlet
{
      type            faceSource;
      functionObjectLibs ("libfieldFunctionObjects.so");
      enabled         true;
      outputControl   timeStep;
      writeInterval   1;
      valueOutput     false;
      log             true;
      patch YOURPATCHNAME;
      source     patch;
      sourceName $patch;
      fields (phi);
      operation sum;
      region    YOURREGION;
}
But for heat balance with radiation I am clueless
hcl734 is offline   Reply With Quote

Old   January 31, 2016, 05:27
Default
  #5
New Member
 
Laszlo Barta
Join Date: Nov 2015
Posts: 8
Rep Power: 10
LaszloBarta is on a distinguished road
Hi, this is great, I will try this. I have not used functionObject yet, but I suppose the function must be put into the controlDict file...
Regarding radiation heat flow this is what I do: in paraFoam I select all the boundary patches and use the "integrate variables" comand, and in the spreadsheet data one can find the Qr summed over all boundaries. This is fine, however at inlets I am not sure how the radiation heat flux is calculated. At wall boundaries I have constant wall temperature condition and inward radiation is calculated based on this. But at inlets, since it is open to exterior space, I am not sure how the radiation heat flux is calculated. I guess some exterior temperature must be set with some emissivity value. So basically, due to this problem, the heat balance is not closed. In Fluent, there was an inlet boundary condition where I could set the exterior temperature. Thanks for the reply! Laszlo
LaszloBarta is offline   Reply With Quote

Old   January 31, 2016, 05:50
Default
  #6
Member
 
Join Date: May 2015
Posts: 68
Rep Power: 10
hcl734 is on a distinguished road
The use is described here
http://cfd.direct/openfoam/user-guide/function-objects/

Some examples for functionObjects

Code:
    energyAbsorbedSOLID
    {
        type patchExpression;
        outputControlMode timeStep;
        outputInterval 1;
        accumulations (
            sum
        );
        patches (".*");
        region YOURREGION;
        variables ("kvar=YOURHEATCONDUCTIVITY;"
                   );
    expression "kvar*(snGrad(T))*area()";
        verbose true;
    }

Code:
   energyInlet
   {
        type patchExpression;
        outputControlMode timeStep;
        outputInterval 1;
        accumulations (
            sum
        );
        patches ("YOURINLETPATCH");
        region YOURREGION;
    variables (
                   );
    expression "(YOURHEATCAPACITY*T*phi";
        verbose true;
     
  }
Give us some feedback when you got further
hcl734 is offline   Reply With Quote

Old   February 1, 2016, 06:40
Default
  #7
New Member
 
Laszlo Barta
Join Date: Nov 2015
Posts: 8
Rep Power: 10
LaszloBarta is on a distinguished road
Hi, Thanks for your suggestions! The "type faceSource" works allright, but I could not manage to get massflux on two different patches, only one patch worked for me. I am not sure how to include multiple patches. I have two input patches, acctually.
The "type patchExpreesion" didnot work, a fatal error was returned saying "Unknown function type patchExpression…".??
Thanks for your reply! Laszlo
LaszloBarta is offline   Reply With Quote

Old   February 8, 2016, 10:22
Default
  #8
Member
 
Join Date: May 2015
Posts: 68
Rep Power: 10
hcl734 is on a distinguished road
Quote:
Originally Posted by LaszloBarta View Post
Hi, Thanks for your suggestions! The "type faceSource" works allright, but I could not manage to get massflux on two different patches, only one patch worked for me. I am not sure how to include multiple patches. I have two input patches, acctually.
The "type patchExpreesion" didnot work, a fatal error was returned saying "Unknown function type patchExpression…".??
Thanks for your reply! Laszlo
You got to install swak4Foam and load some additional libraries for using expression based stuff
But swak4Foam is pretty standard when using OpenFOAM so take a look at it
https://openfoamwiki.net/index.php/Contrib/swak4Foam

Code:
libs (
      "libOpenFOAM.so"
      "libsimpleSwakFunctionObjects.so"
      "libswakFunctionObjects.so"
      "libgroovyBC.so"
      "libsimpleFunctionObjects.so"
      "libfieldFunctionObjects.so"
     );
If you want to get results for two patches you can just copy the object (my dummy solution, cause I didn't figured out the delimiter notation )
hcl734 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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56
Heat and mass balance problem Laurent FLUENT 2 October 15, 2002 10:52


All times are GMT -4. The time now is 17:25.