CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   CFX4: How to write user data to dump file? (https://www.cfd-online.com/Forums/cfx/19750-cfx4-how-write-user-data-dump-file.html)

Min-Hua Wang July 3, 2003 12:34

CFX4: How to write user data to dump file?
 
Does anyone has experiece to use CFX-4 and write data back to dump file and display the user-data via CFX4-view or fieldview? The user-data were generated from a wall -patch and was expected to put on that patch again.

Thanks a lot,

MHW

John July 11, 2003 12:29

Re: CFX4: How to write user data to dump file?
 
I have not tried to display the data, but you may put additional information into the dump file through the use of the user routine USRDMP.

If the dump file created is then to be used for a restart, USRRD must also be coded to read in the user defined sections of the dump file.

John

jeff July 16, 2003 20:38

Re: CFX4: How to write user data to dump file?
 
Min-Hua,

I think what you want to do is allow one of the post processors to display user calculated data. To do this, create a user scalar name starting with USRD (i.e. USRD_my_variable). In your FORTRAN, store your values in the USRD variable at the appropriate locations. This variable will then be stored in the dump file automatically and picked up for plotting in any of the post processors.

If you only need internal fluid cell values, use a USRDCC variable and just set values at cell centers. If you need discreet values at walls and boundary nodes, use a USRD variable but you have to set all the boundary nodes explicitely in your FORTRAN.

Jeff


Min-Hua Wang July 17, 2003 20:49

Re: CFX4: How to write user data to dump file?
 
Hi, Jeff:

The problem is which user subroutine should I use. I have tried usrtrn.f. I only need to display data on wall boundary nodes.

Thanks

MHW


All times are GMT -4. The time now is 23:40.