-
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
003_short_fiber_example #383
Comments
Hi @MNymannG 👋 Thanks for reporting this issue. From the "Installed packages" list, it seems you're using version You can choose which version the documentation refers to using a drop-down in the top-right corner of the page: Another issue you may encounter is that the 2021R2 Ansys version does not support PyDPF Composites. You can find a list of compatible versions on this page. [1] The |
Hi Dominik
Thank you for your fast response!
I think the Ansys compatibility explains my issue with version 0.2.0 as the fatigue plot did not run correctly when I tried it.
Do you know if there is a way to select the ansys version if you have multiple installed?
Best
Mads
From: Dominik Gresch ***@***.***>
Sent: 13. november 2023 17:13
To: ansys/pydpf-composites ***@***.***>
Cc: Mads Enggrob Nymann ***@***.***>; Mention ***@***.***>
Subject: Re: [ansys/pydpf-composites] 003_short_fiber_example (Issue #383)
Hi @MNymannG<https://github.com/MNymannG> 👋
Thanks for reporting this issue.
From the "Installed packages" list, it seems you're using version 0.2.0 of ansys-dpf-composites [1], whereas the downloaded example probably refers to 0.3.2. You can find the example corresponding to 0.2.0 here: https://composites.dpf.docs.pyansys.com/version/0.2/examples/gallery_examples/3_short_fiber_example.html#sphx-glr-examples-gallery-examples-3-short-fiber-example-py
Note that you can choose the version of the documentation for PyAnsys libraries using a drop-down in the top-right corner of the page:
[image]<https://user-images.githubusercontent.com/5692808/282517734-bdc79661-976d-438b-a901-7cd5af3b525b.png>
Please also note, the 2021R2 Ansys version does not support PyDPF Composites. You can find a list of compatible versions on this page<https://composites.dpf.docs.pyansys.com/version/stable/intro.html#compatibility>.
[1] The 0.2.0 version is part of the currently latest pyansys meta-package release 2023.2.11<https://github.com/ansys/pyansys/releases/tag/v2023.2.11>.
—
Reply to this email directly, view it on GitHub<#383 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BD5XUJAMAUZ2AMCZE2BTSRTYEJBHFAVCNFSM6AAAAAA7JJMPZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBYGQ3TINBVGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Yes, you can pass the server = connect_to_or_start_server(ansys_path="C:\\Program Files\\ANSYS Inc\\v232") Alternatively, if you are running DPF in a Docker container (docs), this function accepts the IP and port for the server. For example: server = connect_to_or_start_server(ip="127.0.0.1", port=50052) The corresponding documentation can be found here: https://composites.dpf.docs.pyansys.com/version/0.2/api/_autosummary/ansys.dpf.composites.server_helpers.connect_to_or_start_server.html#connect-to-or-start-server |
Thank you very much for your support!
I don’t know if you have time for more support on this. I’m quite new with python and have some difficulty understanding the structure.
I’m trying to import my own data files to run failure analysis for short fiber composites with the following:
***@***.***
I get the following error:
***@***.***
I’m trying to do a fatigue evaluation of the following ansys model with imported fiber direction of a short fiber composite.
***@***.***
Hope you have time for a bit more guidance.
Thank you.
Best regards
Mads
From: Dominik Gresch ***@***.***>
Sent: 14. november 2023 11:44
To: ansys/pydpf-composites ***@***.***>
Cc: Mads Enggrob Nymann ***@***.***>; Mention ***@***.***>
Subject: Re: [ansys/pydpf-composites] 003_short_fiber_example (Issue #383)
Do you know if there is a way to select the ansys version if you have multiple installed?
Yes, you can pass the ansys_path parameter to the connect_to_or_start_server function. So, for example
server = connect_to_or_start_server(ansys_path="C:\\Program Files\\ANSYS Inc\\v232")
Alternatively, if you are running DPF in a Docker container (docs<https://dpf.docs.pyansys.com/version/stable/user_guide/getting_started_with_dpf_server.html#run-dpf-server-in-a-docker-container>), this function accepts the IP and port for the server. For example:
server = connect_to_or_start_server(ip="127.0.0.1", port=50052)
The corresponding documentation can be found here: https://composites.dpf.docs.pyansys.com/version/0.2/api/_autosummary/ansys.dpf.composites.server_helpers.connect_to_or_start_server.html#connect-to-or-start-server
—
Reply to this email directly, view it on GitHub<#383 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BD5XUJCUITEDYFH6N6ASQTLYENDN7AVCNFSM6AAAAAA7JJMPZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBZHE3DCMJZGU>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Hi again,
Figured out that I needed the short_fiber get data.
Now I’m stuck at the field variable provider:
***@***.***
***@***.***
I can’t really tell what the dpf.operator does and the input it takes.
Best Regards
Mads
From: Mads Enggrob Nymann
Sent: 14. november 2023 15:54
To: ansys/pydpf-composites ***@***.***>; ansys/pydpf-composites ***@***.***>
Cc: Mention ***@***.***>
Subject: RE: [ansys/pydpf-composites] 003_short_fiber_example (Issue #383)
Thank you very much for your support!
I don’t know if you have time for more support on this. I’m quite new with python and have some difficulty understanding the structure.
I’m trying to import my own data files to run failure analysis for short fiber composites with the following:
***@***.***
I get the following error:
***@***.***
I’m trying to do a fatigue evaluation of the following ansys model with imported fiber direction of a short fiber composite.
***@***.***
Hope you have time for a bit more guidance.
Thank you.
Best regards
Mads
From: Dominik Gresch ***@***.******@***.***>>
Sent: 14. november 2023 11:44
To: ansys/pydpf-composites ***@***.******@***.***>>
Cc: Mads Enggrob Nymann ***@***.******@***.***>>; Mention ***@***.******@***.***>>
Subject: Re: [ansys/pydpf-composites] 003_short_fiber_example (Issue #383)
Do you know if there is a way to select the ansys version if you have multiple installed?
Yes, you can pass the ansys_path parameter to the connect_to_or_start_server function. So, for example
server = connect_to_or_start_server(ansys_path="C:\\Program Files\\ANSYS Inc\\v232")
Alternatively, if you are running DPF in a Docker container (docs<https://dpf.docs.pyansys.com/version/stable/user_guide/getting_started_with_dpf_server.html#run-dpf-server-in-a-docker-container>), this function accepts the IP and port for the server. For example:
server = connect_to_or_start_server(ip="127.0.0.1", port=50052)
The corresponding documentation can be found here: https://composites.dpf.docs.pyansys.com/version/0.2/api/_autosummary/ansys.dpf.composites.server_helpers.connect_to_or_start_server.html#connect-to-or-start-server
—
Reply to this email directly, view it on GitHub<#383 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BD5XUJCUITEDYFH6N6ASQTLYENDN7AVCNFSM6AAAAAA7JJMPZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBZHE3DCMJZGU>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Hi Mads, It seems since you replied via e-mail, GitHub treated some of the error message as e-mail addresses and removed them. I can only see Would you mind posting the errors directly on Github, or editing the comments above? Thank you, |
Hi Dominik,
Sorry about that.
I have solved the issues, but I have a follow-up question:
Can you explain how the failure criteria works in the given example as I can’t tell where Tsai-Hill is chosen.
Is it through this line? sf_op = dpf.Operator("composite::short_fiber_failure_criterion_evaluator")
Is there a place where I can find a description of these ("composite::short_fiber_failure_criterion_evaluator") and how to apply them in a operator? I can’t seem to find them in the API.
Lastly, I’m trying to apply them to fatigue test scenarios and I’m looking for a suitable failure criteria.
We’ve used Tsai-Hill before but it has been shown not to be that precise.
Do you know if anyone made a Mod. Gerber, cyclic strain rate or any similar fatigue criteria?
Best
Mads
From: Dominik Gresch ***@***.***>
Sent: 14. november 2023 11:44
To: ansys/pydpf-composites ***@***.***>
Cc: Mads Enggrob Nymann ***@***.***>; Mention ***@***.***>
Subject: Re: [ansys/pydpf-composites] 003_short_fiber_example (Issue #383)
Do you know if there is a way to select the ansys version if you have multiple installed?
Yes, you can pass the ansys_path parameter to the connect_to_or_start_server function. So, for example
server = connect_to_or_start_server(ansys_path="C:\\Program Files\\ANSYS Inc\\v232")
Alternatively, if you are running DPF in a Docker container (docs<https://dpf.docs.pyansys.com/version/stable/user_guide/getting_started_with_dpf_server.html#run-dpf-server-in-a-docker-container>), this function accepts the IP and port for the server. For example:
server = connect_to_or_start_server(ip="127.0.0.1", port=50052)
The corresponding documentation can be found here: https://composites.dpf.docs.pyansys.com/version/0.2/api/_autosummary/ansys.dpf.composites.server_helpers.connect_to_or_start_server.html#connect-to-or-start-server
—
Reply to this email directly, view it on GitHub<#383 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BD5XUJCUITEDYFH6N6ASQTLYENDN7AVCNFSM6AAAAAA7JJMPZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBZHE3DCMJZGU>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
@FedericoNegri Do you have any more documentation on the short fiber workflow in dpf, especially on the fatigue operators? |
Hi,
Is it possible to find any documentation?
Best
Mads
From: janvonrickenbach ***@***.***>
Sent: 16. november 2023 09:21
To: ansys/pydpf-composites ***@***.***>
Cc: Mads Enggrob Nymann ***@***.***>; Mention ***@***.***>
Subject: Re: [ansys/pydpf-composites] 003_short_fiber_example (Issue #383)
@FedericoNegri<https://github.com/FedericoNegri> Do you have any more documentation on the short fiber workflow in dpf, especially on the fatigue operators?
—
Reply to this email directly, view it on GitHub<#383 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BD5XUJDKIBP7UILUD3P2EJ3YEXEHJAVCNFSM6AAAAAA7JJMPZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJTHE4DCMRYGY>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Hi @MNymannG, I forwarded your request, you should be contacted soon by your channel partner. |
Hi,
Thank you very much.
From: janvonrickenbach ***@***.***>
Sent: 22. november 2023 09:34
To: ansys/pydpf-composites ***@***.***>
Cc: Mads Enggrob Nymann ***@***.***>; Mention ***@***.***>
Subject: Re: [ansys/pydpf-composites] 003_short_fiber_example (Issue #383)
Hi @MNymannG<https://github.com/MNymannG>,
I forwarded your request, you should be contacted soon by your channel partner.
—
Reply to this email directly, view it on GitHub<#383 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BD5XUJESWAYTKTWAITSLHRTYFW2GNAVCNFSM6AAAAAA7JJMPZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRSGMYTQOJTGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Hi Jan,
Are there any updates on this?
Best
Mads
From: janvonrickenbach ***@***.***>
Sent: 16. november 2023 09:21
To: ansys/pydpf-composites ***@***.***>
Cc: Mads Enggrob Nymann ***@***.***>; Mention ***@***.***>
Subject: Re: [ansys/pydpf-composites] 003_short_fiber_example (Issue #383)
@FedericoNegri<https://github.com/FedericoNegri> Do you have any more documentation on the short fiber workflow in dpf, especially on the fatigue operators?
—
Reply to this email directly, view it on GitHub<#383 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BD5XUJDKIBP7UILUD3P2EJ3YEXEHJAVCNFSM6AAAAAA7JJMPZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJTHE4DCMRYGY>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Hi @MNymannG, Sorry for the delay. I forwarded your request in November, but apperently nothing happened. I forwarded your request again, please let me know if you don't hear anything within a week. |
🔍 Before submitting the issue
🐞 Description of the bug
Directly downloading short fiber example and running it yields the following import error. Seems something in data_sources has not been updated along with example code from previous version.
runfile('C:/Users/104121/Anisotropic_test/003_short_fiber_example.py', wdir='C:/Users/104121/Anisotropic_test')
Traceback (most recent call last):
File C:\pyansysvenv\lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)
File c:\users\104121\anisotropic_test\003_short_fiber_example.py:34
from ansys.dpf.composites.data_sources import get_short_fiber_composites_data_sources
ImportError: cannot import name 'get_short_fiber_composites_data_sources' from 'ansys.dpf.composites.data_sources' (C:\pyansysvenv\lib\site-packages\ansys\dpf\composites\data_sources.py)
📝 Steps to reproduce
Direct download and run of code for both spyder and jupyterlab yields the error above.
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
2021R2
🐍 Which Python version are you using?
3.10
📦 Installed packages
The text was updated successfully, but these errors were encountered: