CAPE Forum

Ansys => Fluent => Topic started by: pico on December 27, 2020, 04:41:45 PM

Title: Can I get the number of faces in a boundary zone to use it in a variable?
Post by: pico on December 27, 2020, 04:41:45 PM
Hi,

How can I get the number of faces in a boundary zone to use it in a variable in Fluent?

Thanks.
Title: Re: Can I get the number of faces in a boundary zone to use it in a variable?
Post by: william on December 27, 2020, 04:44:08 PM
Hi,

How can I get the number of faces in a boundary zone to use it in a variable in Fluent?

Thanks.

Create a variable, then use the following Scheme code snippet

(define (ncf ct_id) (car (%inquire-faces-and-nodes-on-thread ct_id)))

Then just use

(ncf 4)

to get the number of faces in thread with ID 4.