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/)
-   -   Change wallDist to return volVectorField (https://www.cfd-online.com/Forums/openfoam-pre-processing/63112-change-walldist-return-volvectorfield.html)

segersson March 29, 2009 11:50

Change wallDist to return volVectorField
 
I need to calculate the distance from a patch in horisontal and vertical direction separately for all cells. I have tried to use functionality from wallDist.H. This works well except that it returns the distance as a volScalarField. Can anyone give me a suggestion on how to modify walldist.H (or the stuff it uses - patchWave etc. ), to return the distance as a volVectorField?

Regards
David

verby October 8, 2009 06:14

I think that class wallDistReflection could help you.


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