.. _python_API_heat:

.. currentmodule:: flow360

**************************
Heat Transfer
**************************

This script demonstrates the setup and processing of a Conjugate Heat Transfer (CHT) simulation involving both fluid and solid domains using the Flow360 Python API. It outlines the procedure for loading a mesh, defining simulation parameters including fluid and solid models with material properties and heat sources, configuring outputs, running the simulation, and generating a post-processing report with visualizations.

.. literalinclude:: ../../../../../Flow360/examples/post_processing/special_features/heat_transfer.py
  :language: python
  :linenos:

Notes
=====

- Conjugate Heat Transfer is enabled by defining a ``fl.Solid`` model within the ``models`` list of ``SimulationParams``.
- Solid material properties, such as ``thermal_conductivity``, and internal heat generation, like ``volumetric_heat_source``, are specified within the ``fl.Solid`` model configuration.
- Specific thermal boundary conditions, such as adiabatic walls, are applied using the ``heat_spec`` parameter within the ``fl.Wall`` model, utilizing conditions like ``fl.HeatFlux``.
