Write .key file

Infepy has a built-in function to write LS Dyna key file from csv files.

Trasfrom dataframe to LS-DYNA key file.


source

df_to_ls_dyna_format

 df_to_ls_dyna_format (dataframe:pandas.core.frame.DataFrame)
Type Details
dataframe DataFrame Dataframe containing node position [Label,x,y,z]

*NODE card syntax in LS-DYNA

source

write_kfile

 write_kfile (path_to_file)

How to use it:

CLI

write_kfile.py --file.csv

Jupyter notebook

write_kfile("path/to/file.csv")