CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Residuals written multiple times in file with chtMultiRegion (https://www.cfd-online.com/Forums/openfoam-pre-processing/217880-residuals-written-multiple-times-file-chtmultiregion.html)

marluc May 28, 2019 12:40

Residuals written multiple times in file with chtMultiRegion
 
Dear All,

I am facing a problem when using the functionObject residuals with chtMultiRegionSimpleFoam.

Here the code:
Code:

residualsFluid
    { 
      type            residuals;
      libs            ("libutilityFunctionObjects.so");

      writeControl    timeStep;
      writeInterval  1;
      region          fluid;

      fields (p_rgh U h k omega);
    }

The residuals are correctly saved in the corresponding file in the directory postProcessing but they are written three times for every timeStep:

Code:

# Residuals 
# Time          p_rgh          Ux              Uy              Uz              h              k              omega       
1.002          1.0000000e+00  0.0000000e+00  0.0000000e+00  1.0000000e+00  1.0000000e+00  1.0000000e+00  5.7152730e-03
1.002          1.0000000e+00  0.0000000e+00  0.0000000e+00  1.0000000e+00  1.0000000e+00  1.0000000e+00  5.7152730e-03
1.002          1.0000000e+00  0.0000000e+00  0.0000000e+00  1.0000000e+00  1.0000000e+00  1.0000000e+00  5.7152730e-03

Does anyone know the reason for this?


Thank you in advance.
Luca


EDIT:
I am using OF 5.x and the problem happens in serial as well as in parallel. Residuals are always written three times each.

peterhess May 29, 2019 12:07

Hello!
is it possible that you have:

nNonOrthogonalCorrectors 3;

?

Regards

Peter

marluc May 29, 2019 12:10

Residuals written multiple times in file with chtMultiRegion
 
Quote:

Originally Posted by peterhess (Post 735049)
Hello!
is it possible that you have:

nNonOrthogonalCorrectors 3;

?

Regards

Peter


Hi,
actually not. It is set to 1.


Regards,
Luca


All times are GMT -4. The time now is 00:00.