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

How to access the Phase volume fraction in Expressions

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2018, 04:37
Default How to access the Phase volume fraction in Expressions
  #1
Member
 
Anh
Join Date: Sep 2014
Posts: 72
Rep Power: 12
dinhanh is on a distinguished road
Hello,

I am trying to implement the cavitation model such as Merkle model other than the default model in CFX. The model requires the liquid volume fraction at every calculation step to update the mass transfer rate. But I do not know how to access the variable phase volume faction in CFX-Expressions, when in the variable tab there are no phase volume fraction as in picture 1.

So in the expression that I defined: Vapor.Volume Fraction is pointed to volume fraction of vapor phase name as in picture 2.

Solution was diverged:

ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Floating point exception: Overflow

An error has occurred in cfx5solve: |
| |
| The ANSYS CFX solver exited with return code 1. No results file |
| has been created.


So I think I were wrong to access the phase volume fraction. Does anyone know about this problem, please help me. Thank you very much!
Attached Images
File Type: jpg 1.jpg (106.3 KB, 80 views)
File Type: jpg 2.jpg (53.6 KB, 51 views)
dinhanh is offline   Reply With Quote

Old   April 29, 2018, 07:54
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You are correctly accessing the volume fraction variable. It would give you a CEL error message if you were making an error there. Your problem is that your cavitation model is not numerically stable. This is not a surprise as cavitation models are highly numerically unstable at the best of times due to the massive variable gradients inherent in the model.

Before trying your own cavitation model on your own fluid, have you:
* Used the built in cavitation model using water and check that works
* Used the built in cavitation model using your fluid and check that works
* only then should you start introducing your own cavitation model with knowledge that everything else is working.

Depending on exactly what you are doing you may well have to some numerical stabilisation stuff - some introductory stuff is described in the FAQ: https://www.cfd-online.com/Wiki/Ansy...do_about_it.3F
dinhanh likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   April 29, 2018, 08:08
Default
  #3
Member
 
Anh
Join Date: Sep 2014
Posts: 72
Rep Power: 12
dinhanh is on a distinguished road
Hi ghorrocks,

Thank you for your comments!

I will try as you suggest.
dinhanh 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
multiphaseEulerFoam (OF2.3.0) : Courant number explodes when running in parallel Mehrez OpenFOAM Running, Solving & CFD 10 May 18, 2016 12:44
Finding Volume fraction at outlet when it changes its phase. praveen.jpk Main CFD Forum 1 August 18, 2014 08:18
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
Mass fraction and volume fraction eric weddle CFX 0 September 26, 2011 06:02
Errno 24 linux ivanwhlau OpenFOAM Running, Solving & CFD 6 July 1, 2009 11:16


All times are GMT -4. The time now is 17:53.