CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   TestWallDist does not work with 1D mesh (https://www.cfd-online.com/Forums/openfoam-solving/59389-testwalldist-does-not-work-1d-mesh.html)

liu October 11, 2007 16:33

I have a 1D mesh with top be a
 
I have a 1D mesh with top be a wall. What I want is the distance from all cells to that wall. Simple enough?

When I do

testWallDist . test

I got error like this:

--> FOAM FATAL ERROR : Maximum number of iterations reached. Increase maxIter.
maxIter:1000
nChangedCells:0
nChangedFaces:5


From function meshWave<type>::meshWave(const polyMesh&, const labelList&, const List<type>&, const label maxIter)
in file /home/liu19/research/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/meshWave.C at line 846.

here is the simple test case:
http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif test.tar.gz

mattijs October 11, 2007 17:49

Wall distance travels one cell
 
Wall distance travels one cell per iteration. You have max 1000 iterations set up. How many cells 'thick' is your mesh?

liu October 11, 2007 21:19

I have 1000 cells in this simp
 
I have 1000 cells in this simple 1D mesh.

The maxIter is not set by me. I found maxIter is set as the mesh cell numbers which I am quite confused.

Here is from src/meshTools/cellDist/patchWave/patchWave.C

meshWave<wallpoint> waveInfo
(
mesh(),
changedFaces,
faceDist,
mesh().nCells() // max iterations
);

mattijs October 12, 2007 04:19

Change the maxIter to a bit mo
 
Change the maxIter to a bit more than mesh().nCells() and recompile.


All times are GMT -4. The time now is 23:31.