CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Post-Processing (
-   -   No field colour on isoSurface (

Za-ck August 26, 2019 15:44

No field colour on isoSurface

I am trying to create a pciture of the free-water-surface.
First aI use:
postProcess -func writeCellCentres
to get Cz as the height-field

afterward I use the runTimePostProcessing Utility



            type            isoSurface;
            renderMode      flat; //flat gouraud phong
            representation  surface;
            field          alpha.water;
            values          ( 0.5 );
            colourField    Cz;
            colourBy        field;
            range          (-0.7 0.7);
            smooth          true;

But the free surface stays grey.
Can anyone help?


x86_64leon December 11, 2019 10:29

Hi Za-ck

Have you finally managed to get some colors on isoSurfaces with runTimePostProcessing ?

I'm currently facing the same issue.


Za-ck December 16, 2019 05:23

Hi Leon,

no I did not find a solution. Now I am doing everything using the python interface of paraview.


simrego December 16, 2019 08:57


If you only need height, you can simply use a calculator on the exported surface field.
Just create a new calculator on the file, name it as you want, and choose the coordsZ from the scalar variables inside the calculator. You can also add an offset to it so you can visualize a relative height or what you want.

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