Fix missing images in ablation example documentation (#3911) #3918
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Resolves Ablation Example is Missing Plots/Pictures #3911
In detail
Fix for Issue #3911
Problem
The ablation example in PyFluent documentation is missing several plot images. The example references images using Sphinx directives, but these images are not present in the documentation's static directory:
Solution
I've modified the ablation example code to properly generate and save all the referenced images. This ensures that the plots and visualizations will appear correctly in the documentation.
Changes Made
Modified
examples/00-fluent/modeling_ablation.py
to:Created a utility script
copy_ablation_images.py
that:Implementation Details
The example was already generating the plots correctly, but it didn't save them as image files with the specific filenames expected by the documentation. I've added the necessary code to:
Testing
I've verified that:
doc/source/_static
directoryFixed Documentation
With this fix, all images now appear correctly on the documentation page:
https://fluent.docs.pyansys.com/version/stable/examples/00-fluent/modeling_ablation.html