View Issue Details

IDProjectCategoryView StatusLast Update
0004180OpenFOAMBugpublic2024-11-20 10:49
Reportermichael.mueller-wrd Assigned Tohenry  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionsuspended 
PlatformGNU/LinuxOSOtherOS Version(please specify)
Product Versiondev 
Summary0004180: foamPostProcess -solver -func wallHeatFlux crashes with anisotropic solid
DescriptionPost-processing of solid region with anisotropic thermal conductivity ( Kappa ) with functionObject wallHeatFlux crashes.
It seems to request the fvMesh of neighbour region but cannot find it; see below...
Steps To Reproduce(1) convert 'solid' region of misalignedDuct tutorial into anisotropic:
$> diff constant/solid/physicalProperties $FOAM_TUTORIALS/multiRegion/CHT/misalignedDuct/constant/solid/
17c17
< thermoType constAnisoSolidThermo;
---
> thermoType constSolidThermo;
31c31
< Kappa
---
> kappa
34c34
< value (380 10 2);
---
> value 380;
$> more constant/solid/thermophysicalTransport
/*--------------------------------*- C++ -*----------------------------------*\
  ========= |
  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
   \\ / O peration | Website: https://openfoam.org
    \\ / A nd | Version: 12
     \\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version 2;
    format ascii;
    class dictionary;
    object thermophysicalTransport;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

model anisotropic;
boundaryAligned true;

coordinateSystem
{
    type cartesian;
    origin ( 0 0 0 );
    coordinateRotation
    {
        type axesRotation;
        e1 ( 1 0 0 );
        e2 ( 0 1 0 );
        e3 ( 0 0 1 );
    }
}

zones
{
}

(2) add foamPostProcess to 'Allrun' script:
runApplication foamPostProcess -solver solid -func wallHeatFlux -region solid -latestTime
runApplication -a foamPostProcess -func writeVTK -region solid -latestTime

(3) run script
-> 1st instance of foamPostProcess will throw --> FOAM FATAL ERROR:
                                                                                        
    request for fvMesh fluid from objectRegistry misalignedDuct-postProcessAniso-uncollated-serial-dev_20241112 failed
    available objects of type fvMesh are
1(solid)

-> 2nd instance of foamPostProcess will execute as expected
Additional InformationOther functionObjects in non-solver mode of foamPostProcess appear to execute as expected.

Had it tested with misalignedDuct + shellAndTubeHeatExchanger tutorials; error is reproducible in serial and in parallel;
TagsNo tags attached.

Activities

henry

2024-11-18 10:19

manager   ~0013465

Last edited: 2024-11-20 10:49

Heat transfer between regions requires both regions to be present to transfer properties. Currently foamPostProcess operates on single regions so it is not possible to use it to calculate the heat-flux between regions at least not with anisotropic thermal conductivity in the solid regions.

henry

2024-11-20 10:49

manager   ~0013466

Funding required to develop a multi-region version of foamPostProcess.

Issue History

Date Modified Username Field Change
2024-11-18 10:10 michael.mueller-wrd New Issue
2024-11-18 10:19 henry Note Added: 0013465
2024-11-20 10:49 henry Note Edited: 0013465
2024-11-20 10:49 henry Assigned To => henry
2024-11-20 10:49 henry Status new => closed
2024-11-20 10:49 henry Resolution open => suspended
2024-11-20 10:49 henry Note Added: 0013466