Skip to content

Errors when writing d3plot containing SPH data #101

Description

@Vortex-CAE

When attempting to convert an animation file using Vortex-Radioss library containing SPH into a d3plot file, an error occurs and the conversion fails.

input file : pauchDrop_0000.rad , pauchDrop_0001.rad
→ https://community.altair.com/home/leaving?allowTrusted=1&target=https%3A%2F%2Fus.v-cdn.net%2F6038102%2Fuploads%2Fattachments%2F00279344dbe58190cfd5f6a4e29619b8%2FPauchiSimple.zip

Description 1 of the input file → https://blog.altairjp.co.jp/droptest-pouch/
Description 2 of the input file → https://community.altair.com/discussion/41046/%E3%83%91%E3%82%A6%E3%83%81%E8%90%BD%E4%B8%8B%E8%A7%A3%E6%9E%90%E3%81%AE%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E3%83%A2%E3%83%87%E3%83%AB%E3%81%A7%E3%81%99

===↓↓ error message ↓↓↓===
Traceback (most recent call last):
File "", line 1, in
File "\lib\site-packages\vortex_radioss\animtod3plot\Anim_to_D3plot.py", line 238, in init
self.A_2_D(filepath, use_shell_mask, use_solid_mask, use_beam_mask, silent, no_warnings, show_rigidwall)
File "\lib\site-packages\vortex_radioss\animtod3plot\Anim_to_D3plot.py", line 990, in A_2_D
self._d3plot.write_d3plot(temp_d3plot_name, single_file = False)
File "\lib\site-packages\lasso\dyna\d3plot.py", line 6268, in write_d3plot
n_bytes_written += self._write_geom_sph_node_and_materials(fp, write_settings)
File "\lib\site-packages\lasso\dyna\d3plot.py", line 7069, in _write_geom_sph_node_and_materials
sph_data = np.concatenate((sph_node_indexes, sph_node_material_index), axis=1)
File "<array_function internals>", line 180, in concatenate
numpy.AxisError: axis 1 is out of bounds for array of dimension 1

Original issue:
Vortex-CAE/Vortex-Radioss#28 (comment)

@gappe41-ai

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions