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

[DesignModeler] Import of 3D-curve from .txt

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2013, 09:32
Lightbulb Import of 3D-curve from .txt
  #1
New Member
 
B.Rathmann
Join Date: Feb 2013
Location: Germany
Posts: 7
Rep Power: 13
Brathmann is on a distinguished road
Helly everybody,

as a complete beginner do ANSYS (FLUENT) I try to follow a tutorial on an airfoil with ANSYS14.
To begin with the geometry of a NACA 7420 shall be imported as a 3D-curve from a .txt file (attached).
When I import this file I get a Reading Error and after generation the
"Error: Duplicate Coordinates found in Coordinates File
Context:Curve Feature Curve5
File:<path>
Line:61"

I cant see any duplicate coordinates which I figured to be coordinates of the same group and point number nor geometrically the same coordinates.
Line 61 is the line in wich the curve's coordinates are the origin.
If I change them slightly the Error still appears
If I delete them I then get the
"Error: Points in Coordinates File are outside valid range
Context: Geometry Engine, while generating Feature Curve5"

Since I could not find the definition of the "valid range" neither in the ANSYS help nor in other threads or by experimenting I hope for your help.

(If I missed to explain relevant aspects of the problem please ask for more information)

Thank you for thinking about it
Attached Files
File Type: txt AirfoilGeometry2.1.txt (4.1 KB, 1072 views)

Last edited by Brathmann; February 13, 2013 at 09:32. Reason: Problem solved
Brathmann is offline   Reply With Quote

Old   February 12, 2013, 10:33
Default
  #2
Senior Member
 
Josef Runsten
Join Date: Jul 2010
Location: Gothenburg, Sweden
Posts: 188
Rep Power: 24
jrunsten will become famous soon enough
Send a message via MSN to jrunsten
For a closed curve, the file should end like this:

1 115 0.993048943 -0.002014453 0
1 116 0.996641161 -0.002030757 0
1 117 0.998801745 -0.002041384 0
1 118 0.999522818 -0.002045067 0
1 0
danielncku likes this.
jrunsten is offline   Reply With Quote

Old   February 13, 2013, 05:00
Post
  #3
New Member
 
B.Rathmann
Join Date: Feb 2013
Location: Germany
Posts: 7
Rep Power: 13
Brathmann is on a distinguished road
Thanks for the effort. Actually I had tried that and it won't do.
The
"Error: Points in Coordinates File are outside valid range
Context: Geometry Engine , while generating Feature Curve1
Eror: Empty selection
Context: Geometry Engine while generating Featrue Curve1"
still does appear.

Btw, I read somewhere that putting the point number to zero automatically stops DesignsModeler from reading the coordinates behind it. Also I tried different coordinate inputs from other tutorials (mostly for airfoils, so basically in the same range) and even the import example of the ANSYS help gives this error.

1 1 10.1234 15.4321 20.5678
1 2 15.2468 20.1357 25.1928
1 3 5.5555 6.6666 7.7777

2 1 100.0101 200.2021 15.1515
2 2 -12.3456 .8765 -.9876
2 3 11.1234 12.4321 13.5678
2 0

What DOES WORK is this, but it stops working when I add more decimal numbers

1 1 1 0 0
1 2 2.5 3.5 0
1 3 3.5 4.5 0
1 4 4.5 5.5 0
1 5 5.5 6.5 0
1 0 0 0 0

It doesn't seem a reasonable solution for importing coordinates to only use integers. Also, when i make the airfoil data all integers, it doesn't help.

Can anyone guess the deciding difference in the data?
Or might there be any setting in ANSYS which limites the importable data range? All my settings should be the default settings though.
Any ideas?
Brathmann is offline   Reply With Quote

Old   February 13, 2013, 05:26
Default
  #4
Senior Member
 
Josef Runsten
Join Date: Jul 2010
Location: Gothenburg, Sweden
Posts: 188
Rep Power: 24
jrunsten will become famous soon enough
Send a message via MSN to jrunsten
Your original coordinate file works fine on my machine. Try switching your dots for commas (,) and see if that helps. Perhaps some language setting somewhere is ignoring your dots, making the dimensions huge.
lape95 likes this.
jrunsten is offline   Reply With Quote

Old   February 13, 2013, 06:09
Lightbulb Solution: Import of 3D-Curve from .txt
  #5
New Member
 
B.Rathmann
Join Date: Feb 2013
Location: Germany
Posts: 7
Rep Power: 13
Brathmann is on a distinguished road
Frickin genious!

Originally installed was the german version of ANSYS and I only switched the Language Settings to English. So actually the program expects kommata to indicate decimals and the dotted number got too big.
And I thought beein smart paying attention to keep the data with dots.

Thank you Joseph!
I know have a beautyful airfoil profile.
Enjoy your day
Brathmann is offline   Reply With Quote

Old   March 29, 2013, 17:24
Default 3D curve text file import
  #6
