CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (https://www.cfd-online.com/Forums/ansys-meshing/)
-   -   [DesignModeler] Importing XYZ point data, making a surface for the bed of a CFD solution domain (https://www.cfd-online.com/Forums/ansys-meshing/248515-importing-xyz-point-data-making-surface-bed-cfd-solution-domain.html)

@Arash March 18, 2023 12:10

Importing XYZ point data, making a surface for the bed of a CFD solution domain
 
Hello freinds,

I have a some of XYZ data of a 3D geometry in text format(.txt).These data are export from Tecplot software.I want to create the geometry from these points in Design Modeler and use Anasys Fluent to simulate the flow on it.
What steps do you suggest so that I can convert the text file to solid geometry in Design Modeler ?

Thank you for your help with my question

evcelica March 21, 2023 10:27

I've only done this once.
In your text file, (text, tab delimited) make 5 columns.
1st column is line number, 2nd is point number in that line, then X,Y,Z. To close the loops, like if you had a circle, you must have a point 0 included at the end of each line number with no X,Y,Z,. If you are not making a circular surface, then you font need to close the lines.
I believe each of these lines must have the same number of points.
The create curve from the text file. You will then have a bunch of curves made by spline interpolation of your points. Perform a skin/loft of those curves to create your surface.
Of course you may need to reorder your text file to put it into the order of a bunch of lines which you can use.
Good Luck

@Arash March 24, 2023 09:50

I have three columns of XYZ geometry data in a notepad file. How and on what basis should I arrange them ?
I have been dealing with this problem for a long time to be able to create its solid geometry from the data in the notepad file.
Is it possible to send you the notepad file so that you can help me ?
Thank you very much for your help.

evcelica March 30, 2023 15:31

Yes, you can send me the text file and I can take a look at it. But You should attempt this on your own first. I'll PM you my email.

Let's say your data is in a uniform spacing XY grid, and Z is the offset distance.
You need to create lines from the data, so you could arrange it into lines each with the same X, and increasing Y, or visa versa. Sort by low to high for Y, then sort by low to high X, for a file like this: (but without the header)
See Lines are all on the same X, with increasing Y, then the Z value.
This would create 3 lines, and you would then skin/loft those three lines which will connect each point number to the corresponding point number on the next line.

I believe each line has to have the same number of points for this to work.
It creates curves for all the lines, then skin/lofts the points on the lines to create the surface.

Line # Point # X Y Z
1 1 1 1 5.7
1 2 1 2 6.5
1 3 1 3 7.3
2 1 2 1 8.1
2 2 2 2 8.9
2 3 2 3 9.7
3 1 3 1 10.5
3 2 3 2 11.3
3 3 3 3 12.1


All times are GMT -4. The time now is 13:59.