Skip to content

Conversation

ajain-work
Copy link
Contributor

@ajain-work ajain-work commented Apr 11, 2022

Following are the issues in field_data APIs:

  • get scalar and vector field always return surface data even if it is not required.
  • With vector field , only nodal scalar data can be returned.
  • APIs in general does not provide much control about what to request.

For example, to draw XY plot for element values, two requests will be sent by client:

  1. get surface data. [with face centroid.]
  2. get scalar field for face values. But it will also provide vertices and face connectivity.

So not only client has to make two requests, but will also get redundant data e.g. vertices and faces connectivity. So instead of get APIs, there should be addRequest APIs. It shall give complete flexibility.

Also tags are introduced to provide extra information about fields.

Important: Unit tests updated.

@ajain-work ajain-work force-pushed the feat/field_data_payload_tag branch from 45c3968 to 8c06ad4 Compare April 11, 2022 09:37
if location_tag & payload_info and (
not boundary_value_tag or (boundary_value_tag & payload_info)
):
xyplot_data = payload_data
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Data is retrieved from the tag.

@ajain-work ajain-work force-pushed the feat/field_data_payload_tag branch from 8c06ad4 to 6e19bda Compare April 11, 2022 09:57
@ajain-work ajain-work force-pushed the feat/field_data_payload_tag branch from 6e19bda to a6a57a9 Compare April 11, 2022 10:38
@ajain-work ajain-work marked this pull request as ready for review April 11, 2022 10:47
Copy link
Collaborator

@dnwillia-work dnwillia-work left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to format the proto file with clang format. The options are defined at

https://github.com/pyansys/pyfluent/blob/main/protos/.clang_format

I had been doing that before merging the files back to the Fluent repo. If you happen to use Visual Studio Code it comes with the cpptools extension:

C:\Users\dnwillia.vscode\extensions\ms-vscode.cpptools-1.9.7-win32-x64\LLVM\bin\clang-format.exe

@ajain-work ajain-work force-pushed the feat/field_data_payload_tag branch from a6a57a9 to dcece5d Compare April 12, 2022 10:24
@ajain-work ajain-work force-pushed the feat/field_data_payload_tag branch from dcece5d to a2cbd9b Compare April 13, 2022 06:52
@ajain-work ajain-work force-pushed the feat/field_data_payload_tag branch 3 times, most recently from 96adb94 to 38b94a7 Compare April 14, 2022 05:12
@ajain-work ajain-work force-pushed the feat/field_data_payload_tag branch from 38b94a7 to 73a2106 Compare April 14, 2022 05:21
@ajain-work ajain-work merged commit 61b455a into main Apr 14, 2022
@ajain-work ajain-work deleted the feat/field_data_payload_tag branch April 14, 2022 07:56
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.

4 participants