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

CEL variable 'volcvol' leads to Error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2017, 09:53
Default CEL variable 'volcvol' leads to Error
  #1
New Member
 
Artur
Join Date: Jan 2017
Posts: 11
Rep Power: 9
Pumba is on a distinguished road
Hey guys,

i'm trying to make my own drag model for a multiphase application with varying morphology.

Anyhow, i need the cell volume, so i used the 'volcvol' variable in one of my equations for the drag. This leads to the following error:

Code:
 ======================================================================
 OUTER LOOP ITERATION =    1                    CPU SECONDS = 3.844E+01
 ----------------------------------------------------------------------
 |       Equation       | Rate | RMS Res | Max Res |  Linear Solution |
 +----------------------+------+---------+---------+------------------+
 | Wallscale-Bulk       | 0.00 | 1.9E-06 | 4.5E-04 | 10.3  3.0E-02  OK|
 +----------------------+------+---------+---------+------------------+
 ----------------------------------
 Error in subroutine  cal_CVVOL :
 Error calculating control volume volumes
 GETVAR originally called by subroutine  cal_CAB_MOM
 
 +--------------------------------------------------------------------+
 | ERROR #001100279 has occurred in subroutine ErrAction.             |
 | Message:                                                           |
 | Stopped in routine GV_ERROR                                        |
 |                                                                    |
 |                                                                    |
 |                                                                    |
 |                                                                    |
 |                                                                    |
 +--------------------------------------------------------------------+
I'm using volcvol for the damping of the turbulence at the free surface as well and it works fine there. Is there some workaround for this?

I have no experience with user fortran at all, so i'm using only CEL for my model.
Pumba is offline   Reply With Quote

Old   January 30, 2017, 18:17
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,806
Rep Power: 32
Opaque will become famous soon enough
If you look at the discretization theory for ANSYS CFX, the source terms are evaluated on the sector of the elements of the mesh, not on the control volumes.

The variable volume of control volumes cannot be used for expressions that are evaluated on elements of the mesh.

It is odd (to me) a source term is a function of the mesh size. Wonder if there is a confusion on how the source terms are implemented.

Hope the above helps,
Opaque is offline   Reply With Quote

Old   January 30, 2017, 18:56
Default
  #3
New Member
 
Artur
Join Date: Jan 2017
Posts: 11
Rep Power: 9
Pumba is on a distinguished road
Yes, you are correct, i actually got a response from the ANSYS Support today. It's necessary to add an algebraic additional variable for volcvol. But it only works if you add "Under Relaxation Factor = 1.0" in the CCL of the AV.
This additional variable interpolates volcvol onto the cell faces.

I don't think there is any confusion, i just made a function that is '1' at the free surface and '0' everywhere else. I'm sure there must be a better way but it seems to work so far.
Pumba 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
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
Undeclared Identifier Errof UDF SteveGoat Fluent UDF and Scheme Programming 7 October 15, 2014 07:11
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25
POSDAT problem piotka STAR-CD 4 June 12, 2009 08:43
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


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