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

error processing a drag code in command Editor

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 2, 2018, 05:16
Default error processing a drag code in command Editor
  #1
Member
 
Roy
Join Date: Sep 2017
Posts: 80
Rep Power: 9
ROY4 is on a distinguished road
Hello everybody,

I would like to enter my own drag model into CFX but when I call it in command editor, I get this Error:

ERROR CCL parser failed with message: Perl Syntax errors detected: Died at (eval 107) line 1.

Does anyone know what's the problem with this? Am I calling the subroutine in a wrong way?

I call it using this command:
! system ("cfx5mkext pt_drag_factor.F") <1 or die;

which I feel is not a correct way to call...
I use Ansys 17.1.
can anyone please help me?

Thank you
ROY4 is offline   Reply With Quote

Old   September 2, 2018, 06:48
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,830
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
No, this is not the correct way to call a fortran routine. Have you looked at the user fortran examples in the documentation?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   September 2, 2018, 07:02
Default
  #3
Member
 
Roy
Join Date: Sep 2017
Posts: 80
Rep Power: 9
ROY4 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
No, this is not the correct way to call a fortran routine. Have you looked at the user fortran examples in the documentation?
Dear Glenn, Hi and thanks for your fast response,

I did look through the CFX documentation (Maybe I was not searching the right place?) and I could not find anything helpful. I'm totally new in this field and have no idea about how to call my drag factor.F file into the Fortran. I changed the pt_drag_factor.F file which is in CFX examples and made a change only in the Schiller-Neumann drag formula. This way of calling the routine was what I found in a tutorial about butterfly valve. However, I know It does not work in my case. I just need to know how to read this drag factor.F.
can you please help me? there are not wide information about CFX programming in net
ROY4 is offline   Reply With Quote

Old   September 2, 2018, 07:08
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,830
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Look in "User Fortran" in the CFX Modelling manual. (eg: https://www.sharcnet.ca/Software/Ans.../i1317481.html). In fact it even includes an example of how to implement a user fortran drag model.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   September 2, 2018, 08:16
Default
  #5
Member
 
Roy
Join Date: Sep 2017
Posts: 80
Rep Power: 9
ROY4 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Look in "User Fortran" in the CFX Modelling manual. (eg: https://www.sharcnet.ca/Software/Ans.../i1317481.html). In fact it even includes an example of how to implement a user fortran drag model.
Dear Glenn,
Thanks a lot for your help. I actually looked for such explanations, but maybe my searching was not complete. I'll check them and if I had further questions I will ask. Thanks a lot again
ROY4 is offline   Reply With Quote

Reply


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
split the total drag on a ( Pressure drag +Frictional drag ). samiraamiri OpenFOAM Running, Solving & CFD 3 March 29, 2020 03:30
Source Code: Calculation of Drag Friendly OpenFOAM Programming & Development 0 October 17, 2017 09:29
The FOAM Documentation Project - SHUT-DOWN holger_marschall OpenFOAM 242 March 7, 2013 12:30
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 15:56
What is the Better Way to Do CFD? John C. Chien Main CFD Forum 54 April 23, 2001 08:10


All times are GMT -4. The time now is 00:18.