Skip to content

Conversation

seanpearsonuk
Copy link
Collaborator

@seanpearsonuk seanpearsonuk commented Aug 15, 2022

Current meshing workflow exposure requires improvement as outlined: #622.

In this change, the actual workflow and workflow.task objects are extended with the required functionality.

e.g.,

>>> import ansys.fluent.core as pf
>>> session = pf.launch_fluent(mode="meshing")
>>> w=session.workflow
>>> w.InitializeWorkflow(WorkflowType="Watertight Geometry")
True
>>> igt=w.task('Import Geometry')
>>> igt.CommandArguments.CadImportOptions
<ansys.fluent.core.services.datamodel_se.PyCommandArgumentsSubItem object at 0x0000021FFE1C6D00>
>>> igt.CommandArguments.CadImportOptions.OneZonePer
<ansys.fluent.core.services.datamodel_se.PyCommandArgumentsSubItem object at 0x0000021FFE1C6BB0>
>>> igt.CommandArguments.CadImportOptions.OneZonePer()
'Body'
>>> igt.CommandArguments.CadImportOptions.OneZonePer.getAttribValue("default")
'Body'

EDIT: This is also fixes #722. So I have commented out some of the new code to get this in. field_data will be a significant loss for some users.

I still need to add doc comments

@seanpearsonuk seanpearsonuk marked this pull request as ready for review August 15, 2022 18:14
@seanpearsonuk seanpearsonuk requested a review from hpohekar August 15, 2022 18:15
* update dir, remove some redundant code

* extend testing

* Update test_session.py

* add call op in wf class
@seanpearsonuk seanpearsonuk merged commit 8da500d into main Aug 16, 2022
@seanpearsonuk seanpearsonuk deleted the feat/mwf branch August 16, 2022 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some attributes of Session are missing

4 participants