|
[Sponsors] |
extract velocity gradient <user_getvar> error |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 14, 2016, 12:04 |
extract velocity gradient <user_getvar> error
|
#1 |
New Member
G Ionut
Join Date: Sep 2016
Posts: 29
Rep Power: 10 |
Hello all,
I need help regarding the command user_getvar. I want to extract the velocity gradient using the command user_getvar. I wrote a fortran code to compute the velocity in the boundary layer. I compiled it using intel fortran compiler 14.0.3.202, it result 4 files including the .dll file which I need for ansys cfx but it gives me a warning, is it ok? "ifort: command line warning #10161: unrecognized source type 'winnt-amd64\\stand ard_wf.o'; object file assumed". If I run the simulation with the files resulted by the compiler, the cfx solver stops returning with the following error: Details of error:- ---------------- Error detected by routine MAKDIR CDRNAM = VEL /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 | In the fortran code, I want extract the velocity gradient like this: "CALL USER_GETVAR('Velocity.Gradient', CRESLT, pGRAD_V, CZ,DZ,IZ,LZ,RZ)" I attach the fortran code(standard_wf), the messages from compiler(compiler results), and the output file from solver(ansys error) Thanks in advance for support. |
|
December 14, 2016, 13:55 |
|
#2 |
Member
Join Date: Dec 2009
Posts: 44
Rep Power: 17 |
I think you need to specify a velocity component, e.g.
CALL USER_GETVAR('Velocity u.Gradient', ................ CG |
|
December 14, 2016, 16:50 |
|
#3 | |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
I would try
'MyFluid.Velocity.Gradient' as per the documentation Quote:
|
||
December 15, 2016, 10:02 |
|
#4 |
New Member
G Ionut
Join Date: Sep 2016
Posts: 29
Rep Power: 10 |
Hello cfdgremlin, thanks for the quick reply.
I have tried your suggestion, but it didn't work I have the same error. |
|
December 15, 2016, 10:10 |
|
#5 |
New Member
G Ionut
Join Date: Sep 2016
Posts: 29
Rep Power: 10 |
Hello Opaque, thank you for the quick reply.
I called the user_getvar command like you recommended and the error it is gone. Now I have another error (I did the simulation in both single precision and double precision): +--------------------------------------------------------------------+ | ERROR #001100279 has occurred in subroutine ErrAction. | Message: | | Floating point exception: Invalid number | +--------------------------------------------------------------------+ | ERROR #001100279 has occurred in subroutine ErrAction. | Message: | | Stopped in routine FPX: C_FPX_HANDLER | | Can you help me? |
|
December 15, 2016, 18:20 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
This is a FAQ: https://www.cfd-online.com/Wiki/Ansy...do_about_it.3F
I would check that your simulation runs OK without the custom wall function. |
|
December 20, 2016, 05:01 |
|
#7 |
New Member
G Ionut
Join Date: Sep 2016
Posts: 29
Rep Power: 10 |
Hello Glenn,
Thank you for reply, I followed the instructions from FAQ section and it seems that the errors is from the fortran code. I will post here when I will have a working code. Thank you all for the support. |
|
January 16, 2017, 11:15 |
|
#8 |
New Member
G Ionut
Join Date: Sep 2016
Posts: 29
Rep Power: 10 |
Hi,
After I searched a little more and after some conversations with Ansys Support, it seems that I can not replace the scalable wall function with a custom wall function. I will move to Fluent, there I can implement a custom wall function. Thank you all for the support. |
|
Tags |
fortran compiler, user_getvar, velocity gradients |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile calcMassFlowC | aurore | OpenFOAM Programming & Development | 13 | March 23, 2018 08:43 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 19:44 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 07:25 |
checking the system setup and Qt version | vivek070176 | OpenFOAM Installation | 22 | June 1, 2010 13:34 |