Skip to content

Conversation

@prmukherj
Copy link
Collaborator

@prmukherj prmukherj commented Jul 1, 2025

Now we can use field data objects like reduction:

>>> scalar_object_from_surface_objects = ScalarFieldDataRequest(
>>>         field_name="absolute-pressure",
>>>         surfaces=solver.setup.boundary_conditions.velocity_inlet,
>>>     )

>>> field_data.get_field_data(scalar_object_from_surface_objects)

Please refer to the tests for detailed usages.

This PR also contains fix for reduction to avoid using [VelocityInlets] within a list and provides suitable exceptions.

@github-actions github-actions bot added the new feature Request or proposal for a new feature label Jul 1, 2025
@github-actions github-actions bot added the documentation Documentation related (improving, adding, etc) label Jul 1, 2025
prmukherj and others added 9 commits July 1, 2025 11:28
The below is possible now:
```python
solver.settings.setup.boundary_conditions.velocity_inlet + solver.settings.setup.boundary_conditions.wall
```

Please see test for detailed usage.

---------

Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
@prmukherj prmukherj merged commit 4eab065 into main Jul 2, 2025
57 of 59 checks passed
@prmukherj prmukherj deleted the feat/support_surface_objects_in_field_data branch July 2, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation related (improving, adding, etc) new feature Request or proposal for a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants