|
[Sponsors] |
October 24, 2011, 11:00 |
Pointwise segment file or .dat file example
|
#1 |
Member
Rui Vizinho de Oliveira
Join Date: Sep 2011
Posts: 31
Rep Power: 15 |
Hello 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 |
|
October 22, 2014, 19:48 |
|
#2 |
New Member
Join Date: Dec 2011
Posts: 22
Rep Power: 14 |
Here is a segment file that imports a triangle:
Code:
4 0 0 0 0 1 0 1 0 0 0 0 0 |
|
October 23, 2014, 12:34 |
|
#3 |
Senior Member
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14 |
And with multiple segs in one file. This defines a triangle and a square.
Code:
4 1 1 0 1 2 0 2 1 0 1 1 0 5 2 1 0 2 3 0 4 3 0 4 1 0 2 1 0 |
|
October 23, 2014, 12:36 |
|
#4 |
Member
Rui Vizinho de Oliveira
Join Date: Sep 2011
Posts: 31
Rep Power: 15 |
Thank you soo much.
Cheers! |
|
November 22, 2015, 14:28 |
|
#5 |
New Member
Petar Filipovic
Join Date: Nov 2015
Location: Zagreb, Croatia
Posts: 9
Rep Power: 11 |
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 |
|
November 23, 2015, 11:46 |
|
#6 |
Senior Member
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14 |
There is an example of a multiple segment file in post #3 above.
Another way of defining it is: Code:
N1 x1 y1 z1 x2 y2 z2 ... xN1 yN1 zN1 N2 x1 y1 z1 x2 y2 z2 ... xN2 yN2 zN2 <repeat> 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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 14:06 |
[OpenFOAM] Paraview command not found | hardy | ParaView | 7 | September 18, 2008 05:59 |
gcc and executable file from Mac to Linux | simone Marras | Main CFD Forum | 0 | April 8, 2007 16:49 |
Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 21:51 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 16:16 |