CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

Strange error when increasing grid resolution

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

LinkBack Thread Tools Display Modes
Old   February 18, 2009, 09:05
Default Hi, I have a 2D uniform mes
New Member
Andreas Feymark
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 18
Rep Power: 8
feymark is on a distinguished road

I have a 2D uniform mesh with 0.5<=x<=1, 0<=y<=0.5, created using blockMesh. I'm computing the following expression,

where x() and y() is defined in the following way,

tmp<volscalarfield> MSolution::x() const
return mesh_.C().component(vector::X)/L_;
where L_=1.0m.
For a small grid, 20x20 nodes large, this gives PMS=0.0 at the boundaryFields, (x=0.5, 0<=y<=0.5) and (y=0.5, 0.5<=x<=1). This is the correct behavior. The problem is when I increase the grid resolution to maybe 100x100. Then I get values that are not equal to 0 on the boundary. I think it's important to add that these values are of the magnitude 1e-18, quite small depending on the circumstances. I have checked the polyMesh directory and everything seems to be correct there. I really don't understand this. Any suggestions?

feymark is offline   Reply With Quote


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
grid resolution? venkat Main CFD Forum 2 February 24, 2009 20:46
increasing grid size kcg CD-adapco 5 April 8, 2007 18:26
Increasing grid does not converge noi FLUENT 0 August 30, 2006 00:24
Increasing resolution of mesh in GAMBIT Vidya Raja Main CFD Forum 1 October 10, 2005 03:11
Increasing resolution of mesh in GAMBIT Vidya Raja FLUENT 1 October 10, 2005 01:48

All times are GMT -4. The time now is 13:14.