In the official documentation website of pyansys the following minimum working example is published:
my_conv = np.array([[0, 0.001],
[120, 0.001],
[130, 0.005],
[700, 0.005],
[710, 0.002],
[1000, 0.002]])
mapdl.load_array('MY_ARRAY', my_conv)
mapdl.parameters['MY_ARRAY']
It works fine BUT if you insert a negative value in the array for example type -700 instead of 700 it corrupts the data. If we give the input:
my_conv = np.array([[0, 0.001],
[120, 0.001],
[130, 0.005],
[-700, 0.005],
[710, 0.002],
[1000, 0.002]])
mapdl.load_array('MY_ARRAY', my_conv)
mapdl.parameters['MY_ARRAY']
The output in python is the following:
array([[ 0.0e+00, 1.0e-03],
[ 1.2e+02, 1.0e-03],
[ 1.3e+02, 5.0e-03],
[-7.0e+00, 2.5e+01],
[ 7.1e+02, 2.0e-03],
[ 1.0e+03, 2.0e-03]])
The entry -700 is - 7 now and the value next to it that must be 0.005 is 25 now!!!!
This bus has been causing massive error in my simulation. What is wrong? Is my french keyboard somehow affecting the entered values? Please try the example by your own and tell me if I'm going crazy. Thanks in advance