Can someone please explain in detail how USER_CALC_INFO and USER_GET_MESH_DATA work and vary? I know this sounds like a trivial question, but I find the documentation on User Fortran for CFX to be extremely limited. I mean for a 2500 page user manual, I wouldnt have minded if they threw in a couple more pages on clearly explaining the USER FORTRAN subroutines. For example, in USER_CALC_INFO, a list of LOCALEs is given, LOCALE is an output in the USER_CALC_INFO argument list, so how does this subroutine function? what INFO is being returned? where is the info stored? etc. The same applies to USER_GET_MESH_DATA. A clarification on the above would be greatly appreciated!!
Re: USER_CALC_INFO inquiry?
The documentation explains the argument list in detail. Every argument has a return value except for ACTION (which is the only input).. An example call is
CHARACTER*(MXDNAM) WHO, ACTION, CVAR, LOCALE, ENTITY, WHEN, CZONE
CHARACTER*(4) CERACT, CRESLT
INTEGER ILOCS, ILOCF, IENTS, IENTF C
CALL USER_CALC_INFO (WHO,'GET',CVAR,LOCALE,ENTITY,WHEN,CALIAS, CERACT,CRESLT,CZONE,ILOCS,ILOCF,IENTS,IENTF, CZ,DZ,IZ,LZ,RZ) C C---- Just print the return values C
WRITE(*,*) WHEN ...
Does the above help? Calling the utility should be trivial.. Why do you need to call USER_CALC_INFO? Is it to call USER_GET_MESHDATA? Which data you need from USER_GET_MESHDATA?
Try to get the info first, and let us know what is your next step from there.
|All times are GMT -4. The time now is 19:14.|