Excel Psychrometric Tool
Use this skill to create a macro-enabled Excel workbook for quick moist-air calculations.
Assume Windows, PowerShell, and desktop Excel. Prefer creating or refreshing a workbook in the current workspace and leaving it open for the user.
Workflow
- Confirm that Excel is already running when the user says it is open. If needed, attach to the active Excel instance.
- Run scripts/build_excel_psychrometric_tool.ps1 to create or refresh the workbook.
- Save the workbook as
psychrometric_air_tool.xlsmin the current workspace unless the user asks for a different path or name. - Leave the workbook open in Excel.
- Verify the calculator with one known case, then clear the sheet and save it blank.
Quick Rules
- Use the bundled PowerShell script instead of rebuilding the workbook logic by hand.
- Use standard atmospheric pressure
101.325 kPa. - Use these units:
- air temperature:
deg C - relative humidity:
% - humidity ratio:
g/kg dry air - dew point temperature:
deg C
- air temperature:
- Mark direct user inputs red and calculated outputs green.
- Provide
CalculateandClearbuttons in the workbook. - Keep the calculator behavior conservative and explicit when inputs are inconsistent.
Important Limitation
Do not claim that every pair of inputs is enough. Humidity ratio + dew point temperature are both vapor-pressure information, so they do not uniquely determine air temperature and relative humidity. The workbook should explain this and show a prompt instead of inventing values.
Script Usage
Run the bundled script from the current workspace:
& ".\skills\excel-psychrometric-tool\scripts\build_excel_psychrometric_tool.ps1"
To override the workbook location:
& ".\skills\excel-psychrometric-tool\scripts\build_excel_psychrometric_tool.ps1" -OutputPath ".\custom_name.xlsm"
Validation
After creating the workbook, verify one known case before handing it off:
- Enter
25for air temperature. - Enter
50for relative humidity. - Run the calculate macro.
- Expect approximately:
- humidity ratio:
9.86 g/kg dry air - dew point:
13.86 deg C
- humidity ratio:
- Confirm the two entered cells are red and the two calculated cells are green.
- Run the clear macro and save the workbook blank.
Deliverable
Report the workbook path, whether Excel was already open, the verification result, and the humidity ratio + dew point limitation.