CFD Online Logo CFD Online URL
Home > Forums > CFX

Saving variables on a user patch with physical coordinates

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

LinkBack Thread Tools Display Modes
Old   April 19, 2000, 12:19
Default Saving variables on a user patch with physical coordinates
Zoltan Turzo
Posts: n/a
Dear CFX Users!

I have the following problem I would like to solve: (I am using CFX 4.2 on Windows NT, so I have CFX-view and CFX TascFlow as post processor.) I am simulating a gas flow trough a valve. The valve-stem tip has a half-sphere shape, the seat is conical. I defined a user patch for the surface of the valve stem tip. So I can plot the variables on the surface of the stem tip. But I would like to use these variables in other programs. So is it possible to write out this variables with its physical coordinates (X, Y, Z). (I know that these variables are printed in the output file, but there the coordinates are only in I,J, K form. Additionally, if you have patches including several blocks it is very difficult to find out the values you need. And as I think After you finding the values, you have to convert them to physical coordinates as well. ) So, has anybody some good solution?

Thank You in advance!

Best Regards Z. Turzo

  Reply With Quote

Old   April 19, 2000, 20:39
Default Re: Saving variables on a user patch with physical coordinates
Hyun S. Lee
Posts: n/a
Dear Z. Turzo

In my case, I did similar works related with dump files, however rather complex one.

May be there are RDFIL and RDFILH in your CFX directory, which are used for read dump file variables and headers respectively.

I think the "XNN" variable stack may contain XC(vertices) and XP(center of cell). and the "Variable" stack contain whole variables encompassing what you want.

In your pc, rdump.f file may help you to understand the structure of CFX dump file.(If you do not have, email me. I'll send you one. but SGI version) Solver manual also contain many useful information(chapter 9)

Good luck!! If you find easier and authentic methodology, please post it.

Hyun S. Lee
  Reply With Quote

Old   April 20, 2000, 15:05
Default Re: Saving variables on a user patch with physical coordinates
Jan Rusås
Posts: n/a
Dear Z. Turzo

I think there is several ways of doing what you want, but here is a method I have used.

You can access the values on any patch by using USRBCS (file for user boundary conditions) Instead of printing out the values on every iteration, or every time step you can create a copy of your command file where you include user fortran and usrbcs and set iterations to zero and do a restart on the final dump file. Look in the usrbcs file in the CFX directory or in the manual how you access the values on a patch. Instead of assigning a value to the patch, you just printout the values you need and the physical coordinates xp(inode..etc You can also use the userflows.f in the extras directory but it is a bit more tricky to use that one.

It is also possible to find variables with physical coordinates directly in any cell, I recommend using the usrsrc file for that.

Regards Jan Rusås
  Reply With Quote


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
user SUBROUTINE for additional variables Tuks CFX 0 November 8, 2005 03:09
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12
PHI file structure Eugene Phoenics 9 November 2, 2001 23:00
CFX 5.5 Roued CFX 1 October 2, 2001 16:49
how to print the results from CFX-4.2 cfd_99 Main CFD Forum 5 June 21, 1999 09:23

All times are GMT -4. The time now is 21:45.