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

How to import .curve format file into Pointwise

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 25, 2011, 21:36
Default How to import .curve format file into Pointwise
  #1
hui
New Member
 
Join Date: Aug 2011
Posts: 2
Rep Power: 0
hui is on a distinguished road
Hello, everyone

I am gonna use Pointwise to generate grids. Now I have the profile of a turbin blade as .curve format file. I am wondering if anyone knows how to import this kind of file into Pointwise.

Thanks in advance
hui is offline   Reply With Quote

Old   August 29, 2011, 10:31
Smile Import curve into Pointwise
  #2
Member
 
rmatus's Avatar
 
Rick Matus
Join Date: Mar 2009
Location: Fort Worth, Texas, USA
Posts: 64
Rep Power: 8
rmatus is on a distinguished road
There are a couple of different formats you might use depending on the data you have. The format descriptions are available in Appendix III of the Pointwise User Manual.

If you want to import the geometry as curves, use the segment file format. Here is that format:

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

If you want it import the geometry as surfaces, put it into PLOT3D (network) format:

c.....nmax is number of networks
c.....ni(n) number of points in the i direction for the nth network
c.....nj(n) number of points in the j direction for the nth network
c.....nk(n) number of points in the k direction for the nth network

integer ni(nmax), nj(nmax), nk(nmax)
real x(imax,jmax,nmax),
& y(imax,jmax,nmax),
& z(imax,jmax,nmax)
write(1) nmax
write(1) ( ( ni(n), nj(n), nk(n) ), n=1,nmax )

do 10 n = 1, nmax
write(1) ( ( x(i,j,n), i=1,ni(n) ), j=1,nj(n) ),
& ( ( y(i,j,n), i=1,ni(n) ), j=1,nj(n) ),
& ( ( z(i,j,n), i=1,ni(n) ), j=1,nj(n) )
10 continue

Once the data is formatted the way you want, use File, Import, Database to import it as geometry, or File, Import, Grid to import it as grid.
rmatus is offline   Reply With Quote

Old   August 29, 2011, 19:46
Default
  #3
hui
New Member
 
Join Date: Aug 2011
Posts: 2
Rep Power: 0
hui is on a distinguished road
Dear Rmatus,

Thanks a lot for your help! I found another way to solve this kind of problem.

It is very convenient to use journals. You can do some actions (creat points, connect lines) and look at the journal file. And you can just write your own script. I solved this problem by doing so.

Thanks again for your kind help!

Regards,
Hui
hui is offline   Reply With Quote

Old   August 30, 2011, 09:18
Smile Nice use of scripting
  #4
Member
 
rmatus's Avatar
 
Rick Matus
Join Date: Mar 2009
Location: Fort Worth, Texas, USA
Posts: 64
Rep Power: 8
rmatus is on a distinguished road
Hui:

Glad to hear you were able to use scripting to solve your problem. That is a good way to do it.

Cheers,
Rick
rmatus 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
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 18:18
Installation of OpenFOAM-1.6 on Ubuntu 9.10 marval OpenFOAM Installation 2 March 17, 2010 09:33
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00
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 05:44.