Author Topic: Can I get the number of faces in a boundary zone to use it in a variable?  (Read 498 times)

Offline pico

  • Newbie
  • *
  • Posts: 19
  • Reputation: +0/-0
  • Searching for solution
    • View Profile
Advertisement
Hi,

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

Thanks.

Offline william

  • Full Member
  • ***
  • Posts: 159
  • Reputation: +15/-0
  • Know it, share it.
    • View Profile
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.