> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ansys Common Fluids CffConsumer API (for writing data)

## Using the Ansys Common Fluids API to Write Data

The [ansys::CffConsumer](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/classansys_1_1_cff_consumer.md) class can be used to write a CFF case file or a pair of CFF case and results files from your program, so they can then be read by any Ansys applications that support CFF files.

This class has methods to open a specific file and write mesh, topology, physics, and settings information to the CFF case file and/or solution and settings data to the CFF results file.

An object of this class can be created using a 'C++' factory function ([ansys::getDataConsumer](https://developer.synopsys.com/docs/cff/common-fluids-format-sdk-guide/2025-r2/namespaceansys#ab581ca82a4d1ec785c07a865ee73d1fd)) and subsequently used directly.

> [!NOTE]
>
> A set of wrapper functions are provided to allow access to the same functionality from a 'C' program.
