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

Problem interpreted Reaction Code

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2015, 05:56
Default Problem interpreted Reaction Code
  #1
New Member
 
Piyanat
Join Date: Nov 2015
Posts: 9
Rep Power: 11
oTopero is on a distinguished road
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
oTopero is offline   Reply With Quote

Old   November 24, 2015, 06:22
Default
  #2
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27
ghost82 will become famous soon enough
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!
ghost82 is offline   Reply With Quote

Old   November 24, 2015, 06:29
Default
  #3
New Member
 
Piyanat
Join Date: Nov 2015
Posts: 9
Rep Power: 11
oTopero is on a distinguished road
Quote:
Originally Posted by ghost82 View Post
Hi,
search for cpp.exe in your pc: do you have it? Where is it?
i dont have it

i have Reaction1.C only, this is code Co2 reaction.

i need to add in fluent but it show error above
oTopero is offline   Reply With Quote

Old   November 24, 2015, 06:33
Default
  #4
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27
ghost82 will become famous soon enough
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!
ghost82 is offline   Reply With Quote

Old   November 24, 2015, 06:37
Default
  #5
New Member
 
Piyanat
Join Date: Nov 2015
Posts: 9
Rep Power: 11
oTopero is on a distinguished road
Quote:
Originally Posted by ghost82 View Post
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).
i search follow directly you,i found the cpp.exe file in folder = =
oTopero is offline   Reply With Quote

Old   November 24, 2015, 06:43
Default
  #6
New Member
 
Piyanat
Join Date: Nov 2015
Posts: 9
Rep Power: 11
oTopero is on a distinguished road
Is it a possible about installation fluent or Code reaction ?
oTopero is offline   Reply With Quote

Old   November 24, 2015, 06:48
Default
  #7
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27
ghost82 will become famous soon enough
Did you select "Use Contributed CPP"?
__________________
Google is your friend and the same for the search button!
ghost82 is offline   Reply With Quote

Old   November 24, 2015, 06:52
Default
  #8
New Member
 
Piyanat
Join Date: Nov 2015
Posts: 9
Rep Power: 11
oTopero is on a distinguished road
Quote:
Originally Posted by ghost82 View Post
Did you select "Use Contributed CPP"?
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.
oTopero is offline   Reply With Quote

Old   November 24, 2015, 06:53
Default
  #9
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27
ghost82 will become famous soon enough
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!
ghost82 is offline   Reply With Quote

Old   November 24, 2015, 07:14
Default
  #10
New Member
 
Piyanat
Join Date: Nov 2015
Posts: 9
Rep Power: 11
oTopero is on a distinguished road
Quote:
Originally Posted by ghost82 View Post
Yes, but now the problem is not cpp, but your .c code.
You have some error at line 1 inside Reaction1.c
i get this code from my advisor, He tell this code was used in his work.
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.
oTopero is offline   Reply With Quote

Old   November 24, 2015, 07:16
Default
  #11
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27
ghost82 will become famous soon enough
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!
ghost82 is offline   Reply With Quote

Old   November 24, 2015, 07:25
Default
  #12
New Member
 
Piyanat
Join Date: Nov 2015
Posts: 9
Rep Power: 11
oTopero is on a distinguished road
Quote:
Originally Posted by ghost82 View Post
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.
ok, thakyou so much
oTopero 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
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


All times are GMT -4. The time now is 16:11.