|
[Sponsors] |
November 24, 2015, 05:56 |
Problem interpreted Reaction Code
|
#1 |
New Member
Piyanat
Join Date: Nov 2015
Posts: 9
Rep Power: 11 |
I need help, why i cant add reaction code (UDF function) in fluent
it show this text when i add the code cpp -ID:\Fluent.Inc\fluent6.2.16/src -ID:\Fluent.Inc\fluent6.2.16/cortex/src -ID:\Fluent.Inc\fluent6.2.16/client/src -ID:\Fluent.Inc\fluent6.2.16/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" G:\Test UDF\Reaction1.c error: udf compiler: cannot execute cpp -ID:\Fluent.Inc\fluent6.2.16/src -ID:\Fluent.Inc\fluent6.2.16/cortex/src -ID:\Fluent.Inc\fluent6.2.16/client/src -ID:\Fluent.Inc\fluent6.2.16/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" G:\Test UDF\Reaction1.c plese |
|
November 24, 2015, 06:22 |
|
#2 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27 |
Hi,
search for cpp.exe in your pc: do you have it? Where is it?
__________________
Google is your friend and the same for the search button! |
|
November 24, 2015, 06:29 |
|
#3 |
New Member
Piyanat
Join Date: Nov 2015
Posts: 9
Rep Power: 11 |
||
November 24, 2015, 06:33 |
|
#4 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27 |
You can't run cpp if you hven't the cpp.exe file.
cpp.exe file is part of the fluent installation, maybe your antivirus deleted that file. You need to reinstal fluent or copy back cpp.exe file from another installation (I think in X:\Program files\Ansys Inc\vxxx\fluent\ntbin\winxx\ or something similar).
__________________
Google is your friend and the same for the search button! |
|
November 24, 2015, 06:37 |
|
#5 | |
New Member
Piyanat
Join Date: Nov 2015
Posts: 9
Rep Power: 11 |
Quote:
|
||
November 24, 2015, 06:43 |
|
#6 |
New Member
Piyanat
Join Date: Nov 2015
Posts: 9
Rep Power: 11 |
Is it a possible about installation fluent or Code reaction ?
|
|
November 24, 2015, 06:48 |
|
#7 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27 |
Did you select "Use Contributed CPP"?
__________________
Google is your friend and the same for the search button! |
|
November 24, 2015, 06:52 |
|
#8 |
New Member
Piyanat
Join Date: Nov 2015
Posts: 9
Rep Power: 11 |
select or not select it show error same
D:\Fluent.Inc tbin tx86\cpp.exe -ID:\Fluent.Inc\fluent6.2.16/src -ID:\Fluent.Inc\fluent6.2.16/cortex/src -ID:\Fluent.Inc\fluent6.2.16/client/src -ID:\Fluent.Inc\fluent6.2.16/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" G:\Test UDF\Reaction1.c Error: G:\Test UDF\Reaction1.c: line 1: parse error. |
|
November 24, 2015, 06:53 |
|
#9 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27 |
Yes, but now the problem is not cpp, but your .c code.
You have some error at line 1 inside Reaction1.c
__________________
Google is your friend and the same for the search button! |
|
November 24, 2015, 07:14 |
|
#10 | |
New Member
Piyanat
Join Date: Nov 2015
Posts: 9
Rep Power: 11 |
Quote:
but it can be used in him work. i have his file case. it have a select function for reaction in this code. I don't understand why can't add the reaction code = = what is i miss. |
||
November 24, 2015, 07:16 |
|
#11 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27 |
The error is clear: you have a parse error at line 1 in Reaction1.c
Difficult to say something with the data you provided in this post. Check your .c code.
__________________
Google is your friend and the same for the search button! |
|
November 24, 2015, 07:25 |
|
#12 |
New Member
Piyanat
Join Date: Nov 2015
Posts: 9
Rep Power: 11 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A algorithm problem meets in the FTC3D code | liaoyun0126 | Main CFD Forum | 0 | September 14, 2015 11:24 |
problem with solving lagrange reaction cloud | Polli | OpenFOAM Running, Solving & CFD | 0 | April 30, 2014 08:53 |
problem with catalytic reaction | Flori | FLUENT | 0 | March 20, 2013 09:22 |
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 |