CFD Online Logo CFD Online URL
Home > Forums > General Forums > Main CFD Forum

Systematic Error due to Accuracy of Number System?

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

LinkBack Thread Tools Display Modes
Old   March 13, 2015, 06:21
Default Systematic Error due to Accuracy of Number System?
New Member
Join Date: Aug 2014
Posts: 6
Rep Power: 5
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, 13:38
Senior Member
Join Date: Aug 2014
Posts: 633
Rep Power: 9
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.

Last edited by fluid23; March 13, 2015 at 13:39. Reason: spelling correction
fluid23 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
ERROR #001100279 has occurred in subroutine ErrAction. smnaryal CFX 11 December 20, 2017 17:32
same geometry,structured and unstructured mesh,different behaviour. sharonyue OpenFOAM Running, Solving & CFD 13 January 2, 2013 23:40
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 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 16:10.