View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004239 | OpenFOAM | Bug | public | 2025-05-30 16:09 | 2025-05-30 19:57 |
Reporter | Elin | Assigned To | henry | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | GNU/Linux | OS | Ubuntu | OS Version | 22.04.1 |
Product Version | dev | ||||
Fixed in Version | dev | ||||
Summary | 0004239: scalarTransport + MULES correction throws dimensions error | ||||
Description | When using the scalarTransport functionObject with the MULES correction as described in scalarTransport.H and a temperature field as scalarField, foamRun throws: --> FOAM FATAL ERROR: LHS and RHS of + have different dimensions dimensions : [length^-1 temperature] + [length^-1] From line 422 in scalarTransport.C (in my two-weeks old version it is line 429 #4 Foam::functionObjects::scalarTransport::solveMULES() at /opt/openfoam-dev/src/functionObjects/solvers/scalarTransport/scalarTransport.C:429 (discriminator 4)) which reads gradsf/(mag(gradsf) + deltaN_) & mesh_.Sf() mag(gradsf) has units [field unit/m], e.g., [K/m] whereas deltaN_ has always [1/m] | ||||
Steps To Reproduce | put the MULES correction as described in the header of scalarTransport.H in the pitzDailyScalarTransport tutorial and let it run. | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2025-05-30 16:09 | Elin | New Issue | |
2025-05-30 16:09 | Elin | File Added: image.png | |
2025-05-30 19:57 | henry | Assigned To | => henry |
2025-05-30 19:57 | henry | Status | new => resolved |
2025-05-30 19:57 | henry | Resolution | open => fixed |
2025-05-30 19:57 | henry | Fixed in Version | => dev |
2025-05-30 19:57 | henry | Note Added: 0013572 |