I have a great script that will import a .dat formatted file, but now I need to go the other way. Does a script exist that will convert/export a selected curve to the .dat format? At a stretch, a script that asks for the number of coordinate points desired? Please let me know.
Coordinate points only David, and thanks for responding quickly.
I am looking for a tool/utility that will export a selected curve into the classic .dat format, which is straight lines between coordinate points. Ideally, such a utility should ask how many points are desired. (Within aerospace, 60-100 points are common, but not exclusive)
The application is aero/hydro engineering. CFD oriented applications such as xFOIL, xFLR5, OpenFOAM and more still work with this form factor. With these applications I import .dat formatted curves and run analysis of multiple types.
The problem I and many of us have is that we can import .dat formatted curves, convert them to native geometry for modification/optimization/surfacing and more, but if I/we want to see what the results look like, we need to go back to .dat. If I want to make an aero/hydro point to my peers, superiors and advisors, I need to convert my native work back into .dat.
This trouble is not unique to me. Such a utility would be appreciated by many. I for one would promote it.
Partial response:
Use Divide to create desired number of points on the curve.
Export as Points (.txt) will export the point coordinates as a list of ASCII triplets.
The .txt file can be converted to a .dat file if needed.
Absolutely correct Dale. .dat dates back to the DOS days and is very, very generic and crude. That modern CFD still uses this form factor is a story of its own.
Presented is an example. It’s just a text file of 2 column data. (rename to .dat)
Dr. Michael Selig is on this as well, but I’m not clear as to how to ‘Export Selected’ to a text file I can rename. Presented is a video of the steps, but he stops at the export step. We are close.