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

CFX multiphase flow with poly-dispersed approach

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 4, 2019, 09:30
Default CFX multiphase flow with poly-dispersed approach
  #1
New Member
 
Sibel
Join Date: Apr 2017
Posts: 18
Rep Power: 9
tsibel is on a distinguished road
Hi everybody
I have started the boiling flow simulation (RPI model) in a rod bundle system. First I did it with the mono approach and I obtained convergence. After that, I have tried it with the poly-dispersed (iMUSIG) approach. But my simulations stop after some iterations (around 500 iterations) with this error: c_fpx_handler: Floating point exception: Invalid Operand.


What I have tried: different time scales (smaller), different turbulence models, coarser meshes, checking the BCs. But I could not prevent the error.


Do you have any recommendations?
Many thanks
tsibel is offline   Reply With Quote

Old   November 4, 2019, 16:11
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
FAQ: https://www.cfd-online.com/Wiki/Ansy...do_about_it.3F
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   November 8, 2019, 04:52
Default
  #3
New Member
 
Sibel
Join Date: Apr 2017
Posts: 18
Rep Power: 9
tsibel is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post

Hi ghorrocks


Many thanks for the answer. However I tried everything which is written there. I am suspicious about the ANSYS version for the boiling flow and clusters communication. Because when I changed for example the partition on the clusters, the error comes after 1000 iteration. And this error occurs while my solution is converging. It just suddenly stops without diverging.


How can I handle it?


Thanks
tsibel is offline   Reply With Quote

Old   November 8, 2019, 09:07
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,803
Rep Power: 32
Opaque will become famous soon enough
Have you contacted ANSYS CFX support for suggestions?

The inhomogeneous MUSIG Wall Boiling model is not a trivial simulation, and you can benefit from their advice.


For the "Invalid Operand" message, I have taken some information from the GNU compiler floating-point exceptions document



Quote:
‘Invalid Operation’
This exception is raised if the given operands are invalid for the operation to be performed. Examples are (see IEEE 754, section 7):

Addition or subtraction: ∞ - ∞. (But ∞ + ∞ = &infin.
Multiplication: 0 · ∞.
Division: 0/0 or ∞/∞.
Remainder: x REM y, where y is zero or x is infinite.
Square root if the operand is less than zero. More generally, any mathematical function evaluated outside its domain produces this exception.
Conversion of a floating-point number to an integer or decimal string, when the number cannot be represented in the target format (due to overflow, infinity, or NaN).
Conversion of an unrecognizable input string.
Comparison via predicates involving < or >, when one or other of the operands is NaN. You can prevent this exception by using the unordered comparison functions instead; see FP Comparison Functions.

Last edited by Opaque; November 8, 2019 at 09:14. Reason: Improve answer
Opaque is offline   Reply With Quote

Old   November 8, 2019, 09:41
Default
  #5
New Member
 
Sibel
Join Date: Apr 2017
Posts: 18
Rep Power: 9
tsibel is on a distinguished road
Quote:
Originally Posted by Opaque View Post
Have you contacted ANSYS CFX support for suggestions?

The inhomogeneous MUSIG Wall Boiling model is not a trivial simulation, and you can benefit from their advice.


For the "Invalid Operand" message, I have taken some information from the GNU compiler floating-point exceptions document

Hi Opaque


I have not contacted with ANSYS support, I will try it.


I have already read those information. So that I tried almost everything. If the error came from one of these reasons, would it be done a peak before the error or and any divergence? In my case, it is just stopping while it is converging. And the another question is why the error is coming at different iterations when I change only the CPU in the clusters?



Note: I have already simulated mono dispersed flow without any error with the cluster.
tsibel is offline   Reply With Quote

Old   November 8, 2019, 09:51
Default
  #6
Senior Member
 
Join Date: Jun 2009
Posts: 1,803
Rep Power: 32
Opaque will become famous soon enough
If the model contains anything close to square roots, logarithms or inverse trigonometric functions or the like where the argument could be invalid, the solution can suddenly fails w/o warning.

Assume the solution is well behaved near the limit of the argument, but for some round off the argument becomes invalid, there is no smooth transition and the CPU will trigger the floating-point exception.

About the cluster, is it homogeneous, i.e. are all the CPU's are identical? Do you use the exact same number of partitions between simulations? Are you using memory settings in the command line? Are you running in double precision, or single precision?

Round-off is a function of the order of execution of the operations regardless of precision, but even more sensitive in single precision.
Opaque is offline   Reply With Quote

Old   November 8, 2019, 10:31
Default
  #7
New Member
 
Sibel
Join Date: Apr 2017
Posts: 18
Rep Power: 9
tsibel is on a distinguished road
Quote:
Originally Posted by Opaque View Post
If the model contains anything close to square roots, logarithms or inverse trigonometric functions or the like where the argument could be invalid, the solution can suddenly fails w/o warning.

Assume the solution is well behaved near the limit of the argument, but for some round off the argument becomes invalid, there is no smooth transition and the CPU will trigger the floating-point exception.

About the cluster, is it homogeneous, i.e. are all the CPU's are identical? Do you use the exact same number of partitions between simulations? Are you using memory settings in the command line? Are you running in double precision, or single precision?

Round-off is a function of the order of execution of the operations regardless of precision, but even more sensitive in single precision.

First of all many thanks. I understood but how can I solve the problem? I have tried everything, anything comes to my mind more (if it comes from the model).


No all the CPUs are not identical. One Partition is consisted of only Intel 20-Core Xeon 2,4 GHz and the other one Intel 16-Core Xeon 2,3 GHz and Intel 8-Core Xeon 3,3 GHz.

Yes I am using same number of partitions between simulations. With double precision.


"Are you using memory settings in the command line?" What is this?


I have also heard that version difference of ANSYS also changes the simulation behaviour. Especially for ANSYS 19. They changed the void implementation mechanism to the first cell near the wall. Do you know something about it?
tsibel is offline   Reply With Quote

Old   November 8, 2019, 17:06
Default
  #8
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
My 50 cents: another thing you can try is a different partition method. Default is MeTis. Numerous other options are there to investigate. Not sure if it helps. Mostly it is a matter of phyiscs.
So, another 50 cents: Try to avoid the value 0 in various BC-settings, like volume fractions, number fractions, etc. 1e-5 for volume fraction is a limit I tend to use.
Gert-Jan is offline   Reply With Quote

Old   November 11, 2019, 01:09
Default
  #9
Senior Member
 
M
Join Date: Dec 2017
Posts: 642
Rep Power: 12
AtoHM is on a distinguished road
Little addition to Gert-Jan's answer: you can also enforce minimum volume fractions inside the Domain under Domain Properties within the Material section.
AtoHM is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX siphon two phase flow - boundary conditions bolus13 CFX 18 August 25, 2016 18:39
Multiphase flow modeling: CFX or FLUENT? Paul Main CFD Forum 8 January 24, 2012 09:25
Some quiestions on multiphase flow fjalil CFX 4 June 17, 2009 12:32
Compressibility on multiphase flow on CFX 11 Bayard Morales CFX 0 October 5, 2007 14:59
Multiphase flow. Dispersed and free surface model Luis CFX 8 May 29, 2007 18:13


All times are GMT -4. The time now is 20:51.