CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Pointwise & Gridgen (http://www.cfd-online.com/Forums/pointwise/)
-   -   Import point into pointwise (http://www.cfd-online.com/Forums/pointwise/90427-import-point-into-pointwise.html)

Joke July 10, 2011 02:29

Import point into pointwise
 
Hi everyone I'm joke nice to meet you.

I'm learning how to use the pointwise (mesh generator software).
I have a problem on how to import points (such as airfoil data points) into pointwise. I've tried to change a lot of possible *.dat file format but still I can't.
Could anyoone guide me how to do ?

thank a lot

PS. Sorry for my english , it's very poor.

Best regard
Joke.

cnsidero July 10, 2011 19:49

You'll need to use the segment file format. See pg 338 of the user manual for a description. The pseudo-code would be:

Code:

c.....nmax is the number of segments
c.....ni(n) is the number of points on segment n
c.....imax is the number of points

integer nmax
integer ni(nmax)
real x(imax), y(imax), z(imax)

do n = 1, nmax
    write(1,*) ni(n)
    do i = 1, ni(n)
      write(1,*) x(i,n), y(i,n), z(i,n)
    enddo
endo


Joke July 11, 2011 20:32

Thank you for your reply, Now I'm trying it.

dokeun April 3, 2013 00:16

I had a same problem

1st.
x, y, z are defined as 1D array but used as if 2D.

2nd.
anyway, an expected result are as below for example, 2 segments

max#
x1 y1 z1
x2 y2 z2
x3 y3 z3
...
xmax ymax zmax

max#
x1 y1 z1
x2 y2 z2
x3 y3 z3
...
xmax ymax zmax

it works


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