CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CD-adapco

vread not storing all vertices

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 18, 2005, 13:54
Default vread not storing all vertices
  #1
Chris
Guest
 
Posts: n/a
I am having a bit of a problem with the vread command. I have a .vrt file with 97168 xyz vertex coordinates to be read in. When I try vread, here is the output that I get:

vread,vertices.vrt,0,all,,code READ VERTICES FROM FILE vertices.vrt USING OFFSET = 0 STORE VERTICES 1 THROUGH 999999999

97168 VERTICES READ IN FROM FILE vertices.vrt MAXIMUM VERTEX NUMBER IS NOW 99

99 IS MAXIMUM VERTEX NUMBER IN FILE

So, it seems as though it is reading in all of the vertices, but only keeping 99 of them, as only 99 appear when I try to plot them. Is this a problem with the format of my (self-generated) .vrt file? or does it relate to something I am doing while trying to read in? I appreciate the time and help.

-Chris
  Reply With Quote

Old   April 18, 2005, 14:23
Default Re: vread not storing all vertices
  #2
steve
Guest
 
Posts: n/a
The likeliest source is the format of your file. Try working with a small group (1-200) of vertices. Are you trying to read ascii or binary? If ascii, you should be able to copy the fortran format statement right out of the manual and use it. Binary is even simpler (same numbers, no format). You might also try constructing a program to read what you have written.
  Reply With Quote

Old   April 18, 2005, 14:52
Default Re: vread not storing all vertices
  #3
Chris
Guest
 
Posts: n/a
I am, in fact using ascii. I did not find any documentation in what I have regarding formatting with vread. could you direct me to that? I have simply been creating arbitrary vertices and using vertex write to see the format of that output and try to match it for my input.

Regarding fortran, I was having difficulties with some duplicate vertices in terms of handling/formatting/deleting some of these. Therefore, I currently have a perl script to create my .vrt file. I can't see how this would create a problem, aside from the formatting, but if there is something in the manual, that may clear things up.

Thanks for the help, Steve.

-Chris
  Reply With Quote

Old   April 18, 2005, 22:06
Default Re: vread not storing all vertices
  #4
xhliu1
Guest
 
Posts: n/a
U can try to close the file of .vrt after you write someting to it or read from it. I hope it will help U. Good luck!
  Reply With Quote

Old   April 19, 2005, 12:31
Default Re: vread not storing all vertices
  #5
steve
Guest
 
Posts: n/a
If you look at the help for either VREAD or VWRITE, the format is included.
  Reply With Quote

Old   May 18, 2005, 02:48
Default Re: vread not storing all vertices
  #6
shyam
Guest
 
Posts: n/a
increase maxvrt number and try it again
  Reply With Quote

Old   May 18, 2005, 02:50
Default Re: vread not storing all vertices
  #7
shyam
Guest
 
Posts: n/a
Give this command, MEMO MXSTOR, and in crease the number and try it again
  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
Storing Surface Area of each cell in a file? Markus Alzon FLUENT 0 June 21, 2007 08:38
storing variable value at a particular point prabhu CFX 4 June 20, 2006 19:50
Storing vectors with C_UDMI nicolas FLUENT 4 February 16, 2005 06:31
Storing animations of pathlines &particle tracks Rodrigo FLUENT 4 August 12, 2004 10:40
data storing with c++ yfyap Main CFD Forum 7 April 27, 2001 10:43


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