Memory Constraints on Windows
When using certain solvers such as,FEM-based Solver for RF Structures, the Windows Subsystem for Linux (WSL) must be installed on the PC. According to Microsoft Documentation , WSL is assigned 50% of the total memory on Windows, or 8GB, whichever is less. As a result the size of the problems that may be solved will be limited.
To increase the available memory assigned to WSL follow the steps below:
Create a config file for WSL named
.wslconfog
located atC:/Users/%UserProfile%/.wslconfig
Make sure that the extension of the config file is
.wslconfig
Open the empty config file and add the following line with appropriate number values based on the PC specs and the memory requirements of the problem being solved:
[wsl2] memory=48GB #set the memry limit for WSL swap=8GB #Set the swap space limit for WSL
Save the config file
Run the following command line to stop the WSL service:
wsl --shutdown
Run the following command the PowerShell, running as administrator to restart WSL:
restart-service LxssManager