Closed RebelYoung closed 1 year ago
@RebelYoung Apologies, but the library is still beta (v0) and the solver settings API is brand new and the least stable aspect. Unfortunately during this period there are inevitably some disruptions. We will soon be moving into a phase where user code is better protected by a built-in compatibility mechanism.
@RebelYoung Apologies, but the library is still beta (v0) and the solver settings API is brand new and the least stable aspect. Unfortunately during this period there are inevitably some disruptions. We will soon be moving into a phase where user code is better protected by a built-in compatibility mechanism.
Ok, I have found the values in the new data type:
"""
# before v0.13.0
t = field_data.get_scalar_field_data(
surface_name=AN, field_name=f)[id]
"""
# for v0.17.0
t0 = field_data.get_scalar_field_data(
surface_name=AN, field_name=f)
t = np.zeros(t0.size)
for i in range(t0.size):
t[i] = t0.data[i].scalar_data
it means, a dict as {id:np.array} is detect from {id:list[scalardata]}.
🔍 Before submitting the issue
🐞 Description of the bug
The dict or structure returned from
solver.boundary_conditions
command differs between v222 and v231. example:It makes my class function invalid like:
I must change all code
.constant
into.value
, Or program many duplicated code for two version just for this command. I hope keeping the structure between different product_version.Another one,
📝 Steps to reproduce
as below
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
2022r2 and 2023r1
🐍 Which Python version are you using?
3.8
📦 Installed packages