CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Error on Iso-surface Creation (https://www.cfd-online.com/Forums/fluent/95332-error-iso-surface-creation.html)

shashank312 December 13, 2011 19:39

Error on Iso-surface Creation
 
>(do ((x -22.375 (+ x 0.0625)) (i 1 (+ i 1))) ((> x -21.5))
(ti-menu-load-string
(format #f "surface/iso-surface x-coordinate x-~02d () ~a ()" i x))
)
surface/iso-surface x-coordinate xinvalid command [x-coordinate]
-01 () -22.375 ()surface/iso-surface x-coordinate xinvalid command [x-coordinate]
-02 () -22.3125 ()surface/iso-surface x-coordinate xinvalid command [x-coordinate]
-03 () -22.25 ()surface/iso-surface x-coordinate xinvalid command [x-coordinate]
-04 () -22.1875 ()surface/iso-surface x-coordinate xinvalid command [x-coordinate]
-05 () -22.125 ()surface/iso-surface x-coordinate xinvalid command [x-coordinate]
-06 () -22.0625 ()surface/iso-surface x-coordinate xinvalid command [x-coordinate]
-07 () -22 ()surface/iso-surface x-coordinate xinvalid command [x-coordinate]
-08 () -21.9375 ()surface/iso-surface x-coordinate xinvalid command [x-coordinate]
-09 () -21.875 ()surface/iso-surface x-coordinate xinvalid command [x-coordinate]
-10 () -21.8125 ()surface/iso-surface x-coordinate xinvalid command [x-coordinate]
-11 () -21.75 ()surface/iso-surface x-coordinate xinvalid command [x-coordinate]
-12 () -21.6875 ()surface/iso-surface x-coordinate xinvalid command [x-coordinate]
-13 () -21.625 ()surface/iso-surface x-coordinate xinvalid command [x-coordinate]
-14 () -21.5625 ()surface/iso-surface x-coordinate xinvalid command [x-coordinate]
-15 () -21.5 ()#f

I am doing a two-phase flow problem. Is there a different syntax to specify the domain (primary phase, secondary phase, mixture) as well?

fox000002 December 13, 2011 22:52

Code:

(define (hy-create-iso-surface-x name from-surf from-zone pos)
  (ti-menu-load-string
    (format #f "/surface/iso-surface x-coordinate ~a ~a () ~a () ~a ()" name from-surf from-zone pos)
  )
)

(hy-create-iso-surface-x "surf-x1" "" "" 0.01)


Add one more '()' to the command string.

(format #f "/surface/iso-surface x-coordinate ~a () () ~a ()" name pos) )

shashank312 December 14, 2011 01:06

I am unable to create the surface with the syntax you provided. I reiterate again that I am using VOF method. And when I create just on surface instead of a string, it asks me the domain of my iso-surface and I say mixture. So, your text command works well for a single phase problem I believe. But then again, I maybe wrong. Suggestions welcome.

coglione December 14, 2011 03:33

For VOF-applications you definitely need to specify for either which phase or the mixture an iso-surface has to be created. Grid information like coordinates are defined on the mixture level, thus
(format #f "/surface/iso-surface mixture x-coordinate ~a () () ~a ()" name pos) )

may do the trick.

cheers


All times are GMT -4. The time now is 09:03.