load_array#
- Mapdl.load_array(name, array)#
Load an array from Python to MAPDL.
Uses
VREAD
to transfer the array. The format of the numbers used in the intermediate file is F24.18.- Parameters:
- name
str
An alphanumeric name used to identify this table. Name may be up to 32 characters, beginning with a letter and containing only letters, numbers, and underscores. Examples:
"ABC" "A3X" "TOP_END"
.- array
np.ndarray
orlist
List as a table or
numpy
array.
- name
Examples
>>> 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'] array([[0.0e+00, 1.0e-03], [1.2e+02, 1.0e-03], [1.3e+02, 5.0e-03], [7.0e+02, 5.0e-03], [7.1e+02, 2.0e-03], [1.0e+03, 2.0e-03]])