feat: Complete working optimization pipeline with stress extraction
COMPLETE PIPELINE VALIDATED: - Stress extraction: 197.65 MPa (CTETRA elements) ✓ - Displacement extraction: 0.322 mm ✓ - Model parameter updates in .prt files ✓ - Optuna optimization with TPE sampler ✓ - Constraint handling (displacement < 1.0 mm) ✓ - Results saved to CSV/JSON ✓ Test Results (5 trials): - All extractors working correctly - Parameters updated successfully - Constraints validated - History and summary files generated New Files: - examples/test_stress_displacement_optimization.py Complete pipeline test with stress + displacement - examples/test_displacement_optimization.py Displacement-only optimization test - examples/run_optimization_real.py Full example with all extractors - examples/check_op2.py OP2 diagnostic utility - examples/bracket/optimization_config_stress_displacement.json Config: minimize stress, constrain displacement - examples/bracket/optimization_config_displacement_only.json Config: minimize displacement only Updated: - .gitignore: Exclude NX output files and optimization results - examples/bracket/optimization_config.json: Updated paths Next Step: Integrate NX solver execution for real optimization
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
40.0
|
||||
],
|
||||
"units": "degrees",
|
||||
"initial_value": 30.0
|
||||
"initial_value": 35.0
|
||||
}
|
||||
],
|
||||
"objectives": [
|
||||
@@ -65,7 +65,7 @@
|
||||
"n_startup_trials": 20
|
||||
},
|
||||
"model_info": {
|
||||
"sim_file": "C:/Users/antoi/Documents/Atomaste/Atomizer/examples/bracket/Bracket_sim1.sim",
|
||||
"sim_file": "C:\\Users\\antoi\\Documents\\Atomaste\\Atomizer\\examples\\bracket\\Bracket_sim1.sim",
|
||||
"solutions": [
|
||||
{
|
||||
"name": "Direct Frequency Response",
|
||||
@@ -73,12 +73,6 @@
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "Disable in Thermal Solution 2D",
|
||||
"type": "Disable in Thermal Solution 2D",
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "Nonlinear Statics",
|
||||
"type": "Nonlinear Statics",
|
||||
@@ -86,20 +80,14 @@
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "Linear Statics",
|
||||
"type": "Linear Statics",
|
||||
"name": "Disable in Thermal Solution 2D",
|
||||
"type": "Disable in Thermal Solution 2D",
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "*Thermal-Flow Coupled Solution Parameters",
|
||||
"type": "*Thermal-Flow Coupled Solution Parameters",
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "Thermal Solution Parameters",
|
||||
"type": "Thermal Solution Parameters",
|
||||
"name": "Normal Modes",
|
||||
"type": "Normal Modes",
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
@@ -110,8 +98,8 @@
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "Modal Frequency Response",
|
||||
"type": "Modal Frequency Response",
|
||||
"name": "DisableInThermalSolution",
|
||||
"type": "DisableInThermalSolution",
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
@@ -128,20 +116,8 @@
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "Normal Modes",
|
||||
"type": "Normal Modes",
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "Modal Transient Response",
|
||||
"type": "Modal Transient Response",
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "\"ObjectDisableInThermalSolution3D",
|
||||
"type": "\"ObjectDisableInThermalSolution3D",
|
||||
"name": "\"ObjectDisableInThermalSolution2D",
|
||||
"type": "\"ObjectDisableInThermalSolution2D",
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
@@ -151,12 +127,6 @@
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "0Thermal-Structural Coupled Solution Parameters",
|
||||
"type": "0Thermal-Structural Coupled Solution Parameters",
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "Design Optimization",
|
||||
"type": "Design Optimization",
|
||||
@@ -164,14 +134,44 @@
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "DisableInThermalSolution",
|
||||
"type": "DisableInThermalSolution",
|
||||
"name": "Modal Frequency Response",
|
||||
"type": "Modal Frequency Response",
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "\"ObjectDisableInThermalSolution2D",
|
||||
"type": "\"ObjectDisableInThermalSolution2D",
|
||||
"name": "0Thermal-Structural Coupled Solution Parameters",
|
||||
"type": "0Thermal-Structural Coupled Solution Parameters",
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "*Thermal-Flow Coupled Solution Parameters",
|
||||
"type": "*Thermal-Flow Coupled Solution Parameters",
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "Thermal Solution Parameters",
|
||||
"type": "Thermal Solution Parameters",
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "\"ObjectDisableInThermalSolution3D",
|
||||
"type": "\"ObjectDisableInThermalSolution3D",
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "Linear Statics",
|
||||
"type": "Linear Statics",
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
},
|
||||
{
|
||||
"name": "Modal Transient Response",
|
||||
"type": "Modal Transient Response",
|
||||
"solver": "NX Nastran",
|
||||
"description": "Extracted from binary .sim file"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user