CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Pointwise & Gridgen

Pointwise segment file or .dat file example

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 24, 2011, 10:00
Default Pointwise segment file or .dat file example
  #1
Member
 
Rui Vizinho de Oliveira
Join Date: Sep 2011
Posts: 31
Rep Power: 5
RuiVO is on a distinguished road
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
RuiVO is offline   Reply With Quote

Old   October 22, 2014, 18:48
Default
  #2
New Member
 
Join Date: Dec 2011
Posts: 22
Rep Power: 5
aniketaranake is on a distinguished road
Here is a segment file that imports a triangle:

Code:
4
0 0 0
0 1 0
1 0 0
0 0 0
aniketaranake is offline   Reply With Quote

Old   October 23, 2014, 11:34
Default
  #3
Member
 
David Garlisch
Join Date: Jan 2013
Location: Pointwise HQ
Posts: 86
Rep Power: 4
dgarlisch is on a distinguished road
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
Attached Images
File Type: png seg.png (3.0 KB, 13 views)
dgarlisch is offline   Reply With Quote

Old   October 23, 2014, 11:36
Default
  #4
Member
 
Rui Vizinho de Oliveira
Join Date: Sep 2011
Posts: 31
Rep Power: 5
RuiVO is on a distinguished road
Thank you soo much.

Cheers!
RuiVO is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
Paraview command not found hardy OpenFOAM Paraview & paraFoam 7 September 18, 2008 04:59
gcc and executable file from Mac to Linux simone Marras Main CFD Forum 0 April 8, 2007 15:49
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 20:51
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


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