-
Notifications
You must be signed in to change notification settings - Fork 6
Support CIPHER, a phase-field simulation code. #403
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
Conversation
This is specific to running on Windows with Docker, which should be set by the user.
- Set default value here instead of in the python script.
This is clearly incompatible with the current Matflow.
Started with the easier ones: Remove dropbox archiving Adapt task syntax for - sample texture from model ODF mtex for phase 1 - Visualise orientations and move straight after sampling tasks - visualise VE VTK
c53fb82 to
0d82b11
Compare
Remove explanation from previous commit. Note that this workflow gives an error: ``` ValueError: Action 0 input 'orientations' of schema 'generate_volume_element_from_statistics_dual_phase_orientations_Dream3D' is not a schema input, but nor is it an action output from a preceding action. ```
These are in thd old matflow format.
Debugging the workflow turned up some incorrect syntax, incorrect filenames (scripts not matching the first function names), missing default values for input parameters. It also turns out that Dream3D needs the full path to the precipitates file.
I still get this error that I got before converting to old matflow
orientations format:
```
File "/home/mbexegc2/projects/lightform/cipher-workflows/cipher-aiden_2025-10-29_133031/artifacts/submissions/0/scripts/generate_volume_element_from_statistics_dual_phase_orientations_Dream3D_act_3.py", line 40, in parse_dream_3D_volume_element_from_stats
ori_1 = validate_orientations(orientations_phase_1)
File "/home/mbexegc2/projects/lightform/cipher-workflows/.venv/lib/python3.10/site-packages/damask_parse/utils.py", line 983, in validate_orientations
ori_type = orientations.get('type')
AttributeError: 'Orientations' object has no attribute 'get'
```
This reverts commit 52c2412.
These are commented out because there's an error from the generate_phase_field_input_from_volume_element task.
This just returns the unaltered volume element.
The demo workflow uses paths on my machine, and the clustering regions/values are hard-coded. I expect these both need updating.
|
I've marked this as a Draft PR because it's still being baked. |
|
Not sure what you mean "baked", but I think it's ready for review, so I'm going to re-mark it as such. |
|
Well, you have merge conflicts... |
|
Two of the merge conflicts (to template components) are easy to resolve - keep both sets of changes. What I'm unclear about is where the demo data has moved to. Looks all to have been deleted, so this will need some advice as part of the review. |
Will fix #392. Some points below are from my chat with Aiden a few weeks ago.
Port existing functionality from old-matflow:
delete_VTIsgenerate_phase_field_inputmethods:num_VTU_filesparametercipher_processing_envandcipher_env)cipher-parse, containing:Possible new features requested (possibly in cipher-parse):