CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   [volFieldValue] the CellZone fields are not visible in Paraview (https://www.cfd-online.com/Forums/openfoam-post-processing/254906-volfieldvalue-cellzone-fields-not-visible-paraview.html)

egebat7 March 7, 2024 06:04

[volFieldValue] the CellZone fields are not visible in Paraview
 
Hi there,


I am using the 'volFieldValue' function to write fields (U p) of a specific 'cellZone' called 'Box1' during runtime, without writing the fields all over my domain. This writes the fields to my time folders, under names like "U_cellZone-Box1" and "p_cellZone-Box1". So far, so good.


However, I cannot visualise these fields in Paraview. I have enabled the "Read zones" and "Copy data to cell zones" options. I can see my cell zone using the Extract Block filter, but I cannot see the fields. I've also tried changing the filenames from "U_cellZone-Box1" to "U" for example, but this hasn't helped. I also run 'foamToVTK -cellZone-Box1 -parallel'. It writes the mesh of the cellZone in VTK format, but not the fields, so the same problem.


Do you have any idea how I should manipulate these cellZone fields to visualise them in Paraview?


Best regards,


Ege


This is the function I am using inside my ControlDict:


Code:

    volFieldValue1
    {
        type                volFieldValue;
        libs                ("libfieldFunctionObjects.so");
        log                  true;
        writeControl    runTime;
        writeInterval  0.005;
        writeFields    true;
        regionType      cellZone;
        name              Box1;
        operation        none;
        fields
        (
            U
            p
        );
    }



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