|
[Sponsors] |
April 15, 2022, 02:19 |
Isoflux condition on ChtMultiRegionFoam
|
#1 |
New Member
Giulia
Join Date: Feb 2022
Posts: 19
Rep Power: 4 |
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; } } 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; } } |
|
Tags |
chtmultiregionfoam, flux boundary condition, heat flux., solid body |
|
|
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 |