Skip to content

Commit e666bb9

Browse files
committed
files for difference cell numbers
1 parent 627a2ce commit e666bb9

7 files changed

+4
-2
lines changed
10.1 KB
Binary file not shown.
10.1 KB
Binary file not shown.
10.1 KB
Binary file not shown.

example_comparison_ansys_magpylib.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import numpy as np
22
import matplotlib.pyplot as plt
33

4+
cells = 15625
5+
46
isotropic_results_ansys = np.loadtxt('tests/testdata/isotropic_results_ansys.txt', skiprows=1)
57
isotropic_results_ansys = isotropic_results_ansys[:,3:]
68
anisotropic_results_ansys = np.loadtxt('tests/testdata/anisotropic_results_ansys.txt', skiprows=1)
79
anisotropic_results_ansys = anisotropic_results_ansys[:,3:]
8-
isotropic_results_magpylib = np.load('isotropic_results_magpylib_15625.npy')
9-
anisotropic_results_magpylib = np.load('anisotropic_results_magpylib_15625.npy')
10+
isotropic_results_magpylib = np.load('isotropic_results_magpylib_%d.npy' % cells)
11+
anisotropic_results_magpylib = np.load('anisotropic_results_magpylib_%d.npy' % cells)
1012

1113

1214
isotropic_results_ansys = isotropic_results_ansys.reshape((6,-1,3))
10.1 KB
Binary file not shown.
10.1 KB
Binary file not shown.
10.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)