ansys.meshing.prime.examples
Last update: 17.07.2025ansys.meshing.prime.examples.download_elbow_pmdat(destination=None, force=False)
Download the PMDAT file for the mixing elbow example.
-
Parameters: destination : Path to which you download the example file. The default is
None, in which case the default path for app data is used.force : Option to download the example file. The default is
False, in which case if the example file is cached, it is reused. -
Returns:
str: Local path to the downloaded example file.
Examples
>>> import ansys.meshing.prime as prime
>>> import ansys.meshing.prime.examples as prime_examples
>>> with prime.launch_prime() as session:
>>> model = session.model
>>> elbow = prime_examples.download_elbow_pmdat()
>>> with prime.FileIO(model) as io:
>>> _ = io.read_pmdat(elbow, params=prime.FileReadParams(model))
>>> print(model)