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

Can any ambiguous function found in both report and field function creates problem?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 12, 2021, 05:06
Question Can any ambiguous function found in both report and field function creates problem?
  #1
New Member
 
Abhishek
Join Date: Sep 2020
Location: Magdeburg, Germany
Posts: 10
Rep Power: 6
AbhishekShingalaCFD is on a distinguished road
What things should I need to take care of if I am getting warning in Star CCM+ output window as mentioned below:

//Warning: Function "eta_T" is ambiguous, found in multiple sources: 'Field Functions' and 'Reports'

//Warning: Function "H_HPO" is ambiguous, found in multiple sources: 'Field Functions' and 'Reports'

Additional Information: These both functions are my objective functions, which I want to monitor and plot over iterations (for steady case) and add as a stopping criterion (when these both function values become stable... simulation converges...).

Definition of field function: eta_T= function(input parameter, parameter obtained during simulation(e.g. volume fraction of oil))
1. I created user field function eta_T=1-(Vol.fraction at outlet/vol.fraction at inlet)
2. Then I created a report.
3. Then I created a monitor and plot.
4. Over the number of iteration these value will improve. I did that to observe this value over an iterations (steady case) and then set into stopping criteria.

Similarly the other objective function = function (input parameter, parameter value obtained during imulation)

Last edited by AbhishekShingalaCFD; May 12, 2021 at 13:48. Reason: More helpful
AbhishekShingalaCFD is offline   Reply With Quote

Old   May 12, 2021, 13:27
Default
  #2
Senior Member
 
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 18
fluid23 is on a distinguished road
It would help if you showed the definitions of these functions.
fluid23 is offline   Reply With Quote

Old   May 12, 2021, 13:52
Default
  #3
New Member
 
Abhishek
Join Date: Sep 2020
Location: Magdeburg, Germany
Posts: 10
Rep Power: 6
AbhishekShingalaCFD is on a distinguished road
Hello Matt, thanks for reply.
I have tried to explain definition in the questions. I am wondering simulation still runs fine (because these are just warning). Furthermore, I have experimental data also, so perhaps I will compare simulation result soon to check if these warning has any effect on solution and should I rely on the result or not. Meanwhile, if you can guide further than it would be helpful.
AbhishekShingalaCFD is offline   Reply With Quote

Old   May 12, 2021, 13:56
Default
  #4
Senior Member
 
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 18
fluid23 is on a distinguished road
Without seeing the actual text that you entered that Star-CCM+ finds ambiguous, I cannot be of much help. If you can share the definitions of these field functions, perhaps someone will be able to spot the issue.
fluid23 is offline   Reply With Quote

Old   May 12, 2021, 15:30
Default
  #5
New Member
 
Abhishek
Join Date: Sep 2020
Location: Magdeburg, Germany
Posts: 10
Rep Power: 6
AbhishekShingalaCFD is on a distinguished road
I found the reason, I was unnecessarily defining functions in user field function, which could also define in report>>Expression.
AbhishekShingalaCFD is offline   Reply With Quote

Old   May 12, 2021, 16:15
Default
  #6
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
You have both a field function and a report with the same name. Usually this does not happen because star will give them default names that have function and report in their names unless you manually go in and rename their named references to be the same.
LuckyTran is offline   Reply With Quote

Old   May 13, 2021, 00:00
Default
  #7
cwl
Senior Member
 
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 438
Rep Power: 18
cwl is on a distinguished road
Quote:
Can any ambiguous function found in both report and field function creates problem?
Yes, it can. And it will.

As soon as your simulation becomes reasonably complicated and customized containing more than few Field Functions and Reports referencing each other - you'll get very confused about which function or report (having the same name) you're calling inside another function or report.

Debugging and unraveling such a tangle will be very painful.

Last edited by cwl; May 13, 2021 at 06:20.
cwl is offline   Reply With Quote

Reply

Tags
star ccm+, steady, user field functions


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
Cannot evaluate field function Density karahan STAR-CCM+ 5 February 25, 2021 12:20
Field function for force report's vector position (X, Y, Z) Allante STAR-CCM+ 2 December 10, 2020 12:25
field function report new value each iteration hebeldebel STAR-CCM+ 7 September 6, 2017 03:01
Field function lcg44 STAR-CCM+ 1 November 30, 2011 00:13
Force Report help~ or maybe Custom Field Function sailor FLUENT 0 April 13, 2011 04:45


All times are GMT -4. The time now is 16:38.