mold-flow
Domain: engineering — Manufacturing & Industrial Systems

Summary: Configure process parameters in Moldex3D, run the staged mold-flow analysis, and save the required outputs.

Task prompt:
You are a CAE (Computer-Aided Engineering) engineer performing injection molding simulation using Moldex3D.

## Your Task
Configure process parameters and run a mold-flow analysis for project **230057** using the Moldex3D software.

## Input Files
- **Moldex3D project** (mesh + material already configured, NO process parameters or analysis results):
  `E:\agenthle\engineering\mold-flow\230057\input\4穴230057`
- **Process specification**: `E:\agenthle\engineering\mold-flow\230057\input\process_spec.json`
  This JSON file contains all the injection molding parameters you must configure.
- **Results template**: `E:\agenthle\engineering\mold-flow\230057\input\results_template.json`
  This JSON file has fields with null values that you must reproduce in `E:\agenthle\engineering\mold-flow\230057\output\results.json`.
- **Part geometry** (.x_t Parasolid): `E:\agenthle\engineering\mold-flow\230057\input\230057.x_t` (for visual reference only)

## What You Must Do
1. Open Moldex3D from `E:\agenthle\engineering\mold-flow\230057\software\MDXStudio.lnk` and load the project at:
   `E:\agenthle\engineering\mold-flow\230057\input\4穴230057`
2. Read the process specification JSON carefully
3. Configure ALL process parameters in Moldex3D's Process Wizard:
   - Melt temperature, mold temperature
   - Injection flow rate profile
   - V/P switch point (volume filled %)
   - Packing pressure profile and time
   - Cooling time, coolant temperature, coolant flow rate
4. Set up the analysis sequence: **Fill → Pack → Cool (Transient) → Warp**
4. Use the optional `.x_t` CAD file as a visual cross-check if helpful
5. Run the full analysis (this may take 1-2 hours)
6. After analysis completes, extract the simulation results from the Moldex3D result viewer
7. Create `E:\agenthle\engineering\mold-flow\230057\output\results.json` using the same JSON structure as `E:\agenthle\engineering\mold-flow\230057\input\results_template.json` and fill in all null fields with the simulation values
8. Save any working project artifacts under `E:\agenthle\engineering\mold-flow\230057\output` if you choose to create a writable copy

## Results to Extract
After analysis completes, fill in these fields in results.json:
- **Max injection pressure** (MPa)
- **V/P switch pressure** (MPa)
- **Runner pressure drop** (MPa)
- **Max clamping force** (ton)
- **Filling time** (sec)
- **Estimated cooling time** (sec)
- **Cycle time** (sec)
- **Part weight** per cavity (g)
- **Part volume** per cavity (cc)

## Evaluation
Your work will be evaluated by comparing your results.json against the reference values.
Each field within ±1% tolerance of the reference scores 1 point.
Final score = fraction of correct fields.

## Important
- Treat `E:\agenthle\engineering\mold-flow\230057\input\4穴230057` as the staged clean baseline
- Do not modify or rename the staged input project in place
- SAVE your project when finished
- The results template at `E:\agenthle\engineering\mold-flow\230057\input\results_template.json` shows the exact JSON structure expected

Required actions:
Open the staged Moldex3D project for the selected variant.
Read `input/process_spec.json` and configure the process parameters inside Moldex3D.
Run the Fill → Pack → Cool (Transient) → Warp analysis sequence.
Extract the required simulation values after the run completes.
Fill `output/results.json` using the staged template structure.
Save the modified project in `output/`.

Software: Python

Input files:
name: Clean Moldex3D project
format: directory
description: mesh/material/source present; answer-leaking .sum and .pro files removed
name: Part CAD geometry (optional)
format: `.x_t`
description: visual reference for the molded part; only staged for variants whose raw source includes a CAD sidecar
name: Process specification
format: `.json`
description: the process parameters the agent must configure
name: Results template
format: `.json`
description: exact output structure with null-valued fields