- **Pointwise & Gridgen**
(*https://www.cfd-online.com/Forums/pointwise/*)

- - **Pointwise segment file or .dat file example**
(*https://www.cfd-online.com/Forums/pointwise/93703-pointwise-segment-file-dat-file-example.html*)

Pointwise segment file or .dat file exampleHello all, I have been reading about how to import a segment file or a .dat file in Pointwise, and I have always encountered the following answer:
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) end do end do Or variations of it. The point is, can anyone actually give me a simple .dat file or segment file with one segment and 3 points so i can load it on Pointwise? I have tried to implement the pseudo-code but I believe I must be doing something very wrong. I use a spreadsheet to implement the pseudo-code but Pointwise never imports my .dat files. Best regards Rui Oliveira |

Here is a segment file that imports a triangle:
Code:
`4` |

1 Attachment(s)
And with multiple segs in one file. This defines a triangle and a square.
Code:
`4` |

Thank you soo much.
Cheers! |

Hello,
I have run on several answers to my question below. How to import data from a .dat or .txt file? File contains x,y,z coordinate of a point. The answer was always: 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)... Can someone explain how to use it on .dat or .txt file? Regards, Petar |

There is an example of a multiple segment file in post #3 above.
Another way of defining it is: Code:
`N1` N1 is number of points in segment 1. N2 is number of points in segment 2. xn yn zn is the coordinates of segment point n. |

All times are GMT -4. The time now is 10:41. |