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/)
-   -   No field colour on isoSurface (https://www.cfd-online.com/Forums/openfoam-post-processing/220144-no-field-colour-isosurface.html)

Za-ck August 26, 2019 15:44

No field colour on isoSurface
 
Hi,

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

with

Code:

freeSurfaceIso
        {
            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?

Cheers,
Za-ck

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.



Best

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.

Cheers,
Za-ck

simrego December 16, 2019 08:57

Hi!


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.