Skip to content

Conversation

prmukherj
Copy link
Collaborator

@prmukherj prmukherj commented Oct 3, 2025

1293534

If migration adapter is in place then we bypass this type checking and let it fall to settings-api directly where it handles the input and does the necessary updates.

For example:

solver.settings.setup.models.discrete_phase.general_settings.unsteady_tracking.create_particles_at = False

This takes a string as input, but it also has a migration adapter which takes a bool and assigns a string value accordingly from settings-api. So, in this case, pyfluent should not throw a Type error but accept the value and pass it on to settings-api.

This is fixed w.r.t. a Fluent side bug as mentioned as of now, later we have to implement the logic deeper.

@github-actions github-actions bot added the bug Issue, problem or error in PyFluent label Oct 3, 2025
@seanpearsonuk
Copy link
Collaborator

The description!

@prmukherj
Copy link
Collaborator Author

The description!

Done, Thank you

@mkundu1
Copy link
Contributor

mkundu1 commented Oct 3, 2025

@prmukherj Can you please add a test?

@prmukherj
Copy link
Collaborator Author

@prmukherj Can you please add a test?

yes, sure, will add one before merging. Thank you for mentioning it.

@prmukherj prmukherj marked this pull request as draft October 3, 2025 14:02
@prmukherj prmukherj marked this pull request as ready for review October 6, 2025 08:09
@prmukherj
Copy link
Collaborator Author

@prmukherj Can you please add a test?

yes, sure, will add one before merging. Thank you for mentioning it.

@mkundu1, added the test mentioned in the fluent bug with a different case file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue, problem or error in PyFluent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants