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

FixedValue of Temperature for a volume

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2012, 05:04
Default FixedValue of Temperature for a volume
  #1
m_f
Member
 
M
Join Date: Jul 2012
Posts: 33
Rep Power: 14
m_f is on a distinguished road
Hello,

Problematic : Is it possible, with OpenFOAM, to define a fixed temperature for a volume (named cellzone) ?

Explication : My problem is that i have a box in a room. I define the temperature field in my box as :
Code:
dimensions      [ 0 0 0 1 0 0 0 ];

internalField   uniform 353;

boundaryField
{
    box_to_box2
    {
        type            compressible::turbulentTemperatureCoupledBaffleMixed;
        value           uniform 353;
        neighbourFieldName T;
        K               solidThermo;
        KName           none;
    }
    box_to_fluid
    {
        type            compressible::turbulentTemperatureRadCoupledMixed;
        value           uniform 353;
        Tnbr            T;
        K               solidThermo;
        QrNbr           Qr;
        Qr              none;
        KName           none;
    }
}
The temperature of my fluid and of my box2 (in contact with box) is 293K. The temperature of my box is 353 K, and I want this temperature to be fixed. I want to study the radiation, forced convection (fluid with velocity) and conduction between fluid and theses two boxes.

But after 1 iteration, the fluid cool the box (293 vs 353), so the temperature of my box go down.

How can i fix the value in my box ? (I can't delete my interface ?!)

Thank you for any hint

Best regards.

m_f

Last edited by m_f; August 17, 2012 at 10:13.
m_f is offline   Reply With Quote

Old   August 23, 2012, 06:49
Lightbulb
  #2
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Hi,
if you want temperature in your box fixed, then you do not need to model it! Simply, model box2 and fluid and where the box is, use a
Code:
type   fixedValue;
value  uniform 353;
boundary condition!
could you add a picture of your problem thus everything is clearer?

mad
maddalena is offline   Reply With Quote

Old   August 23, 2012, 09:34
Default
  #3
m_f
Member
 
M
Join Date: Jul 2012
Posts: 33
Rep Power: 14
m_f is on a distinguished road
Quote:
Originally Posted by maddalena View Post
Hi,
if you want temperature in your box fixed, then you do not need to model it! Simply, model box2 and fluid and where the box is, use a
Code:
type   fixedValue;
value  uniform 353;
boundary condition!
Yes, but if I use this kind of bondary condition, is the heat transfert throw the interface will be calculated ?

Finally my goal is to calculate the heat transfert throw box1 faces, with wallHeatFlux (even if i don't know nowadays how it's work....).

I use topoSet and splitMeshRegion to create my boxes and my fluid meshes.
splitMeshRegion creates automatically my bondary as :
Code:
For interface between region fluid and box2 added patches
    6    fluid_to_box2
    7    box2_to_fluid
For interface between region pcb and box1 added patches
    8    box2_to_box1
    9    box1_to_box2
For interface between region fluid and box1 added patches
    10    fluid_to_box1
    11    box2_to_fluid
Have I to create a new patch, without delete the others, which is the same as, for example, box1_to_box2, but with fixed temperature value ?
Or I have to modify an existing patch, to put fixed value ?

I'm a bit lost :/

Quote:
could you add a picture of your problem thus everything is clearer?
I upload an image to be clearer.

Best regards,

m_f
Attached Images
File Type: png image.png (16.8 KB, 47 views)
m_f is offline   Reply With Quote

Old   August 23, 2012, 09:59
Default
  #4
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
I have never used wallHeatFux (even though I tried to...). However, calculating the heat transfer should not be a problem...
As for the case: you can delete the box mesh. Interfaces box_to_x can be defined as patch and you can use whenever bc you want on it.

mad
maddalena is offline   Reply With Quote

Old   August 23, 2012, 10:05
Default
  #5
m_f
Member
 
M
Join Date: Jul 2012
Posts: 33
Rep Power: 14
m_f is on a distinguished road
Hello,
Quote:
As for the case: you can delete the box mesh.
I can't delete the mesh inside the box1, I don't have to.

For information, bondaries of box1 are defined as :
Code:
(
    box1_to_box2
    {
        type            mappedWall;
        nFaces          1444;
        startFace       62396;
        sampleMode      nearestPatchFace;
        sampleRegion    box2;
        samplePatch     box2_to_box1;
        offsetMode      uniform;
        offset          (0 0 0);
    }
    box1_to_fluid
    {
        type            mappedWall;
        nFaces          3724;
        startFace       63840;
        sampleMode      nearestPatchFace;
        sampleRegion    fluid;
        samplePatch     fluid_to_box1;
        offsetMode      uniform;
        offset          (0 0 0);
    }
)
Quote:
Originally Posted by maddalena View Post
However, calculating the heat transfer should not be a problem...
How calculate heat flux without wallHeatFlux ?

Best regards,

m_f
m_f is offline   Reply With Quote

Old   August 23, 2012, 10:14
Default
  #6
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
your fluid has "external" domains, right? your box1_to_x patch must be defined as that one. look at the boundary file and copy the definition (not the nFace startFace though!)
maddalena is offline   Reply With Quote

Old   August 23, 2012, 10:48
Default
  #7
m_f
Member
 
M
Join Date: Jul 2012
Posts: 33
Rep Power: 14
m_f is on a distinguished road
No, it's a internal fluid, in a kind of canalization. Sorry, i wasn't clear, there are walls all around the fluid, barring inlet and outlet.
But...It's work !
As you said, I modified some point :

All box1_to* or *to_box1 were modify :
Before :
Code:
    box1_to_box2
    {
        type            compressible::turbulentTemperatureCoupledBaffleMixed;
        value           uniform 353;
        neighbourFieldName T;
        K               solidThermo;
        KName           none;
    }
    box1_to_fluid
    {
        type            compressible::turbulentTemperatureRadCoupledMixed;
        value           uniform 353;
        Tnbr            T;
        K               solidThermo;
        QrNbr           Qr;
        Qr              none;
        KName           none;
    }
After :
Code:
    box1_to_box2
    {
        type            fixedValue;
        value           uniform 353;
    }
    box1_to_fluid
    {
        type            fixedValue;
        value           uniform 353;
    }
So I modify "T" file in /0/box1 , /0/box2 and /0/fluid. Nevertheless, the bondary still be mappedWall and not patch. The calcul is running, but It seems to work.

But, destroying the compressible::turbulentTemperatureRadCoupledMixed wall conditin to a fixedValue, Is the radiation effect of my box1 in the fluid destroy ? I don't really understand how Qr file is used...

Code:
  Extract of /0/fluid/Qr :
   "fluid_to_.*"
   {
        type            greyDiffusiveRadiationViewFactor;
       emissivityMode  solidThermo; << Is solidThermo the material of the fluid or of the _.* ?
       Qro             uniform 0;
       value           uniform 0;
   }
Best regards,

m_f

Last edited by m_f; August 23, 2012 at 11:13.
m_f 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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
FloWorks (Flow Express) Volume Goal Setting Issue rbigelow FloEFD, FloWorks & FloTHERM 1 November 16, 2009 02:32
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
chemical reaction - decompostition La S. Hyuck CFX 1 May 23, 2001 01:07


All times are GMT -4. The time now is 18:07.