Closed davidrudlstorfer closed 3 months ago
When creating .dat files with MeshPy certain sections of the created .dat file stay empty most of the times.
For example for all pure structure cases the FLUID ELEMENTS section stays empty.
FLUID ELEMENTS
In my opinion these empty sections do not need to be written out if there are no elements of this specific type within the current problem setup.
This could be solved with a simple addition within meshpy/inputfile.py. Just add
meshpy/inputfile.py
if len(data_list) == 0: return
at the beginning of the get_section_dat.
get_section_dat
If this would be possible - let me know and I open a PR (and adjust all reference files)
Sounds good to me!
When creating .dat files with MeshPy certain sections of the created .dat file stay empty most of the times.
For example for all pure structure cases the
FLUID ELEMENTS
section stays empty.In my opinion these empty sections do not need to be written out if there are no elements of this specific type within the current problem setup.
This could be solved with a simple addition within
meshpy/inputfile.py
. Just addat the beginning of the
get_section_dat
.If this would be possible - let me know and I open a PR (and adjust all reference files)