How to install DPF
- Two installation paths: Use DPF from your Ansys installation (recommended) or install the standalone DPF package
- PyDPF-Core installation: Install the Python client with
pip install ansys-dpf-core - Version compatibility: 2024 R1+ supports latest PyDPF-Core; 2023 R2- requires specific version matching
- Python prerequisites: Python 3.10+ required; you should have basic Python environment setup
Licensing
- Environment variable: Set
ANSYS_DPF_ACCEPT_LA=Yto accept the DPF license agreement - Permanent setup: Configure the variable system-wide (not just current session) to avoid repeated setup
- Verification required: Must restart your terminal/IDE after setting the environment variable
Verifying your installation
- Test with start_local_server(): The simplest way to verify DPF is working
- Common errors:
ValueError: Unable to locate any Ansys installation- SetAWP_ROOT{version}orANSYS_DPF_PATHRuntimeError: ...ANSYS_DPF_ACCEPT_LA...- Accept license agreement with environment variable
- Entry operators: Use basic operators to confirm licensing is properly configured
- Centralized troubleshooting: All verification and error solutions are in Verify your installation
📝 Checkpoint: Verify your understanding
Before moving to the next chapter:Complete the DPF setup surveyTake 5-7 minutes to:
- ✅ Verify you understood the key concepts
- 💡 Share what worked well
- 🔧 Tell us what could be improved