Skip to content

Commit

Permalink
no newline in report_definitions and replace root
Browse files Browse the repository at this point in the history
  • Loading branch information
millerj97 committed Dec 17, 2024
1 parent ba1ff61 commit 2b0824e
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions doc/source/user_guide/solver_settings/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -244,28 +244,22 @@ These examples accesses the list of zone surfaces:

.. code-block::
>>> root.solution.report_definitions.flux["mass_flow_rate"] = {}
>>> root.solution.report_definitions.flux[
"mass_flow_rate"
].zone_names.allowed_values()
>>> solver.settings.solution.report_definitions.flux["mass_flow_rate"] = {}
>>> solver.settings.solution.report_definitions.flux["mass_flow_rate"].zone_names.allowed_values()
['symmetry-xyplane', 'hot-inlet', 'cold-inlet', 'outlet', 'wall-inlet', 'wall-elbow', 'interior--elbow-fluid']
.. code-block::
>>> root.solution.report_definitions.flux["mass_flow_rate"] = {}
>>> root.solution.report_definitions.flux[
"mass_flow_rate"
].zone_names.get_attr("allowed-values")
>>> solver.settings.solution.report_definitions.flux["mass_flow_rate"] = {}
>>> solver.settings.solution.report_definitions.flux["mass_flow_rate"].zone_names.get_attr("allowed-values")
['symmetry-xyplane', 'hot-inlet', 'cold-inlet', 'outlet', 'wall-inlet', 'wall-elbow', 'interior--elbow-fluid']
.. code-block::
>>> root.solution.report_definitions.flux["mass_flow_rate"] = {}
>>> root.solution.report_definitions.flux[
"mass_flow_rate"
].zone_names.get_attrs(["allowed-values"])
>>> solver.settings.solution.report_definitions.flux["mass_flow_rate"].zone_names.get_attrs(["allowed-values"])
{'allowed-values': ['symmetry-xyplane', 'hot-inlet', 'cold-inlet', 'outlet', 'wall-inlet', 'wall-elbow', 'interior--elbow-fluid']}
Expand Down

0 comments on commit 2b0824e

Please sign in to comment.