CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Significant digits of variables in CFX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 8, 2020, 16:00
Default Significant digits of variables in CFX
  #1
New Member
 
Jerry
Join Date: Sep 2019
Location: Queensland, Australia
Posts: 17
Rep Power: 7
Jerry190607 is on a distinguished road
Hi everyone,

I am using the expression in CFX to express a polynomial function with the coefficients of 16 significant digits. It seems that CFX does not read all the significant digits of the coefficient because the calculation result of the expression is incorrect. I am wondering how many significant digits are defaulted in CFX. Is there any chance to modify the significant digits in CFX? If so, how to do it? Thank you!

Regards,
Jerry
Jerry190607 is offline   Reply With Quote

Old   July 8, 2020, 17:59
Default
  #2
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,913
Rep Power: 28
Gert-Jan will become famous soon enough
Do you use double precision?
Gert-Jan is offline   Reply With Quote

Old   July 9, 2020, 03:06
Default
  #3
New Member
 
Jerry
Join Date: Sep 2019
Location: Queensland, Australia
Posts: 17
Rep Power: 7
Jerry190607 is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
Do you use double precision?
Yes, I did.
Jerry190607 is offline   Reply With Quote

Old   July 9, 2020, 09:46
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,873
Rep Power: 33
Opaque will become famous soon enough
Can you share the expression?

I would like to see an expression that requires that many digits to be accurate within engineering limits. What kind of precision is being asked on the left-hand side? Perhaps the expression is not being written in a "less sensitive form" to round off.

Polynomials are supposed to be written using Horner's method or something along those lines to reduce round off as the higher powers come into play.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   July 13, 2020, 13:44
Default
  #5
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23
evcelica is on a distinguished road
You could calculate a table in different software, and use this table as a user function in CFX Pre instead of the polynomial fit.
evcelica is offline   Reply With Quote

Reply

Tags
cfx, significant digits


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
Need help in calculating variables in cfx post shaswat CFX 4 March 29, 2012 04:36
CFX - Solidworks Flow, Impeller comparison aerospace_guy_ CFX 8 March 20, 2012 23:06
cfx expression variables Manoj Kumar CFX 2 February 16, 2006 11:03
How to request cfx to write variables at a point? Uday CFX 1 February 6, 2006 00:42
CFX 4.4 installation problem Pandu Sattvika CFX 1 December 1, 2001 05:07


All times are GMT -4. The time now is 04:36.