View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002684 | OpenFOAM | Patch | public | 2017-09-02 16:19 | 2017-09-04 18:00 |
Reporter | wyldckat | Assigned To | henry | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | dev | ||||
Summary | 0002684: chtMultiRegion*Foam solvers with the option '-postProcess' cannot process cases that only have solid regions | ||||
Description | If 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 Information | I accidentally found about this bug in the forum, which was asked about yesterday here: https://www.cfd-online.com/Forums/openfoam-post-processing/192329-bug-wallheatflux-of5-x-dev.html | ||||
Tags | No tags attached. | ||||
|
createMeshesPostProcess.H (249 bytes)
#include "createMeshes.H" if (!fluidRegions.size() && !solidRegions.size()) { FatalErrorIn(args.executable()) << "No region meshes present" << exit(FatalError); } fvMesh& mesh = fluidRegions.size() ? fluidRegions[0] : solidRegions[0]; |
|
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 |
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 |