General

General

In my CFX setup, I use the variable “Volume of Finite Volumes” (volcvol) in some expressions. In the first time step, CFX fails with the error message Error in subroutine cal_CVVOL : Error calculating control volume volumes GETVAR originally called by subroutine cal_CAB_MOM What could be the reason for this error and is there a workaround?

    • FAQFAQ
      Participant

      The variable “Volume of Finite Volumes” (volcvol) is only available at vertices. The error message indicates that CFX tries to evaluate “Volume of Finite Volumes” on a cell center based locator instead where it is not defined, that is, your setup uses the variable “Volume of Finite Volumes” in expressions that are evaluated on different (non-vertex) mesh entities. As a workaround, you can create an algebraic Additional Variable “myVolcVol” (Variable Type “Unspecified”) to hold the value of “Volume of Finite Volumes” and mark the Additional Variable as permanent, e.g. by setting a underrelaxation factor of 1. LIBRARY: ADDITIONAL VARIABLE: myVolcVol Option = Definition Tensor Type = SCALAR Under Relaxation Factor = 1.0 Units = [m^3 ] Variable Type = Unspecified END END ANSYS CFX is then able to interpolate the Additional Variable to other entities than vertices, if you use the Additional Variable “myVolcVol” instead of the solver variable “Volume of Finite Volumes” in any other expression.