View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003654 | OpenFOAM | Bug | public | 2021-04-04 19:08 | 2021-04-04 19:35 |
Reporter | Rameche | Assigned To | henry | ||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Linux | OS | Ubuntu | OS Version | 20.04 |
Summary | 0003654: Discrepancy in the Calculation of mag(U) | ||||
Description | In the process of integrating some equations in the LRR model we noticed that the mag(U) and a volScalarField defined by us, as magU produce different results. We tried to print the minimum and maximum of these functions and we get the following: Minimum of mag(U): min(mag(U)) [0 1 -1 0 0 0 0] 0 Maximum of mag(U): man(mag(U)) [0 1 -1 0 0 0 0] 18.9309 Whereas for the magU (a volScalarField created for mag(U)) gives: Minimum of magU: min(mag(U)) [0 1 -1 0 0 0 0] 9.12962 Maximum of magU: max(mag(U)) [0 1 -1 0 0 0 0] 18.9309 As you can notice, the minimum values are different from mag(U) and magU. We look forward to your response in this regard. Thanks, Rameche | ||||
Steps To Reproduce | volScalarField::Internal magU(mag(U)); magU = mag(U); Info << "Minimum of mag(U):" << min(mag(U)) << endl; Info << "Maximum of mag(U):" << max(mag(U)) << endl; Info << "Minimum of magU:" << min(magU) << endl; Info << "Maximum of magU:" << max(magU) << endl; | ||||
Tags | No tags attached. | ||||