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

Strange error when increasing grid resolution

Register Blogs Community New Posts Updated Threads Search

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

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

PMS_
(
IOobject
(
"PMS",
runTime_.timeName(),
mesh_,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
log(2.0*x()-pow(x(),2)+0.25)*log(4.0*pow(y(),3)-3.0*pow(y(),2)+1.25)
)
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?

Regards,
Andreas
feymark is offline   Reply With Quote

Reply


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 Off
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 19:46
increasing grid size kcg Siemens 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 12:45.