How shimanek/cpfem_opt works
Main Components
a. Core Framework Layer:
• Core modules (crystalPlasticity.py, experimental.py, optimizer.py, etc.)
• How these components interact with the state management and utilities
b. Input/Output Layer:
• Parser.py and writer.py components
• TOML configuration handling
• Experimental data input handling
c. Execution Engines Layer:
• On the right side
• Two main engines: ABAQUS and FEPX
• Their respective extractors and processors
d. Models Layer:
• On the left side
• Two model types: mk_orthoModel and mk_singleModel
• To the core framework
e. Objectives Layer:
• At the bottom
• Objective calculation methods
• How they feed back into the optimization process
Component Relationships
• Green for data input/output
• Orange for simulation execution paths
Specific Implementation Details
┌─────────────────────┐
• Component Name │
• ┤
• Key Functions │
• Dependencies │
• ┘
Key Workflows to Highlight
a. Optimization Loop:
1. Input parsing (parser.py)
2. Model selection and setup
3. Engine execution (ABAQUS/FEPX)
4. Objective calculation
5. Parameter adjustment via scikit-optimize
6. Loop back to step 2
b. Parallel Execution:
• How parallel.py manages multiple simulations
Important Elements
• scikit-optimize (primary optimization engine)
• ABAQUS/FEPX interfaces
• Python scientific stack (numpy, etc.)
• Configuration Management:
• TOML config flow
• Experimental data input handling
• Parameter file generation
Results and Analysis
• Component types
• Special symbols
Keep the focus on the optimization workflow while showing the integration points with the material science simulation aspects, as this is primarily an optimization framework for crystal plasticity parameters.