feat: Add NX study models and optimization histories
Includes all study folders with NX models for development: - bracket_stiffness_optimization (V1, V2, V3) - drone_gimbal_arm_optimization - simple_beam_optimization - uav_arm_optimization (V1, V2) - training_data_export_test - uav_arm_atomizerfield_test Contains .prt, .fem, .sim files and optimization databases. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"study_name": "training_data_export_test",
|
||||
"sim_file": "examples/Models/Circular Plate/Circular_Plate.sim",
|
||||
"fem_file": "examples/Models/Circular Plate/Circular_Plate_fem1.fem",
|
||||
"design_variables": [
|
||||
{
|
||||
"name": "thickness",
|
||||
"expression_name": "thickness",
|
||||
"min": 2.0,
|
||||
"max": 8.0
|
||||
},
|
||||
{
|
||||
"name": "radius",
|
||||
"expression_name": "radius",
|
||||
"min": 80.0,
|
||||
"max": 120.0
|
||||
}
|
||||
],
|
||||
"objectives": [
|
||||
{
|
||||
"name": "max_stress",
|
||||
"type": "minimize",
|
||||
"extractor": {
|
||||
"type": "result_parameter",
|
||||
"parameter_name": "Max Von Mises Stress"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "mass",
|
||||
"type": "minimize",
|
||||
"extractor": {
|
||||
"type": "expression",
|
||||
"expression_name": "mass"
|
||||
}
|
||||
}
|
||||
],
|
||||
"constraints": [
|
||||
{
|
||||
"name": "stress_limit",
|
||||
"type": "less_than",
|
||||
"value": 300.0,
|
||||
"extractor": {
|
||||
"type": "result_parameter",
|
||||
"parameter_name": "Max Von Mises Stress"
|
||||
}
|
||||
}
|
||||
],
|
||||
"optimization": {
|
||||
"algorithm": "NSGA-II",
|
||||
"n_trials": 10,
|
||||
"population_size": 4
|
||||
},
|
||||
"training_data_export": {
|
||||
"enabled": true,
|
||||
"export_dir": "atomizer_field_training_data/test_study_001"
|
||||
},
|
||||
"version": "1.0"
|
||||
}
|
||||
17
studies/training_data_export_test/run_optimization.py
Normal file
17
studies/training_data_export_test/run_optimization.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""Run optimization for training data export test."""
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# Add parent directory to path
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent.parent))
|
||||
|
||||
from optimization_engine.runner import OptimizationRunner
|
||||
|
||||
def main():
|
||||
"""Run the optimization."""
|
||||
config_path = Path(__file__).parent / "1_setup" / "workflow_config.json"
|
||||
runner = OptimizationRunner(config_path)
|
||||
runner.run()
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user