CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   non consistent wallHeatFlux from solid to liquid (https://www.cfd-online.com/Forums/openfoam-solving/215931-non-consistent-wallheatflux-solid-liquid.html)

Kobi_Faust March 22, 2019 10:52

non consistent wallHeatFlux from solid to liquid
 
Hi all,

I'm having a problem with the coupling of different materials via mappedWall in between a solid and a liquid region.

If I look (in the postProcessing) at the heatfluxes of the coupled patches all the solid-to-solid transitions perfectly fit (power outflow of the one patch equals inflow of the other patch).
But ALL solid-to-water transitions don't. Thereby the heat-flux of the solid (to water) meets the estimated outflow, but the heat flux of the adjoining water area is around 40 % smaller.

Any ideas on this?

The model runs without any warnings and also all other results (pressure, velocity, etc.) are looking reasonable.

Details:

Solver: chtMultiRegionFoam

My model has several solid regions and a water region. Each region is meshed seperatly with an unstructured mesh. The connecting patches are coupled via the mappedWall boundary option:

The following code sections are not complete, but I think all necessery parts should be given. (Otherwise it would be too extensive).

Solid Region 1: constant/Meat_15/polyMesh/boundary
Code:

/*--------------------------------*- C++ -*----------------------------------*\
  =========                |
  \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox
  \\    /  O peration    | Website:  https://openfoam.org
    \\  /    A nd          | Version:  6
    \\/    M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      polyBoundaryMesh;
    location    "constant/polyMesh";
    object      boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

6
(
    Meat_15_phi_innen
    {
        type            mappedWall;
        sampleMode                nearestPatchFaceAMI;
        sampleRegion    Cladding_innen;
        samplePatch    Cladding_innen_phi_aussen_to_Meat_15;
                offsetMode                uniform;
        offset          ( 0 0 0 );
        nFaces          17268;
        startFace      87464;
    }
...
)

Solid Region 2: constant/Cladding_innen/polyMesh/boundary
Code:

/*--------------------------------*- C++ -*----------------------------------*\
  =========                |
  \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox
  \\    /  O peration    | Website:  https://openfoam.org
    \\  /    A nd          | Version:  6
    \\/    M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      polyBoundaryMesh;
    location    "constant/polyMesh";
    object      boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

12
(
    Cladding_innen_phi_innen_to_Wasser
    {
        type            mappedWall;
        sampleMode                nearestPatchFaceAMI;
        sampleRegion    Wasser;
        samplePatch    Wasser_innen_phi_innen;
                offsetMode                uniform;
        offset          ( 0 0 0 );
        nFaces          336126;
        startFace      1679966;
    }
    Cladding_innen_phi_aussen_to_Meat_15
    {
        type            mappedWall;
        sampleMode                nearestPatchFaceAMI;
        sampleRegion    Meat_15;
        samplePatch    Meat_15_phi_innen;
                offsetMode                uniform;
        offset          ( 0 0 0 );
        nFaces          50154;
        startFace      2302500;
    }
...
)

Water Region: constant/Wasser/polyMesh/boundary
Code:

/*--------------------------------*- C++ -*----------------------------------*\
  =========                |
  \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox
  \\    /  O peration    | Website:  https://openfoam.org
    \\  /    A nd          | Version:  6
    \\/    M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      polyBoundaryMesh;
    location    "constant/polyMesh";
    object      boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

24
(
    Wasser_innen_phi_innen
    {
        type            mappedWall;
        sampleMode                nearestPatchFaceAMI;
        sampleRegion    Cladding_innen;
        samplePatch    Cladding_innen_phi_innen_to_Wasser;
                offsetMode                uniform;
        offset          ( 0 0 0 );
        nFaces          575864;
        startFace      16477096;
    }
...
)

The termperature coupling is done with "compressible::turbulentTemperatureCoupledBaffleMi xed"

Solid Region 1: 0/Meat_15/T
Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  4.0                                  |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      volScalarField;
    location    "0/fuel1";
    object      T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [ 0 0 0 1 0 0 0 ];

internalField  uniform 310;

boundaryField
{
    Meat_15_phi_innen
    {
        type            compressible::turbulentTemperatureCoupledBaffleMixed;
        value          uniform 310;
        Tnbr            T;
        kappaMethod    solidThermo;
    }
...
}

Solid Region 2: 0/Cladding_innen/T
Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  4.0                                  |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      volScalarField;
    location    "0/fuel1";
    object      T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [ 0 0 0 1 0 0 0 ];

internalField  uniform 310;

boundaryField
{
    Cladding_innen_phi_innen_to_Wasser
        {
        type            compressible::turbulentTemperatureCoupledBaffleMixed;
        value          uniform 310;
        Tnbr            T;
        kappaMethod    solidThermo;
    }
    Cladding_innen_phi_aussen_to_Meat_15
        {
        type            compressible::turbulentTemperatureCoupledBaffleMixed;
        value          uniform 310;
        Tnbr            T;
        kappaMethod    solidThermo;
    }
...
}

Water Region: 0/Wasser/T
Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  4.0                                  |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      volScalarField;
    location    "0/coolant";
    object      T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [ 0 0 0 1 0 0 0 ];

internalField  uniform 310.14;

boundaryField
{
        Wasser_innen_phi_aussen
        {
                type            compressible::turbulentTemperatureCoupledBaffleMixed;
        value          uniform 310;
        Tnbr            T;
        kappaMethod    fluidThermo;
        }
...
}

Thanks for any idea and solution!!

julieng March 23, 2019 07:19

The is some other subject related to the unsatisfied energy balance, see
https://www.cfd-online.com/Forums/op...nce-error.html


Maybe someone more expert than me can help you... and me


Best regards


All times are GMT -4. The time now is 09:05.