-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Examples in pyadditive v0.17.0 not working when display language uses ,
for decimal separator
#261
Comments
@maxcarrat90 This is what I'm seeing using pyadditive v0.17.0 and Ansys 24.1 when running
Were any other edits made to the python file? Line 120 converts from meters to microns. Did it get changed by chance? What does df.head() show (line 145)? Do you see only zeros or nan's for the values? |
@pkrull-ansys I have cloned the latest pyadditive version and reinstalled everything to be sure that the python's script are all clean. I attach the melt_pool.csv file and here is what I get on the Python
|
@maxcarrat90 I'm a bit baffled. I've duplicated your configuration and run the example.
Here are the melt pool statistics I get. Questions:
|
@pkrull-ansys Thanks for your help! Regarding your questions: File "C:\Program Files\ANSYS Inc\PyAnsys\PyAdditive\pyadditive-0.17\examples\00_additive_single_bead.py", line 108, in
|
@maxcarrat90 The server seems to be misinterpreting the parameters sent to it. On the host where the server is running, what locale is used? More specifically, what's the default character used for the decimal point? The server should account for different locales but this hasn't received much testing yet. |
@pkrull-ansys here what I get checking locale on the powershell:
|
@maxcarrat90 I switched my display language to Italian and think I found what the problem is. Material data is stored in comma separated value files by the server. When the user chooses a material for a simulation, that data is transferred to the client then back to the server as part of the simulation inputs. This is done so that the user can modify material parameters if they choose. Regardless, when the display language does not use . for the decimal separator, the material data is mishandled by the client. Until I can get this fixed, you will need to modify your display language settings to use . for the decimal separator or switch to English to successfully run the examples in pyadditive. |
@pkrull-ansys Thank you very much for you support! The issue is now fixed. Now, I would like to run a parametric study using a user defined material and laser beam shape (multi-mode). Would this be possible? |
@maxcarrat90 User defined materials are supported. Shaped lasers are not yet supported. For user defined materials, the pyadditive documentation is a little light and refers you to documentation for our legacy application. Let me know if you need help and I'll answer your questions or put you in touch with someone who can. PyAdditive examples
Custom material further information |
@pkrull-ansys Thank you for the links! |
@maxcarrat90 Unfortunately, I think it would likely be used in our thermal solver, which is not open source. We do have a shaped laser feature in our backlog. If you can write up a feature request as an issue for pyadditive, I can see if what we intend meets your needs or whether we can modify it to meet your needs. |
,
for decimal separator
This bug is in the Additive server. It is being fixed and will be available in the Ansys 2024 R2 release. |
@pkrull-ansys Thank you very much for you hints. Now I am able to correctly run the

examples/00_additive_single_bead.py
. However, usingmaterial = additive.material("316L")
,machine.scan_speed = 1
, andmachine.laser_power = 195
I got zero values in all Melt Pool Dimensions, see plot below:Originally posted by @maxcarrat90 in #256 (reply in thread)
The text was updated successfully, but these errors were encountered: