We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
3D Design

3D Design

Topics related to Ansys Discovery and Ansys SpaceClaim.

Trouble Extracting Fluid Volume in PyAnsys Geometry for CFD Setup

    • qczh
      Subscriber

      Hi everyone,  

      I’m using PyAnsys Geometry to create a rectangular tube for a CFD simulation in Fluent. After successfully building the 3D model, I attempted to extract the volume for the fluid zone using PrepareTools.extract_volume_from_faces().  

      I followed the PyAnsys Geometry manual and selected the four end faces as sealing_faces, and the internal wall as inside_faces, as I usually do with SpaceClaim GUI. However, the function returns None, and no fluid zone is created.

      I’ve attached my code and some screenshots below.

       

      Any insight or advice would be much appreciated, especially regarding how to extract the blue volume as it shown in the below figure.

      Additionally, once the fluid volume is successfully extracted, how can I:  1. Suppress the lid from physics within this programmatic workflow?  2. Share topology between the solid and fluid bodies to ensure correct contact interfaces for Fluent?  

      Thanks in advance for your help!

Viewing 0 reply threads
  • You must be logged in to reply to this topic.