CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   PROBLEM COMPILING!!! PLEASE HELP! (https://www.cfd-online.com/Forums/fluent/36588-problem-compiling-please-help.html)

Toni Cominceanu May 7, 2005 08:59

PROBLEM COMPILING!!! PLEASE HELP!
 
I HAVE A PROBLEM AND I DO NOT KNOW WHAT TO DO. I WANT TO PUT A SINUSOIDAL VARIABLE VELOCITY_INLET. I WROTE THIS IN C++: " /************************************************** ********************/ /* unsteady.c */ /* UDF for specifying a transient velocity profile boundary condition */ /************************************************** ********************/

#include "udf.h"

DEFINE_PROFILE(unsteady_velocity, thread, position) { face_t f; begin_f_loop(f, thread)

{

real t = RP_Get_Real("flow-time");

F_PROFILE(f, thread, position) = 0.0 + 90.0*sin(188.5*t);

} end_f_loop(f, thread) } " AND WHEN I PUT THE NAME "unsteady.c" IN INTERPRETED UDFs UNDER SOURCE FILE IN FLUENT 6.012 IT SAY THIS: "cpp -IC:\FLUENT.INC\fluent6.0/src -IC:\FLUENT.INC\fluent6.0/cortex/src -IC:\FLUENT.INC\fluent6.0/client/src -IC:\FLUENT.INC\fluent6.0/multiport/src -I. -DUDFCONFIG_H="" unsteady.c error: udf compiler: cannot execute cpp -IC:\FLUENT.INC\fluent6.0/src -IC:\FLUENT.INC\fluent6.0/cortex/src -IC:\FLUENT.INC\fluent6.0/client/src -IC:\FLUENT.INC\fluent6.0/multiport/src -I. -DUDFCONFIG_H="" unsteady.c "

WHAT CAN I DO, PLEASE TELL ME. I NEED TO MAKE A DIRECTORY AND SAVE "unsteady.c" THERE, OR WHAT... I DON'T KNOW WHAT TO DO.

THANKS!

rom May 9, 2005 03:04

Re: PROBLEM COMPILING!!! PLEASE HELP!
 
the error message says "cannot find cpp" wich means you dont have installed microsoft visual c (msvc) or you dont have the path to it set correctly. if you dont want msvc you can use the contributed cpp from fluent to interpret you udf.

good luck

rom

Toni Cominceanu May 9, 2005 04:19

Re: PROBLEM COMPILING!!! PLEASE HELP!
 
i found the problem. i put my .c file in the same directory (...\ntbin\ntx86) with my .cas file. thanks any way!

CEREN ALPAT May 17, 2005 02:12

Re: PROBLEM COMPILING!!! PLEASE HELP!
 
Study of overall heat transfer of houses with partly curved roofs. This task has two parts. Part 1 is a common study of laminar flow over a flat plate. Part 2 is a study of convective heat transfer in an external flow (2D) over an area containing a house with special type of architecture with cylindrical or spherical roofs which have effects on convective heat transfer over the house.

The case study contains turbulent steady incompressible flow.



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