View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001934 | OpenFOAM | Bug | public | 2015-12-01 14:49 | 2015-12-01 16:33 |
Reporter | Assigned To | henry | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Intel64 | OS | OpenSuSE | OS Version | Leap 42.1 |
Summary | 0001934: porousBafflePressure BC does not work with incompressible solvers like simpleFoam | ||||
Description | A 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? | ||||
Tags | No tags attached. | ||||
|
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. |
|
Thanks for the bug-report Resolved in OpenFOAM-3.0.x by commit 54040ec9781c1537dfe2b80911818c16de1d099c Resolved in OpenFOAM-dev by commit 27e8b3d2822fe8477cd7d5c2fc53fd4ddac1586d |