View Issue Details

IDProjectCategoryView StatusLast Update
0002684OpenFOAMPatchpublic2017-09-04 18:00
Reporterwyldckat Assigned Tohenry  
Status resolvedResolutionfixed 
Product Versiondev 
Summary0002684: chtMultiRegion*Foam solvers with the option '-postProcess' cannot process cases that only have solid regions
DescriptionIf a multi-region case that was simulated with the solvers 'chtMultiRegionFoam' or 'chtMultiRegionSimpleFoam' only has solid regions, and is then post-processed with the option '-postProcess', it will complain that there are no "fluid meshes".

Attached is the file 'createMeshesPostProcess.H' that fixes this issue - for replacing 'applications/solvers/heatTransfer/chtMultiRegionFoam/createMeshesPostProcess.H' - by first checking if there are any regions available, which if not triggered, then gets the reference with an inline if to the first available region.

Note: This bug was introduced before OpenFOAM 4.0 was released and the attached file should be applicable as-is to all 3 patch/development lines: OpenFOAM 4.x, 5.x and OpenFOAM-dev.
Additional InformationI accidentally found about this bug in the forum, which was asked about yesterday here:
TagsNo tags attached.



2017-09-02 16:19


createMeshesPostProcess.H (249 bytes)   
#include "createMeshes.H"

if (!fluidRegions.size() && !solidRegions.size())
        << "No region meshes present" << exit(FatalError);

fvMesh& mesh = fluidRegions.size() ? fluidRegions[0] : solidRegions[0];
createMeshesPostProcess.H (249 bytes)   


2017-09-04 18:00

manager   ~0008689

Thanks for the patch Bruno.

Resolved in OpenFOAM-dev by commit 972c334d296b21de660ba5bef0b99eb7ca9ae941
Resolved in OpenFOAM-5.x by commit 33b579c3c12d5df7ec5d6c6df924769eb27617fc
Resolved in OpenFOAM-4.x by commit d214c8dfd5ba56dd442bae186fd4fb50dd35c338

Issue History

Date Modified Username Field Change
2017-09-02 16:19 wyldckat New Issue
2017-09-02 16:19 wyldckat Status new => assigned
2017-09-02 16:19 wyldckat Assigned To => henry
2017-09-02 16:19 wyldckat File Added: createMeshesPostProcess.H
2017-09-04 17:59 henry Severity block => minor
2017-09-04 18:00 henry Status assigned => resolved
2017-09-04 18:00 henry Resolution open => fixed
2017-09-04 18:00 henry Note Added: 0008689