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

Isoflux condition on ChtMultiRegionFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 15, 2022, 02:19
Default Isoflux condition on ChtMultiRegionFoam
  #1
New Member
 
Giulia
Join Date: Feb 2022
Posts: 19
Rep Power: 4
letoppina is on a distinguished road
Hi, I am trying to simulate a solid body (tube walls) in contact with a fluid (water) with chtMultiRegionFaom solver. The solid walls are able to generate a heat flux (which should be homogeneously distributed within the thickness of the wall), thus giving isoflux conditions on the solid wall in contact with the fluid. This is my boundary condition (T) on my solid wall:



Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0/toptube";
    object      T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [ 0 0 0 1 0 0 0 ];

internalField   uniform 298.15;

boundaryField
{
    #includeEtc "caseDicts/setConstraintTypes"

    "maxY"
    {
        type            externalWallHeatFluxTemperature;

        mode            flux;
    heatsource    flux;

        Ta         uniform 298.15;  
                             
        q               uniform 100.0; // heat flux [W/m2]
        thicknessLayers (0.0006);  //solid wall thicnkess
        kappaLayers     (0.184);          // thermal conductivity of layer [W/m/K] 

        kappaMethod     solidThermo;

        value           $internalField;  // initial temperature [K]
    }   

    "(min|max)(X)"
    {
        type            zeroGradient;
       //value           $internalField;
    }

    "(min|max)(Z)"
    {
        type            empty;
        ~value;
    }

    "toptube_to_.*"
    {
        type            compressible::turbulentTemperatureCoupledBaffleMixed;
        value           $internalField;
        Tnbr            T;
        kappaMethod     solidThermo;
    }
}
And this is the boundary condition on the water (in contact with the tube):



Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0/water";
    object      T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [ 0 0 0 1 0 0 0 ];

internalField   uniform 288.15;

boundaryField
{
    #includeEtc "caseDicts/setConstraintTypes"

    minX
    {
        type            fixedValue;
        value           $internalField;
    }
    maxX
    {
        type            inletOutlet;
        value           $internalField;
        inletValue      $internalField;
    }
    "(min|max)(Z)"
    {
        type            empty;
        ~value;
    }
    "water_to_.*"
    {
        type            compressible::turbulentTemperatureCoupledBaffleMixed;
        value           $internalField;
        Tnbr            T;
        kappaMethod     fluidThermo;
    }
}
Technically, as the tube is exchanging heat flux with the water, the water should heat up. But on the simulation the heat flux dissipates immediately and the water becomes cold very soon. What am I doing wrong?
letoppina is offline   Reply With Quote

Reply

Tags
chtmultiregionfoam, flux boundary condition, heat flux., solid body


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
Access species thermo functions from chtMultiRegionFoam bouandray condition jherb OpenFOAM Programming & Development 2 October 16, 2020 17:52
Adding heat source to chtMultiRegionFoam maddalena OpenFOAM Programming & Development 61 February 17, 2018 09:33
chtMultiRegionFoam boundary condition dl6tud OpenFOAM Programming & Development 0 March 14, 2014 05:28
Custom boundary condition: unexpected behavior with chtMultiRegionFoam leroyv OpenFOAM Programming & Development 3 February 1, 2014 08:49
conjugate boundary condition Daniel_Khazaei OpenFOAM Programming & Development 0 December 31, 2013 14:11


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