CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > ANSYS Meshing & Geometry

[DesignModeler] Importing XYZ point data, making a surface for the bed of a CFD solution domain

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 18, 2023, 13:10
Default Importing XYZ point data, making a surface for the bed of a CFD solution domain
  #1
Member
 
Join Date: Oct 2022
Posts: 63
Rep Power: 4
@Arash is on a distinguished road
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
@Arash is offline   Reply With Quote

Old   March 21, 2023, 11:27
Default
  #2
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23
evcelica is on a distinguished road
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
evcelica is offline   Reply With Quote

Old   March 24, 2023, 10:50
Default
  #3
Member
 
Join Date: Oct 2022
Posts: 63
Rep Power: 4
@Arash is on a distinguished road
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.
@Arash is offline   Reply With Quote

Old   March 30, 2023, 16:31
Default
  #4
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23
evcelica is on a distinguished road
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
evcelica is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 09:46
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 06:18


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