CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

User Defined Function Error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 7, 2016, 16:27
Default User Defined Function Error
  #1
Member
 
Join Date: Jun 2016
Posts: 52
Rep Power: 9
EDE16 is on a distinguished road
Hi all,

Making some user defined functions and hitting an issue with one of them. Just doing a pressure ratio at the same point, total/static. However it tells me "One or more values cannot be plotted: floating point exception [Invalid operation]". If I change the / symbol to either + - or * it goes away.

Ive tested the reports at the point and it gives me two non-zero values so Im stumped as to what the issue is, any ideas??
EDE16 is offline   Reply With Quote

Old   August 9, 2016, 10:31
Default
  #2
Senior Member
 
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 17
fluid23 is on a distinguished road
Sounds like a divide by zero error. Are you reporting absolute pressure or gauge pressure? If your static pressure is the same as your reference pressure value then you will get a value of 0. Report them independently then try to calculate the ratio by hand, you should immediately see what has happened.
fluid23 is offline   Reply With Quote

Old   February 6, 2017, 12:41
Default Report with floating point exception
  #3
New Member
 
Ken Friedman
Join Date: Feb 2017
Posts: 1
Rep Power: 0
chenfriedman is on a distinguished road
Having the same issue - a report that is a non-zero number and once I try to divide it by another non-zero report - I get an error.
Also get that error when trying to do 1/ReportValue.

Check for the report to be non-zero multiple times.
Multiplying by a number works, dividing by a number works, but not what I need.

Any idea?
chenfriedman is offline   Reply With Quote

Old   February 20, 2017, 10:04
Default
  #4
Senior Member
 
acalado's Avatar
 
André
Join Date: Mar 2016
Posts: 133
Rep Power: 10
acalado is on a distinguished road
could be that static pressure is zero or near zero? Try using absolute values (add 101325Pa ?)
__________________
Sapere aude!
acalado 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
Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x Saxwax OpenFOAM Installation 25 November 29, 2013 05:34
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 04:37
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00


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