|
[Sponsors] |
in user fortran, how to get velocity gradients |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 23, 2014, 06:22 |
in user fortran, how to get velocity gradients
|
#1 |
New Member
田道贵
Join Date: Jun 2014
Location: 哈尔滨
Posts: 2
Rep Power: 0 |
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! |
|
August 23, 2014, 19:48 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
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) |
|
August 23, 2014, 21:41 |
|
#3 |
New Member
田道贵
Join Date: Jun 2014
Location: 哈尔滨
Posts: 2
Rep Power: 0 |
Though I addressed this problem by using the variable "water.Velocity.Gradient", I still thank you very much.
|
|
Tags |
user fortran, velocity gradients |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Comparison between C/C++ and Fortran? | rick | Main CFD Forum | 45 | September 6, 2011 01:52 |
user routine, user funcion, or fortran compile effect on the memroy? | princeps11 | CFX | 1 | May 13, 2009 19:37 |
User Fortran and Particle momentum source | alvio | CFX | 0 | July 30, 2008 23:52 |
CFX arc-modeling, User Fortran, CEL.... | Bloshchitsyn Vladimir | CFX | 0 | October 15, 2007 07:39 |
CFX11.0 cannot find dll in User Fortran | brunoc | CFX | 0 | April 4, 2007 11:42 |