New Member
 
Arshiya Hoseyni Chime
Join Date: Feb 2012
Posts: 11
Rep Power: 14
arshiya4 is on a distinguished road
Hi,

I am having a hard time importing my airfoil data into design modeler! I follow the airfoil tutorial of workbench closely to generate my text file. I attached the file below. I am using the 3D curve However, I get the following error:

Error reading coordinates file
Context: curve feature curve1
File:/home/ahc9/workbench/naca63815_1.txt
Line:6

If I only import the first 94 points, design modeler plots it nicely however as soon as I have more than 94 points it gives me the above error!!!!

In settings, minimum number of points is set to 2000! Also, language is English( changing to commas didn't help)

I'd really appreciate any help.

Thank you

Arshiya
Attached Files
File Type: txt naca63815_1.txt (5.6 KB, 577 views)
arshiya4 is offline   Reply With Quote

Old   March 30, 2013, 03:52
Default
  #7
Senior Member
 
Ali
Join Date: Jan 2012
Location: Pakistan
Posts: 134
Rep Power: 16
Hybrid is on a distinguished road
Your text file is inconsistent, i figured it out and attached the modified file.

First use excel that how these data points look like, arrange the data in columns and then export the file as text(tab delimited)*.txt.

enjoy!
Attached Images
File Type: jpg 0012.jpg (21.5 KB, 675 views)
Attached Files
File Type: txt 0012.txt (5.2 KB, 1264 views)
__________________
Best Regards
Ali


Hybrid is offline   Reply With Quote

Old   April 1, 2013, 19:40
Default Thank you :)
  #8
New Member
 
Arshiya Hoseyni Chime
Join Date: Feb 2012
Posts: 11
Rep Power: 14
arshiya4 is on a distinguished road
Thank you so much Ali. It worked! I redid this in excel to make sure it works and it did.



Quote:
Originally Posted by Hybrid View Post
Your text file is inconsistent, i figured it out and attached the modified file.

First use excel that how these data points look like, arrange the data in columns and then export the file as text(tab delimited)*.txt.

enjoy!
arshiya4 is offline   Reply With Quote

Old   April 2, 2013, 07:43
Default
  #9
New Member
 
Mario Belmar
Join Date: Apr 2013
Posts: 4
Rep Power: 13
Belmar is on a distinguished road
Hi,
I'm new in Fluent and I have a problem with the coordinates of an airfoil NACA 2412. When I import the coordinates it shows an error message that the coordinates couldn't been read. I've put commas and the error continues. Can anybody help me, please? Sorry for my English
Thank you very much
Attached Files
File Type: txt NACA2412 .txt (62.4 KB, 254 views)
Belmar is offline   Reply With Quote

Old   April 2, 2013, 08:45
Default
  #10
Senior Member
 
Josef Runsten
Join Date: Jul 2010
Location: Gothenburg, Sweden
Posts: 188
Rep Power: 24
jrunsten will become famous soon enough
Send a message via MSN to jrunsten
You have selfintersecting curves:



I think you need to separate them in order to import the coordinates. Also, check you "Point Feature Limit" in Tools>Options>Miscellaneous. Perhaps your default is too small
oewnce932c and noaceshigh like this.
jrunsten is offline   Reply With Quote

Old   April 2, 2013, 13:17
Default
  #11
New Member
 
Mario Belmar
Join Date: Apr 2013
Posts: 4
Rep Power: 13
Belmar is on a distinguished road
Hi,
thanks for respond. I don't know what so you mean with intersecting curves as I look the coordinates and I don't see any point at X axis or the line at X=1. I hace changed the point feature limit as it was set at 2000 points and I had 2001! Anyway the error continues. Have I to exclude some coordinates)
Thanks!
Belmar is offline   Reply With Quote

Old   April 2, 2013, 13:54
Default
  #12
Senior Member
 
Ali
Join Date: Jan 2012
Location: Pakistan
Posts: 134
Rep Power: 16
Hybrid is on a distinguished road
take ur coordinate file to the excel, and put the data into columns.
then save file as text(tab delimited file). it will surve the purpose.

dnt put commas, only decimal point. ok
__________________
Best Regards
Ali


Hybrid is offline   Reply With Quote

Old   April 3, 2013, 03:36
Default
  #13
Senior Member
 
Josef Runsten
Join Date: Jul 2010
Location: Gothenburg, Sweden
Posts: 188
Rep Power: 24
jrunsten will become famous soon enough
Send a message via MSN to jrunsten
Quote:
Originally Posted by Belmar View Post
Hi,
thanks for respond. I don't know what so you mean with intersecting curves as I look the coordinates and I don't see any point at X axis or the line at X=1. I hace changed the point feature limit as it was set at 2000 points and I had 2001! Anyway the error continues. Have I to exclude some coordinates)
Thanks!
Then explain to me points 12-14 and 1979-1999, as well as 987-1003

