Skip to content

Commit

Permalink
feat: Replace scheme calls
Browse files Browse the repository at this point in the history
  • Loading branch information
hpohekar committed Nov 26, 2024
1 parent 8610229 commit 6f9c4ea
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/ansys/fluent/core/post_objects/post_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import re

from ansys.api.fluent.v0 import field_data_pb2 as FieldDataProtoModule


class IncompleteISOSurfaceDefinition(RuntimeError):
"""Raised when iso-surface definition is incomplete."""
Expand Down Expand Up @@ -129,16 +127,7 @@ def remote_surface_name(self, local_surface_name):
# Following functions will be deprecated in future.
def get_vector_fields(self):
"""Returns vector field."""
request = FieldDataProtoModule.GetVectorFieldsInfoRequest()
response = self._service.get_vector_fields_info(request)
return {
vector_field_info.displayName: {
"x-component": vector_field_info.xComponent,
"y-component": vector_field_info.yComponent,
"z-component": vector_field_info.zComponent,
}
for vector_field_info in response.vectorFieldInfo
}
return self.field_info.get_vector_fields_info()

def get_field_unit(self, field):
"""Returns the unit of the field."""
Expand Down

0 comments on commit 6f9c4ea

Please sign in to comment.