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

the error of vadefs.h:line 48:parse error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2018, 10:18
Unhappy the error of vadefs.h:line 48:parse error
  #1
New Member
 
yanghai
Join Date: Mar 2018
Posts: 16
Rep Power: 8
yanghai is on a distinguished road
the following is my udf about the velocity inlet of a boundary wall, but is always occur the error: D:\\Program files\\ansys inc\\v160\\fluent\\fluent16.0.0/sre/udf/vadefs.h:line 48: parse error.

but, there is no line 48 in my udf! who know the problem is ? what should i do?

#include "udf.h"

#define MD 20.43
#define QR 4227000

DEFINE_PROFILE(eva_velocity,t,i)
{
real q;
real q_total;
face_t f;

q=BOUNDARY_HEAT_FLUX(f,t);

begin_f_loop(f,t)
{
q_total += q;
F_PROFILE(f,t,i)=-q_total/(QR*MD);
}
end_f_loop(f,t)
}
yanghai 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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 01:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 10:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 19:04.