Open the series in excel/matlab/whatever and plot it. You'll see the points
jrunsten is offline   Reply With Quote

Old   April 3, 2013, 10:20
Default
  #14
New Member
 
Mario Belmar
Join Date: Apr 2013
Posts: 4
Rep Power: 13
Belmar is on a distinguished road
Quote:
Originally Posted by jrunsten View Post
Then explain to me points 12-14 and 1979-1999, as well as 987-1003

Open the series in excel/matlab/whatever and plot it. You'll see the points
You're right, when I put the coordinates in Excel I did something with the decimals and that made that for example 0,000095 converted into 0,95. This ocurred in some coordinates but now is all clear and I've been able to import the coordinates succesfully.
Thank you very much!

PS: I upload the coorect coordinetes for the NACA2412 for someone who could need them.
Attached Files
File Type: txt NACA-2412.txt (68.2 KB, 566 views)
Belmar is offline   Reply With Quote

Old   April 3, 2013, 10:22
Default
  #15
Senior Member
 
Josef Runsten
Join Date: Jul 2010
Location: Gothenburg, Sweden
Posts: 188
Rep Power: 24
jrunsten will become famous soon enough
Send a message via MSN to jrunsten
nice work
jrunsten is offline   Reply With Quote

Old   September 27, 2014, 11:23
Default
  #16
New Member
 
Shravan
Join Date: Sep 2014
Posts: 4
Rep Power: 12
shravansudden is on a distinguished road
Quote:
Originally Posted by Hybrid View Post
Your text file is inconsistent, i figured it out and attached the modified file.

First use excel that how these data points look like, arrange the data in columns and then export the file as text(tab delimited)*.txt.

enjoy!
Sir, it displays the following message.
Error: Duplicate Coordinates found in Coordinates File
shravansudden is offline   Reply With Quote

Old   October 27, 2014, 13:07
Post I had imported coordinates into DesignModel, only points are importing
  #17
New Member
 
A.P
Join Date: Oct 2014
Posts: 2
Rep Power: 0
guttasandeep22 is on a distinguished road
only points are importing, but i need curve also, how to import both point and curve... Can any one plz tell me

and also plz tell me that how to verify the Lift & Drag force values of NACA0012 or any coordinate, i had found lift and drag forces but how to knw it is correct,, how to verfy these values.....Can any one plzzzzzzzzzzzzz suggest
guttasandeep22 is offline   Reply With Quote

Old   November 5, 2014, 04:20
Default
  #18
New Member
 
finaeira
Join Date: Nov 2014
Posts: 2
Rep Power: 0
fina is on a distinguished road
I am new in ansys cfx, I try to import point into geometry and then make a 3d curve. but, the problem i face is the point come out cannot snap when i try to draw a line or trim.
fina is offline   Reply With Quote

Old   February 12, 2015, 12:48
Default points name
  #19
New Member
 
tolga
Join Date: Feb 2015
Posts: 1
Rep Power: 0
tolgakaraca is on a distinguished road
I've created points. How do I see the name of the points? please help...
tolgakaraca is offline   Reply With Quote

Old   April 17, 2015, 23:29
Default 3D geometry import from txt.
  #20
New Member
 
None
Join Date: Nov 2014
Posts: 1
Rep Power: 0
ivan007 is on a distinguished road
Hi everyone,

I am a newer to fluent. I attempt to analysis flow inside of asymmetric dual-bell nozzle (z=0) in fluent 14.5 academic version. Nozzle contour is generated by Matlab, and I have generate the txt file used to import. The warraning is following:

Error 1: A minimum of two points are needed for curve creation
Context: Geometry Engine, while generating Feature Curve4

Error 2: Boolean operation failed
Context: Geometry Engine, while generating Feature Curve6

It is important to notice that, Curve4 and Curve6 are same nozzle contour, with different number of points, 250, and 4200 respectively.

The amount of points (I need) is 2e4 (or 4000) in txt file in total. However, it doesn't work when first 300 points are imported. I use same method to import 3D (asymmetric nozzle) successfully, but failed in this model. I have already deleted the duplicate points (only two). Plot (x,y) from Matlab and Excel show that there is no curve intersection.

I don't know how to deal with this problem, so I do really wish your help.

If I miss some information, please let me know.

Thanks for your time,

Xiaohua
Nozzle Contour First 2500 points.txt

Nozzle Contour Point No. 2501 to end .txt

Dual-Bell Nozzle Contour .jpg
ivan007 is offline   Reply With Quote

Reply

Tags
3d-curve, coordinates from .txt, geometry import


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
[ICEM] How to import point coordinates from .txt sixfor ANSYS Meshing & Geometry 2 January 19, 2011 13:44
import matrix from .txt hbf FLUENT 1 January 28, 2009 05:48
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
how to import the curve into blade gen fadly CFX 2 August 23, 2007 05:27
CFX4.3 -build analysis form Chie Min CFX 5 July 13, 2001 00:19


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