Import of point coordinates (.dat File) directly into Hypermesh possible?
Hi there!
I have the following issue: In order to model a 2D airfoil with the help of several points I would like to import a '.dat file' that contains all the point coordinates for the airfoil surface. Is there a possible way to import these data directly without any file transformation?
In addition, I would really like to know if it's possible, and if yes how, to connect all the airfoil surface points together with a SMOOTH and nice spline instead of strange linear splines?
Thank you very much for your help!
Kind regards
Martin
Find more posts tagged with
This is my dat-file (coordinates of points) which I would really like to import into HyperMesh with the least amount of effort/ data conversion...
Only Y-coordinate ?
A2_NASA_SC2_0712_t2c11,01.dat (y-Koordinaten des Ausgangs-Profils 'NASA_SC2_0712_t2c11,03.dat' mit Faktor 0,998323 multipliziert) 1,000000 -0,010655 0,993734 -0,009000 0,983123 -0,006276 0,971048 -0,003295 0,957627 -0,000136 0,943066 0,003118 0,927606 0,006405 0,911494 0,009675 0,894934 0,012885
Here's complet script based on Tinh's script:
proc p_ReadCloudPointFile {FilePath} { set fpt [open $FilePath] set buf [string map {, .} [read $fpt]] close $fpt set lines [split $buf \n] foreach line $lines { if {[scan $line '%f %f' x y]==2} { *createnode $x $y 0 } } } set fileTypes { {'Data' {.dat} } {'All files' * } } set file_name [tk_getSaveFile -filetypes $fileTypes -title 'DataFile' ] p_ReadCloudPointFile $file_name;
Can't you find a cad software to do that?