-
Notifications
You must be signed in to change notification settings - Fork 1
Convert DAT file to CDB for import into Mechanical #896
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
base: main
Are you sure you want to change the base?
Conversation
Context: In the 'CDB to Mechanical' workflow, using a DAT file (as exported from Mechanical) can fail when e.g. the layup only covers part of the mesh (see #826). This can be fixed by converting the DAT file to a CDB file using MAPDL. This improves the reliability of loading the model into Mechanical, and allows re-enabling the 'valid blocked CDB' check in the import. Changes: - Enable the 'valid blocked CDB' check in the `import_acp_mesh_from_cdb` helper function. - Update the 'Create input file' documentation to include the conversion from DAT to CDB using (Py)MAPDL. - Add a conversion from DAT to CDB to the 'CDB to Mechanical' workflow example. Closes #826.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #896 +/- ##
=======================================
Coverage 94.97% 94.97%
=======================================
Files 110 110
Lines 5773 5773
Branches 296 296
=======================================
Hits 5483 5483
Misses 289 289
Partials 1 1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR improves the reliability of the 'CDB to Mechanical' workflow by converting DAT files to CDB format using MAPDL before importing into Mechanical. This addresses issues where DAT files fail to import when layups only partially cover the mesh.
- Enables the 'valid blocked CDB' check by default in the import helper function
- Adds DAT to CDB conversion using PyMAPDL in workflow examples
- Updates documentation to include the conversion process and its benefits
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
src/ansys/acp/core/mechanical_integration_helpers.py | Adds configurable parameter to enable valid blocked CDB file checking by default |
examples/workflows/06-cdb-to-pymechanical-workflow.py | Converts DAT input to CDB format using PyMAPDL before processing |
examples/workflows/05-pymechanical-to-cdb-workflow.py | Updates workflow to export DAT then convert to CDB format |
examples/workflows/04-pymechanical-solid-workflow.py | Explicitly disables CDB validation for solid model workflow |
doc/source/user_guide/howto/create_input_file.rst | Documents the DAT to CDB conversion process and its benefits |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Context:
In the 'CDB to Mechanical' workflow, using a DAT file (as exported
from Mechanical) can fail when e.g. the layup only covers part of
the mesh (see #826).
This can be fixed by converting the DAT file to a CDB file
using MAPDL. This improves the reliability of loading the model
into Mechanical, and allows re-enabling the 'valid blocked CDB'
check in the import.
Changes:
import_acp_mesh_from_cdb
helper function by default (configurable).
from DAT to CDB using (Py)MAPDL.
and 'Mechanical to CDB' examples.
Closes #826.