You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am here '#155' I see the same problem but haven't found a solution, so I can't determine what the reason is.
As soon as I try to define a surface for any type of plotting I get this error: Error: FieldDataService::getSurfacesInfo: invalid field Error Object: #f
📝 Steps to reproduce
I can initiate a pyfluent session but as soon as I try to define a surface I get this error: Error: FieldDataService::getSurfacesInfo: invalid field,the same error is visible in the GUI command view as well.
`import ansys.fluent.core as pyfluent
from ansys.fluent.core import UIMode
from ansys.fluent.visualization import set_config
from ansys.fluent.visualization.matplotlib import Plots
from ansys.fluent.visualization.pyvista import Graphics
solver_session = pyfluent.launch_fluent(precision="double", processor_count=2, mode="solver")
solver_session.tui.file.read_case("123123.cas.h5")
solver_session.tui.file.read_data("123123.dat.h5")
graphics = Graphics(session=solver_session)
temperature_contour = graphics.Contours["contour-1"]
temperature_contour.field = "temperature"
print(temperature_contour.surfaces_list.allowed_values) #Error: FieldDataService::getSurfacesInfo: invalid field
#temperature_contour.surfaces_list = ["cell:1", "heating"] #Error: FieldDataService::getSurfacesInfo: invalid field
#temperature_contour.display("window-1")`
🔍 Before submitting the issue
🐞 Description of the bug
I am here '#155' I see the same problem but haven't found a solution, so I can't determine what the reason is.
As soon as I try to define a surface for any type of plotting I get this error:
Error: FieldDataService::getSurfacesInfo: invalid field Error Object: #f
📝 Steps to reproduce
I can initiate a pyfluent session but as soon as I try to define a surface I get this error: Error: FieldDataService::getSurfacesInfo: invalid field,the same error is visible in the GUI command view as well.
`import ansys.fluent.core as pyfluent
from ansys.fluent.core import UIMode
from ansys.fluent.visualization import set_config
from ansys.fluent.visualization.matplotlib import Plots
from ansys.fluent.visualization.pyvista import Graphics
solver_session = pyfluent.launch_fluent(precision="double", processor_count=2, mode="solver")
solver_session.tui.file.read_case("123123.cas.h5")
solver_session.tui.file.read_data("123123.dat.h5")
graphics = Graphics(session=solver_session)
temperature_contour = graphics.Contours["contour-1"]
temperature_contour.field = "temperature"
print(temperature_contour.surfaces_list.allowed_values) #Error: FieldDataService::getSurfacesInfo: invalid field
#temperature_contour.surfaces_list = ["cell:1", "heating"] #Error: FieldDataService::getSurfacesInfo: invalid field
#temperature_contour.display("window-1")`
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
Revision: 23.1.0 for ANSYS 2023 R1
🐍 Which Python version are you using?
3.12
📦 Installed packages
The text was updated successfully, but these errors were encountered: