ansys.fluent.core.search#

Provides a module to search a word through the Fluent’s object hierarchy..

Functions:

get_api_tree_file_name(version)

Get API tree file name.

search(search_string[, language, wildcard, ...])

Search for a word through the Fluent's object hierarchy.

ansys.fluent.core.search.get_api_tree_file_name(version)#

Get API tree file name.

ansys.fluent.core.search.search(search_string, language='eng', wildcard=False, match_whole_word=False, match_case=True)#

Search for a word through the Fluent’s object hierarchy.

Parameters:
search_string: str

Word to search for. Semantic search is the default.

language: str

ISO 639-3 code for the language to use for the semantic search. The default is eng for English. For the list of supported languages, see OMW Version 1.

wildcard: bool, optional

Whether to use the wildcard pattern. The default is False. If True, the wildcard pattern is based on the fnmatch module and semantic matching is turned off.

match_whole_word: bool, optional

Whether to find only exact matches. The default is False. If True, only exact matches are found and semantic matching is turned off.

match_case: bool, optional

Whether to match case. The default is True. If False, the search is case-insensitive.

Examples

>>> import ansys.fluent.core as pyfluent
>>> pyfluent.search("font", match_whole_word=True)
>>> pyfluent.search("Font")
>>> pyfluent.search("iter*", wildcard=True)
>>> pyfluent.search("读", language="cmn")   # search 'read' in Chinese
The most similar API objects are:
<solver_session>.file.read (Command)
<solver_session>.file.import_.read (Command)
<solver_session>.mesh.surface_mesh.read (Command)
<solver_session>.tui.display.display_states.read (Command)
<meshing_session>.tui.display.display_states.read (Command)