|
[Sponsors] |
May 8, 2012, 15:09 |
comipling code
|
#1 |
New Member
hilla tor
Join Date: Jun 2009
Posts: 10
Rep Power: 16 |
when i try to compile the folwing code
Code:
#include"udf.h" DEFINE_PROFILE(U_velocity, thread, position) { real x[ND_ND]; /* this will hold the position vector */ real y; real p; face_t f; begin_f_loop(f,thread) { F_CENTROID(x, f, thread); y = x[1]; p=0.993*sin(0.1331*y+1.585) + 0.7255*sin(0.2035*y-0.7726) + 0.05753*sin(0.6634*y+1.885) +0.02917*sin(1.27*y+0.05926) +0.1001*sin(0.7195*y-0.4312) +0.01529*sin(1.796*y-0.1304) + 0.0114*sin(2.31*y-0.0199); F_PROFILE(f,thread,position) = 0.2927*sin(6.199*p-1.601) + 0.1601*sin(2.196*p+0.613) + 0.2657*sin(12.7*p+1.393) +0.03703*sin(20.04*p-1.096) + 0.03782*sin(26.73*p-2.7) +0.009516*sin(34.47*p+0.1639); } end_f_loop(f, thread) } what is the problem? thanks for the help hilla |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The FOAM Documentation Project - SHUT-DOWN | holger_marschall | OpenFOAM | 242 | March 7, 2013 12:30 |
How to make code run in parallel? | cwang5 | OpenFOAM Programming & Development | 1 | May 30, 2011 04:47 |
Open Source Vs Commercial Software | MechE | OpenFOAM | 28 | May 16, 2011 11:02 |
Small 3-D code | Zdravko Stojanovic | Main CFD Forum | 2 | July 19, 2010 10:11 |
public CFD Code development | Heinz Wilkening | Main CFD Forum | 38 | March 5, 1999 11:44 |