|
[Sponsors] |
error processing a drag code in command Editor |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 2, 2018, 06:16 |
error processing a drag code in command Editor
|
#1 |
Member
Roy
Join Date: Sep 2017
Posts: 80
Rep Power: 9 |
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 |
|
September 2, 2018, 07:48 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,868
Rep Power: 144 |
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. |
|
September 2, 2018, 08:02 |
|
#3 | |
Member
Roy
Join Date: Sep 2017
Posts: 80
Rep Power: 9 |
Quote:
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 |
||
September 2, 2018, 08:08 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,868
Rep Power: 144 |
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. |
|
September 2, 2018, 09:16 |
|
#5 | |
Member
Roy
Join Date: Sep 2017
Posts: 80
Rep Power: 9 |
Quote:
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 |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 04:30 |
Source Code: Calculation of Drag | Friendly | OpenFOAM Programming & Development | 0 | October 17, 2017 10:29 |
The FOAM Documentation Project - SHUT-DOWN | holger_marschall | OpenFOAM | 242 | March 7, 2013 13:30 |
Design Integration with CFD? | John C. Chien | Main CFD Forum | 19 | May 17, 2001 16:56 |
What is the Better Way to Do CFD? | John C. Chien | Main CFD Forum | 54 | April 23, 2001 09:10 |