Skip to main content

Prime Mesh Python client library 2024 R1 SP1

ansys.meshing.prime.examples.download_deformed_blade_fmd

Last update: 22.02.2024

ansys.meshing.prime.examples.download_deformed_blade_fmd(destination=None, force=False)

Download the FMD file for the turbine blade 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.
  • Return type: Union[str, PathLike]

Examples

>>> import ansys.meshing.prime as prime
>>> import ansys.meshing.prime.examples as prime_examples
>>> with prime.launch_prime() as session:
>>>     model = session.model
>>>     deformed_blade = prime_examples.download_deformed_blade_fmd()
>>>     with prime.FileIO(model) as io:
>>>         _ = io.import_cad(deformed_blade, params=prime.ImportCADParams(model))
>>>     print(model)