View Issue Details

IDProjectCategoryView StatusLast Update
0003654OpenFOAM[All Projects] Bugpublic2021-04-04 19:35
ReporterRamecheAssigned Tohenry 
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionno change required 
PlatformLinux OSUbuntuOS Version20.04
Product Version7 
Fixed in Version 
Summary0003654: Discrepancy in the Calculation of mag(U)
DescriptionIn 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 ReproducevolScalarField::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;
TagsNo tags attached.

Activities

henry

2021-04-04 19:35

manager   ~0011960

User support request.

Issue History

Date Modified Username Field Change
2021-04-04 19:08 Rameche New Issue
2021-04-04 19:35 henry Assigned To => henry
2021-04-04 19:35 henry Status new => closed
2021-04-04 19:35 henry Resolution open => no change required
2021-04-04 19:35 henry Note Added: 0011960