CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Relative error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 14, 2007, 09:33
Default Relative error
  #1
Neazen
Guest
 
Posts: n/a
Hi all,

I've got a question related to relative errors in the special case where the x(exact) is nearly 0.

Example : x(exact) = 1 e-10 x(simul) = 0.001

Er = |x(exact)-x(simul)|/|x(exact)| = 9999999!!!

I would like to know if there is a way to avoid this situation.

Thanks in advance.
  Reply With Quote

Old   August 14, 2007, 11:39
Default Re: Relative error
  #2
Harish
Guest
 
Posts: n/a
Can you make your system non dimensional ? In that way you would not need to go for such high precision requirements.
  Reply With Quote

Old   August 14, 2007, 11:55
Default Re: Relative error
  #3
Neazen
Guest
 
Posts: n/a
Well, the purpose is to compare some methods via the absolute and relative errors. The equation resolved is of type: m.d2(y)/dt2 + k.y = f with y=1 and dy/dt=0 and the exact solution is y=cos(wt). It's clear to see that the y is zero, or nearly, at Pi/2 for example, as I explained before.

  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
POSDAT problem piotka STAR-CD 4 June 12, 2009 08:43
attach/detach (valve opening/closing) phsieh2005 OpenFOAM Running, Solving & CFD 2 March 21, 2009 05:18
[Netgen] Installation of Netgen in SuSE Linux 92 edvardsenpriv OpenFOAM Meshing & Mesh Conversion 23 January 16, 2009 06:12
How to get the max value of the whole field waynezw0618 OpenFOAM Running, Solving & CFD 4 June 17, 2008 05:07
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19


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