Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
7cf97c9
implement solution for Rewrite General section of API reference #1425
seanpearsonuk Mar 20, 2023
2f9c28c
implement solution for Rewrite General section of API reference #1425
seanpearsonuk Mar 20, 2023
9849ee1
Merge branch 'doc/wording' of https://github.com/pyansys/pyfluent int…
seanpearsonuk Mar 20, 2023
915a718
implement solution for Rewrite General section of API reference #1425…
seanpearsonuk Mar 20, 2023
cf614f6
implement solution for Rewrite General section of API reference #1425…
seanpearsonuk Mar 20, 2023
bcff827
implement solution for Re-word the sections on the API reference Gene…
seanpearsonuk Mar 20, 2023
d2f91a2
implement solution for Contains the standard Ansys Fluent release wor…
seanpearsonuk Mar 20, 2023
67ea17f
implement solution for Provides the standard Fluent launch modes word…
seanpearsonuk Mar 20, 2023
e82a11e
implement solution for launch_fluent product_version argument doc #1434
seanpearsonuk Mar 21, 2023
13e1cf1
implement solution for version in launch_fluent #1435
seanpearsonuk Mar 21, 2023
0f02a12
implement solution for launch_fluent additional_arguments documentati…
seanpearsonuk Mar 21, 2023
31c2189
implement solution for launch_fluent start_instance documentation #1438
seanpearsonuk Mar 21, 2023
7455d03
implement solution for Further clarification of launch_fluent.cleanup…
seanpearsonuk Mar 21, 2023
47e19bb
implement solution for Need updated info on launch_fluent.start_trans…
seanpearsonuk Mar 21, 2023
69cfed2
implement solution for launch_fluent.show_gui issues in doc #1442
seanpearsonuk Mar 21, 2023
28d4d20
implement solution for launch_fluent filepath arguments doc #1443
seanpearsonuk Mar 21, 2023
2ca18c5
implement solution for launch_fluent.lightweight_mode needs good doc …
seanpearsonuk Mar 21, 2023
bebd51e
implement solution for Clarity of launch_fluent.server_info_filepath …
seanpearsonuk Mar 21, 2023
b011434
implement solution for Doc of launch_fluent py argument #1446
seanpearsonuk Mar 21, 2023
70fa418
implement solution for launch_fluent.topy needs full explanation #1447
seanpearsonuk Mar 21, 2023
d56c4a1
Update doc/source/api/general/index.rst
seanpearsonuk Mar 22, 2023
dba1ad5
implement solution for Hyperlink for PyPIM in the launch_fluent doc #…
seanpearsonuk Mar 22, 2023
ae228a3
Merge branch 'doc/wording' of https://github.com/pyansys/pyfluent int…
seanpearsonuk Mar 22, 2023
aa41733
launch_remote_fluent.session_cls confusion #1450
seanpearsonuk Mar 22, 2023
9b67bba
implement solution for launch_remote_fluent different product_version…
seanpearsonuk Mar 22, 2023
08994d9
launch_remote_fluent has dimensionality #1452
seanpearsonuk Mar 22, 2023
730d4a8
launch_remote_fluent return type looks wrong #1455
seanpearsonuk Mar 22, 2023
b5903bd
High level doc for session classes needs improvement #1458
seanpearsonuk Mar 22, 2023
459f6ce
post_objects_container module description #1461
seanpearsonuk Mar 22, 2023
25dcb0a
machine_list formatting #1463
seanpearsonuk Mar 22, 2023
3d8faf7
Improve journaling doc #1466
seanpearsonuk Mar 22, 2023
4d9c154
RP vars __call__ formatting #1467
seanpearsonuk Mar 22, 2023
bf62b48
change some things to lower case
seanpearsonuk Mar 22, 2023
670118e
update lightweight_mode doc
seanpearsonuk Mar 22, 2023
d00a63d
update product version format doc
seanpearsonuk Mar 22, 2023
12909a2
indent fix
seanpearsonuk Mar 22, 2023
f5e628f
update info file doc
seanpearsonuk Mar 22, 2023
e276eb2
Update src/ansys/fluent/core/launcher/launcher.py
seanpearsonuk Mar 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion codegen/tuigen.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def generate(self) -> None:
self._populate_menu(self._main_menu, info)
self.session.exit()
self._write_code_to_tui_file(
f'"""Fluent {self._mode.title()} TUI Commands"""\n'
f'"""Fluent {self._mode.title().lower()} TUI commands"""\n'
)
self._main_menu.doc = f"Fluent {self._mode} main menu."
self._write_code_to_tui_file(
Expand Down
61 changes: 30 additions & 31 deletions doc/source/api/general/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,73 +6,72 @@ General
Launcher
########

:ref:`ref_launcher` provides access to starting Fluent locally in server mode or connecting to a running Fluent
server instance.

Asynchronous execution
######################

:ref:`ref_utils` consists solely of a function to allow for asynchronous execution.
:ref:`ref_launcher` includes instructions on how to launch and connect to Fluent.

Sessions
########

:ref:`ref_sessions` consists of available Fluent sessions.
:ref:`ref_sessions` describes the various types of PyFluent session objects, which connect to Fluent sessions.

Services
########

:ref:`ref_services` consists of gRPC services for Fluent sessions.
:ref:`ref_services` outlines fundamental gRPC services, upon which PyFluent depends (and are directly usable).

Streaming services
##################

:ref:`ref_streaming_services` consists of streaming services for management of gRPC services.

Post objects
############

:ref:`ref_post_objects` consists of visualization objects for Matplotlib.
:ref:`ref_streaming_services` outlines fundamental gRPC streaming services, upon which PyFluent depends (and are directly usable).

Scheduler
#########

:ref:`ref_scheduler` consists of abstract machine objects and their use for queue system interface.
:ref:`ref_scheduler` describes a module for facilitating use of external job scheduling systems.

Case reader
###########
Case
####

:ref:`ref_case_reader` demonstrates reading of Fluent's case files.
:ref:`ref_case_reader` documents a class for parsing Fluent case files in pure Python code.

Data transfer
#############

:ref:`ref_data_transfer` demonstrates transfer of Fluent's case files.
:ref:`ref_data_transfer` describes how to transfer mesh data between PyFluent sessions.

Journaling
##########

:ref:`ref_journaling` consists of read-write of journal.

Meta
####
:ref:`ref_journaling` explains how to read and write Python journals that are reusable between PyFluent and Fluent.

:ref:`ref_meta` consists of used meta classes.

Quantity
Workflow
########

:ref:`ref_quantity` is a module for creation and manipulation of physical quantities.
:ref:`ref_workflow` documents high-level interfaces to the task-based workflows, including meshing workflow.

rpvars
######

:ref:`ref_rpvars` shows access and modification of rpvars.
:ref:`ref_rpvars` shows how you can access and modify live Fluent rpvars via PyFluent.

Workflow
Quantity
########

:ref:`ref_workflow` used for creation of TaskObject instance.
:ref:`ref_quantity` reveals a powerful quantity class that exposes real values and units of API (and other) objects.

Post objects
############

:ref:`ref_post_objects` documents visualization objects for interfacing to Matplotlib and pyvista.

Asynchronous execution
######################

:ref:`ref_utils` documents tools for asynchronous function execution.

Meta
####

:ref:`ref_meta` consists of some metaclasses used in the PyFluent codebase.

.. currentmodule:: ansys.fluent.core

Expand Down
22 changes: 12 additions & 10 deletions doc/source/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,27 @@ solver components of Fluent.
General
#######

The :ref:`ref_general` component describes starting of Fluent and it's asynchronous execution, types of various
Fluent sessions, use of gRPC and streaming services, creation of visualization objects for Matplotlib and abstract
machine object for queue system interface, contains examples to read and transfer Fluent's case files in addition
to this it contains information about used meta classes, rpvars, workflow objects, recording journals and module for
creation of physical quantities using real values and units.
Features of PyFluent not specifically belonging to either the Meshing or Solver modes are collected together in the
:ref:`ref_general` section. That includes instructions on how to launch and connect to Fluent, and the various types of
PyFluent session objects, which connect to Fluent sessions, are documented. Fundamental gRPC services, including
streaming services, upon which PyFluent depends (and are directly usable) are outlined. Other features include a
Scheduler module for facilitating use of external job scheduling systems, a purely Python-based reader for Fluent
project and case files, Python-based journaling, task-based workflow objects, full Pythonic access to Fluent rp-vars,
powerful quantity objects that expose real values and units of API (and other) objects, visualization objects for
interfacing to Matplotlib and pyvista, and tools for asynchronous and batched command execution.

Meshing
#######

The :ref:`ref_meshing` mode is dedicated to capturing the capabilities of the Fluent Meshing guided workflows and
associated tools. This component consists of an interface that is derived from the Fluent (meshing) TUI, as well as
a meshing workflow interface that manages workflow tasks, meshing functions, and part management.
The :ref:`ref_meshing` mode provides Pythonic interfaces to the Fluent meshing TUI, Fluent meshing guided workflows,
and part management.

Solver
######

The :ref:`ref_solver` mode is dedicated to capturing the power of the Fluent solver. This component consists of a
:ref:`ref_settings`-based interface or a :ref:`ref_solver_tui`-based interface that is derived from the Fluent
(solver) TUI, as well as access to Fluent surface, scalar and vector field data.
:ref:`ref_settings`-based interface and a :ref:`ref_solver_tui`-based interface that is derived from the Fluent
Solver TUI, as well as access to surface data and scalar and vector field data.


.. toctree::
Expand Down
2 changes: 2 additions & 0 deletions doc/styles/Vocab/ANSYS/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Matplotlib
matplotlib
mesher
meshing's
metaclass
metaclasses
MonitorsManager
numpy
pathlines
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/fluent/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from ansys.fluent.core._version import __version__ # noqa: F401
from ansys.fluent.core.launcher.launcher import ( # noqa: F401
FluentVersion,
LaunchModes,
LaunchMode,
launch_fluent,
)
from ansys.fluent.core.services.batch_ops import BatchOps # noqa: F401
Expand Down
8 changes: 4 additions & 4 deletions src/ansys/fluent/core/journaling.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
"""A module for maintaining journals."""
"""A module for controlling the writing of Fluent Python journals."""


class Journal:
"""Manages journal streaming."""
"""Control the writig of Fluent Python journals."""

def __init__(self, scheme_eval):
self.scheme_eval = scheme_eval

def start(self, file_path: str):
"""Starts writing a journal to the file_path."""
"""Start writing a Fluent Python journal at the specified file_path."""
self.scheme_eval.exec([f'(api-start-python-journal "{file_path}")'])

def stop(self):
"""Stops writing the journal."""
"""Stop writing the Fluent Python journal."""
self.scheme_eval.exec([f"(api-stop-python-journal)"])
Loading