View Issue Details

IDProjectCategoryView StatusLast Update
0001934OpenFOAMBugpublic2015-12-01 16:33
Reporteruser1286Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformIntel64OSOpenSuSEOS VersionLeap 42.1
Summary0001934: porousBafflePressure BC does not work with incompressible solvers like simpleFoam
DescriptionA simpleFoam case using the porousBafflePressure crashes with the message
FOAM FATAL ERROR:
    request for volScalarField rho from objectRegistry region0 failed

Of course, an incompressible solver does not have a volScalarField rho.

But in the code of porousBafflePressureFvPatchField.C I find
if (phi.dimensions() == dimensionSet(0, 3, -1, 0, 0))
    {
        Un /= patch().lookupPatchField<volScalarField, scalar>(rhoName_);
    }

Shouldn't this formula be used in a compressible case instead?
TagsNo tags attached.

Activities

henry

2015-12-01 15:09

manager   ~0005706

phi may have the dimensions of a mass-flux or volume flux in a compressible solver and Un only needs to be divided by rho iff phi is a mass-flux.

henry

2015-12-01 16:33

manager   ~0005709

Thanks for the bug-report
Resolved in OpenFOAM-3.0.x by commit 54040ec9781c1537dfe2b80911818c16de1d099c
Resolved in OpenFOAM-dev by commit 27e8b3d2822fe8477cd7d5c2fc53fd4ddac1586d

Issue History

Date Modified Username Field Change
2015-12-01 14:49 user1286 New Issue
2015-12-01 15:09 henry Note Added: 0005706
2015-12-01 16:33 henry Note Added: 0005709
2015-12-01 16:33 henry Status new => resolved
2015-12-01 16:33 henry Resolution open => fixed
2015-12-01 16:33 henry Assigned To => henry