CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

in user fortran, how to get velocity gradients

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2014, 05:22
Thumbs up in user fortran, how to get velocity gradients
  #1
New Member
 
田道贵
Join Date: Jun 2014
Location: 哈尔滨
Posts: 2
Rep Power: 0
yuanyeguhong is on a distinguished road
in CFX simulation, I use the fortran code to add a model, which needs liquid velocity gradient in radius.
in codes, I use "USER_GETVAR" to get the velocity gradient,
Call USER_GETVAR("water.Velocity w.Gradient",CRESLT,pGVel,CZ,DZ,IZ,LZ,RZ)
while it does not work and error presents in CFX solver
as follows:
Details of error:-
----------------
Error detected by routine MAKDIR
CDRNAM = VEL-3_FL2 /GRADIENT
CRESLT = ILEG

Current Directory : /FLOW/ALGORITHM/ZN1/SYSTEM/VARIABLES

+--------------------------------------------------------------------+
| Writing crash recovery file |
+--------------------------------------------------------------------+

+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Stopped in routine MEMERR

Anybody encounter this issue?
Thank you for you kindness!
yuanyeguhong is offline   Reply With Quote

Old   August 23, 2014, 18:48
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,815
Rep Power: 32
Opaque will become famous soon enough
It seems the user_getvar utility has problems with gradient of vector components.

Try getting the gradient for velocity and work out the Velocity w.Gradient values out of it.

It will be good to check the documentation for how the array is organized for gradient of vectors. If recall correctly, it should be (3 Gradient components, NLOC, 3 variable components)
Opaque is offline   Reply With Quote

Old   August 23, 2014, 20:41
Default
  #3
New Member
 
田道贵
Join Date: Jun 2014
Location: 哈尔滨
Posts: 2
Rep Power: 0
yuanyeguhong is on a distinguished road
Though I addressed this problem by using the variable "water.Velocity.Gradient", I still thank you very much.
yuanyeguhong is offline   Reply With Quote

Reply

Tags
user fortran, velocity gradients


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparison between C/C++ and Fortran? rick Main CFD Forum 45 September 6, 2011 00:52
user routine, user funcion, or fortran compile effect on the memroy? princeps11 CFX 1 May 13, 2009 18:37
User Fortran and Particle momentum source alvio CFX 0 July 30, 2008 22:52
CFX arc-modeling, User Fortran, CEL.... Bloshchitsyn Vladimir CFX 0 October 15, 2007 06:39
CFX11.0 cannot find dll in User Fortran brunoc CFX 0 April 4, 2007 10:42


All times are GMT -4. The time now is 08:27.