[DOC]: Deprecated APIs and Fluent Setting Warnings

Open
#5,649 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
64/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
documentation

Research direction

Start from the deprecated API reference page and compare it with the listed examples such as lunar_lander_thermal.py, modeling_ablation.py, and modeling_cavitation.py. Run or search those scripts for the deprecated attributes file, results, setup, solution, and the Fluent setting values named in FS01-FS06. Update each script to settings.*, fields.reduction, or config.* as indicated, then add the missing deprecated APIs documentation. Done means the named scripts run without deprecation warnings and the docs page lists every D01-D07 entry.

Written by the indexing model from the issue text.

Description

documentation
🔗 Affected page or URL

https://fluent.docs.pyansys.com/version/0.42/examples/00-fluent/lunar_lander_thermal.html

⚠️ What is wrong or missing?

Deprecated APIs

ID Message Affected Scripts
D01 'file' is deprecated. Use 'settings.file' instead. lunar_lander_thermal.py
D02 'results' is deprecated. Use 'settings.results' instead. lunar_lander_thermal.py
D03 'setup' is deprecated. Use 'settings.setup' instead.
D04 'solution' is deprecated. Use 'settings.solution' instead. lunar_lander_thermal.py
D05 PyFluentDeprecationWarning: Please use the module level 'config' instead.
D06 PyFluentDeprecationWarning: reduction is deprecated. Use fields.reduction instead.
DO7 PyFluentDeprecationWarning: 'EXAMPLES_PATH' is deprecated, use 'config.examples_path' instead.

Fluent Setting warnings

ID Message Affected Scripts
FS01 Warning: Value unsteady-1st-order for setting time is deprecated. Please use one of (steady transient) instead. modeling_ablation.py, battery_pack.py, Modeling_solidification_workflow.py, single_battery_cell_workflow.py, transient_compressible_nozzle_workflow.py, battery_pack.py
FS02 Warning: Value unsteady-2nd-order for setting time is deprecated. Please use one of (steady transient) instead. modeling_ablation.py, lunar_lander_thermal.py
FS03 Warning: Value constant for setting option is deprecated. Please use one of (value polynomial piecewise-linear piecewise-polynomial power-law sutherland kinetic-theory cross herschel-bulkley carreau non-newtonian-power-law) instead. MixingTank_DOE.py
FS04 Warning: Value constant for setting option is deprecated. Please use one of (value ideal-gas incompressible-ideal-gas rgp-table real-gas-soave-redlich-kwong real-gas-peng-robinson real-gas-aungier-redlich-kwong real-gas-redlich-kwong real-gas-nist boussinesq polynomial piecewise-linear piecewise-polynomial compressible-liquid) instead. modeling_cavitation.py
FS05 Warning: Value constant for setting option is deprecated. Please use one of (value defined-per-uds user-defined) instead. single_battery_cell_workflow.py
FS06 Warning: Value constant for setting option is deprecated. Please use one of (value polynomial piecewise-linear piecewise-polynomial nasa-9-piecewise-polynomial) instead. radiation_headlamp.py
✏️ Suggested improvement

Suggestions:

  • Document in Fluent Docs new Depracated APIs
  • Deprecated APIs:
    • lunar_lander_thermal.py:
      • file → settings.file
      • solution → settings.solution
      • results → settings.results
📌 Additional context

No response

Dominant language
Python
Stars
550
Forks
86
Avg merge
2d 1h
Merged PRs (30d)
58

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ansys/pyfluent

All issues in ansys/pyfluent

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.