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

Systematic Error due to Accuracy of Number System?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2015, 05:21
Default Systematic Error due to Accuracy of Number System?
  #1
New Member
 
Cat
Join Date: Aug 2014
Posts: 6
Rep Power: 11
Catkun is on a distinguished road
Dear all,

I am writing some code in matlab that uses a numerical method called WENO to solve Euler equation. However, there is always a error of size around 0.01 no matter how I changed the parameters. Then I wrote some tests and noticed that in one place Matlab does not return a right number: it is supposed to return -1e-14 or so but it returned +1e-15. It seems that this error is systematic and lead to the final 0.01 error in result.

I wonder if anyone encounter similar situations or that it's just my code's problem. Thanks for any thoughts.
Catkun is offline   Reply With Quote

Old   March 13, 2015, 12:38
Default
  #2
Senior Member
 
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 17
fluid23 is on a distinguished road
1e-15 is on the order of machine epsilon even if you are using double precision.

I would think the Matlab user forum would be a better place to ask this.

http://www.mathworks.com/matlabcentral/answers/

Last edited by fluid23; March 13, 2015 at 12:39. Reason: spelling correction
fluid23 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
ERROR #001100279 has occurred in subroutine ErrAction. smnaryal CFX 11 December 20, 2017 16:32
same geometry,structured and unstructured mesh,different behaviour. sharonyue OpenFOAM Running, Solving & CFD 13 January 2, 2013 22:40
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
Unaligned accesses on IA64 andre OpenFOAM 5 June 23, 2008 10:37


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