CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

TestWallDist does not work with 1D mesh

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 11, 2007, 16:33
Default I have a 1D mesh with top be a
  #1
liu
Senior Member
 
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 8
liu is on a distinguished road
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:
test.tar.gz
__________________
Xiaofeng Liu, Ph.D., P.E.,
Assistant Professor
Department of Civil and Environmental Engineering
Penn State University
223B Sackett Building
University Park, PA 16802


Web: http://water.engr.psu.edu/liu/
liu is offline   Reply With Quote

Old   October 11, 2007, 17:49
Default Wall distance travels one cell
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Wall distance travels one cell per iteration. You have max 1000 iterations set up. How many cells 'thick' is your mesh?
mattijs is offline   Reply With Quote

Old   October 11, 2007, 21:19
Default I have 1000 cells in this simp
  #3
liu
Senior Member
 
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 8
liu is on a distinguished road
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
);
__________________
Xiaofeng Liu, Ph.D., P.E.,
Assistant Professor
Department of Civil and Environmental Engineering
Penn State University
223B Sackett Building
University Park, PA 16802


Web: http://water.engr.psu.edu/liu/
liu is offline   Reply With Quote

Old   October 12, 2007, 04:19
Default Change the maxIter to a bit mo
  #4
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Change the maxIter to a bit more than mesh().nCells() and recompile.
mattijs is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cvd can't work mahe Phoenics 0 February 25, 2008 23:01
CFD mesh in work bench sach Main CFD Forum 0 October 31, 2006 03:11
Button 'Generate Mesh' doesn't work Julie Polyakh CD-adapco 3 January 7, 2004 19:15
CFX 5.5.1 for 2D work blair CFX 9 May 20, 2003 10:29
visual3 can't work with refined mesh dell CD-adapco 0 December 15, 2002 06:00


All times are GMT -4. The time now is 17:48.