Physics models#
The guide for each Python physics model uses a Solver
session object
created using the code below. For the physics models to be active you generally
need to have loaded a case or mesh file; e.g.:
>>> import ansys.fluent.core as pyfluent
>>> from ansys.fluent.core import examples
>>> file_name = examples.download_file("mixing_elbow.cas.h5", "pyfluent/mixing_elbow")
>>> solver = pyfluent.launch_fluent()
>>> solver.settings.file.read_case(file_name=file_name)