CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Bugs (
-   -   SurfaceWriters other than raw are not selectable in sampleSurface (

hannes August 28, 2007 07:22

Description: When other write
When other writers than "raw" (for example "vtk") are selected in the sampleSurfaceDict, the program stops and complains that "raw" is the only possible selection (i.e. it presents a list of possible writers, that only contains "raw").

The problem seems to be, that there are no vtk-, dx- and so on writers defined for the types "SphericalTensor" and "SymmTensor"

When all parts concerning volSphericalTensorField and volSymmTensorField are commented out in sampleSurface.C, all works fine.


Source file:



OpenFOAM-1.4 (also 1.4.1)


henry August 28, 2007 08:05

Are you sure this doesn't work
Are you sure this doesn't work in 1.4.1, I implemented all the writers for all the field types in that version but I only performed basic testing.

hannes August 28, 2007 08:22

Hello Henry, I am still wor
Hello Henry,

I am still working with 1.4 but I tried to replace the sampleSurface-1.4 by the one from 1.4.1 and compiled that. Both versions behaved pretty much the same.

But maybe I messed up something. I will check it again when I find some time and report again.

Best regards, Hannes

henry August 28, 2007 08:30

I just tested the version in 1
I just tested the version in 1.4.1 and it worked fine for me.

olesen August 28, 2007 09:04

Hi Hannes, If you are back-
Hi Hannes,

If you are back-porting the utility to 1.4, be sure that you grab all the sub-directories too (especially surfaceWriters!).

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