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

Systematic Error due to Accuracy of Number System?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 13, 2015, 06:21
Default Systematic Error due to Accuracy of Number System?
  #1
New Member
 
Cat
Join Date: Aug 2014
Posts: 6
Rep Power: 2
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
Default
  #2
Senior Member
 
Matt
Join Date: Aug 2014
Posts: 281
Rep Power: 3
MBdonCFD 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 MBdonCFD; March 13, 2015 at 13:39. Reason: spelling correction
MBdonCFD is offline   Reply With Quote

Reply

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 7 January 3, 2013 19:09
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 17:47.