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.
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] |
write_kfile
write_kfile (path_to_file)
How to use it:
CLI
write_kfile.py --file.csvJupyter notebook
write_kfile("path/to/file.csv")