你已经派生过 em3d-mt
镜像自地址
https://gitee.com/sduem/em3d-mt.git
已同步 2025-08-04 11:46:51 +08:00
14
README.md
14
README.md
@@ -20,24 +20,38 @@ GeoMesh
|
||||
For 3D geological modeling and mesh generation, GeoMesh is used. This is an open-source tool specifically designed for electromagnetic (EM) modeling, based on the COMSOL Multiphysics and MATLAB interface (Liu et al., 2024). GeoMesh generates unstructured tetrahedral meshes, which are ideal for representing complex subsurface structures in the forward modeling process. You can find the tool at https://gitee.com/sduem/geomesh
|
||||
|
||||
Additionally, em3d-MT supports two types of direct solvers for solving the finite element system:
|
||||
|
||||
Panua-Pardiso:
|
||||
An optimized direct solver used for solving large sparse linear systems. It offers high performance and memory efficiency. More information can be found at https://panua.ch/pardiso/
|
||||
|
||||
UMFPACK:
|
||||
An alternative direct solver supported by em3d-MT for solving sparse linear systems, suitable for small models or testing. More information can be found at http://faculty.cse.tamu.edu/davis/suitesparse.html
|
||||
|
||||
#### 2.3 Installation
|
||||
|
||||
Step 1: Install MATLAB
|
||||
Install MATLAB (R2023a or later). Parallel Computing Toolbox is available for multi-core support.
|
||||
|
||||
Step 2: Set Up Panua-Pardiso Solver
|
||||
|
||||
Windows: Refer to Barbara (2025). Add PARDISO lib to Matlab in Windows and LINUX, MATLAB Central File Exchange. https://www.mathworks.com/matlabcentral/fileexchange/119053-add-pardiso-lib-to-matlab-in-windows-and-linux, January 13, 2025.
|
||||
|
||||
The following steps outline how to configure the Panua-Pardiso solver in the Windows environment:
|
||||
|
||||
[1] Register for a Panua account. Then download the panua-pardiso-20240228-win package from the official website: https://panua.ch/pardiso/, and extract the contents.
|
||||
|
||||
[2] Open the bin folder in the extracted directory. Press Win + R, type cmd, and drag get_fingerprint.exe into the Command Prompt window. Press Enter to generate your machine fingerprint.
|
||||
|
||||
[3] Copy the machine fingerprint into the input box on the Panua Pardiso website. An activation key will be sent to your registered email.
|
||||
|
||||
[4] Create a file named panua.lic, paste the activation key into the file, and move it to the user directory (e.g., C:\Users\Username).
|
||||
|
||||
[5] Add MinGW Compiler to MATLAB by visiting: https://www.mathworks.com/matlabcentral/fileexchange/52848-matlab-support-for-mingw-w64-c-c-compiler
|
||||
|
||||
[6] Download and install Intel OneAPI Base Toolkit including MKL (Math Kernel Library) from: https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl.html
|
||||
|
||||
[7] Compile MEX Files. After updating the specific paths in the runMEM.m script to match your system, run the script in MATLAB to compile the required .mex files.
|
||||
|
||||
The following script is used to compile the Panua-Pardiso interface with MATLAB via MEX. It links the necessary Panua, MATLAB, and Intel MKL libraries using MinGW:
|
||||
|
||||
%% This one works (pardisoinit):
|
||||
|
在新工单中引用
屏蔽一个用户