-
Notifications
You must be signed in to change notification settings - Fork 10
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
ExportLSDynaKeywordFileParams #942
Comments
Hi @straponiek, Please be advised that this method and all its parameters are currently at beta and in this instance will likely change in future. There is active work ongoing in this area. Please could you describe your use case in more detail to help my understanding? What is the input you are creating the exported file from? Are you importing cad and meshing or starting with something else? What is your expectation with your specific case as to what you would like to see as the output and how you are trying to achieve it currently? The documentation that you reference shows that these parameters are initialised at runtime and "None" in this context does not reflect a default. All of these parameters currently only take affect if simulation data is present and as of today this will not be the case for importing cad and meshing. A set of default keywords are currently exported in this instance, which is what you are seeing. As mentioned this is an area of active work so your feedback will be gratefully received. I hope this helps clarify the results you are seeing. Thanks |
Hi @waltersma,
|
Hi @straponiek, @waltersma All of the parameters right now modify the export process when simulation data is present. If there is not simulation data present (as in this case), then the exported k file should almost entirely be associated with the geometry, but there are a small number of extra keywords I see also being written such as *CONTROL_ that you could be referencing? There are no parameters to control this behavior. In the k file you are creating, can you specify which keywords or sections of the file you are having issues with or why it is causing problems later in your process? |
Hi @straponiek, Thanks for sharing the code. In addition to comments from @Pinteresting, when you instantiate the parameters like this the 'model' will be used to define expected defaults and these will not necessarily be None in all cases. You could print the parameters to observe the defaults used. For example,
will give you:
You may wish to set these explicitly. Thanks |
@waltersma @Pinteresting Thank you both for the clarification. I just bypassed the problem by creating a parsing script for the .k file that keeps just the mesh keywords. |
🔍 Before submitting the issue
🐞 Description of the bug
The output is inconsistent with what is written in the documentation:
class ExportLSDynaKeywordFileParams(model=None, material_properties=None, database_keywords=None, output_format=None, analysis_type=None, compute_spotweld_thickness=None, json_data=None, **kwargs)
the output file contains all the keywords and not just the ones related to the geometry (model) even if the parameters value should be set to None by default. Setting the parameters to None explicitly doesn't help.
📝 Steps to reproduce
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
2024 R2
🐍 Which Python version are you using?
3.11
📦 Installed packages
The text was updated successfully, but these errors were encountered: