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

[DesignModeler] Creating surfaces from points data

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2016, 12:52
Default Creating surfaces from points data
  #1
New Member
 
abcd efgh ijkl
Join Date: Oct 2015
Posts: 26
Rep Power: 10
alibaig1991 is on a distinguished road
Hello, I am trying to do CFD analysis of NACA-2424 airfoil. I have coordinate data in the format.. #Group #Point x y z. I am using only 1 group for points on both upper and lower portion of airfoil. When I import coordinates data in Ansys Design Modeler, it shows discrete points. Is there a way to create curves/lines between points to complete airfoil?
alibaig1991 is offline   Reply With Quote

Old   February 28, 2016, 17:38
Default
  #2
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 13
Kapi is on a distinguished road
Yes Ali,

you need to create script for that. Create your points, lines and curves thru scripting. Read about it in Help section on Ansys. If you dont understand then I will send you a sample of geometry not airfoil tho!

Cheers
KAPI
Kapi is offline   Reply With Quote

Old   March 3, 2016, 21:28
Default
  #3
New Member
 
abcd efgh ijkl
Join Date: Oct 2015
Posts: 26
Rep Power: 10
alibaig1991 is on a distinguished road
Hi, Kappi!
I have trying to create airfoil from the coordinates. I go to Concept->3D Curve in Ansys Desing Modeler and browse to the file containing coordinates. The coordinates are in txt file and the coordinates are arranged as below:
#NACA 2424 Airfoil Coordinates
#Group #Point #X #Y #Z
1 1 0.000000 0.000000 0
1 2 0.008550 0.038920 0
1 3 0.020120 0.054490 0
1 4 0.043800 0.075520 0
1 5 0.068200 0.090520 0
1 6 0.093000 0.102150 0
1 7 0.143330 0.118880 0
1 8 0.194270 0.129590 0
1 9 0.245550 0.135930 0
1 10 0.297000 0.138740 0
1 11 0.400000 0.136060 0
1 12 0.501180 0.125320 0
1 13 0.602030 0.109030 0
1 14 0.702440 0.088240 0
1 15 0.802330 0.063520 0
1 16 0.901610 0.035020 0
1 17 0.950980 0.019300 0
1 18 1.000000 0.000000 0
1 19 0.016150 -0.036460 0
1 20 0.029880 -0.049650 0
1 21 0.056200 -0.066140 0
1 22 0.081800 -0.076920 0
1 23 0.107000 -0.084650 0
1 24 0.156670 -0.094500 0
1 25 0.205730 -0.099590 0
1 26 0.254450 -0.101550 0
1 27 0.303000 -0.101240 0
1 28 0.400000 -0.096060 0
1 29 0.498820 -0.086440 0
1 30 0.597970 -0.073470 0
1 31 0.697560 -0.058240 0
1 32 0.797670 -0.041300 0
1 33 0.898390 -0.022800 0
1 34 0.949020 -0.012920 0
1 35 1.000000 0.000000 0

I have tried a number of times and everytime error message pops up "Error reading Coordiantes file." What mistake I am making?
Thank you
alibaig1991 is offline   Reply With Quote

Old   March 4, 2016, 00:34
Default
  #4
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 13
Kapi is on a distinguished road
Hi Ali,

this is how co-ordinates are written in script
Code:
function planeSketchesOnly1 (p)
{
p.Plane  = agb.GetActivePlane();
p.Origin = p.Plane.GetOrigin();
p.XAxis  = p.Plane.GetXAxis();
p.YAxis  = p.Plane.GetYAxis();
p.Sk1 = p.Plane.NewSketch();
p.Sk1.Name ="Sketch1";
with (p.Sk1)
{
p.Ln1= Line(0.33127,0.10845,0.37098,0.10845);
p.Cr3= ArcCtrEdge(0.36984,0.11073,0.37098,0.10845,0.37212,0.10959);



}
with (p.Plane)
{
}
p.Plane.EvalDimCons();
return p;
}
var ps1 = planeSketchesOnly1 (new Object());
agb.Regen();

save this code in .js file and go to DM and File>Run Script
You will see how it is creating line and small curve.

Use similar way to write your script JS file and run it.

Hope it helps

Cheers
KAPI
Kapi is offline   Reply With Quote

Reply

Tags
surface from points

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Data at nodes/grid points of cells sagnikmazumdar OpenFOAM 3 April 25, 2023 11:40
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
XYZ (ASCII format) data points into GAMBIT Neil FLUENT 1 August 7, 2007 10:24
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27
Points on surfaces in a rotating mesh Martin FLUENT 0 August 22, 2000 14:36


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