|
[Sponsors] |
July 18, 2007, 05:23 |
Hi all,
Does anyone have any
|
#1 |
Member
Radu Mustata
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 99
Rep Power: 17 |
Hi all,
Does anyone have any suggestion as to how to define a volScalarField that is the distance to the wall patches in the mesh. tried: #include "wallDist.H" ...bla bla volScalarField d ( IOobject ( "d", runTime.timeName(), runTime, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, dimensionedScalar("d", dimLength, SMALL), calculatedFvPatchScalarField::typeName ); d = wallDist(mesh); ...does not compile... Error---->( wallDistance.C: In function âint main(int, char**)â: wallDistance.C:43: warning: use of old-style cast /home/radu/OpenFOAM/OpenFOAM-1.4/src/finiteVolume/lnInclude/wallDist.H:99: error: âFoam::wallDist::wallDist(const Foam::wallDist&)â is private wallDistance.C:43: error: within this context make: *** [Make/linuxGcc4DPOpt/wallDistance.o] Error 1 ) Is this going to give me the minimum of the distance (say if I have more than one patch or I have two connected wall patches like in a corner)? Cheers, Radu |
|
July 19, 2007, 08:17 |
Try d = wallDist(mesh).y()
|
#2 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21 |
Try d = wallDist(mesh).y()
|
|
July 19, 2007, 09:01 |
Thanks Eugene,
Seems to work
|
#3 |
Member
Radu Mustata
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 99
Rep Power: 17 |
Thanks Eugene,
Seems to work fine. Tried it with icoFoam/cavity and OK. Radu |
|
October 10, 2018, 13:54 |
|
#4 |
Member
Join Date: Apr 2016
Posts: 30
Rep Power: 10 |
Hi all,
I have a similar query as posted on this thread. Along with the wall distance how do i get the vector joining the point in the domain to the point on the wall? Thanks and Regards, Shantanu Vachhani |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF: Distance from the wall | Gabor | FLUENT | 6 | May 24, 2018 08:27 |
Wall distance? | stein lee | Main CFD Forum | 4 | November 15, 2013 22:26 |
cell to wall distance | azmir | Siemens | 0 | March 27, 2007 02:03 |
Near wall distance factor | Jonas Pedro Caumo | CFX | 4 | December 11, 2006 10:42 |
Wall distance | Student | Main CFD Forum | 2 | August 4, 2005 23:33 |