|
[Sponsors] |
December 17, 2013, 13:44 |
UDF For translational movement
|
#1 |
New Member
asdasdasd
Join Date: Aug 2012
Posts: 15
Rep Power: 13 |
edit: This is a bug in fluent 14.5 in version 15 works great.
I have a new problem I would like to make my object translate in the -X direction. How do I do this? Hi, I want to compile the following UDF: #include<udf.h> DEFINE_CG_MOTION(wall, dt, cg_vel, cg_omega, time, dtime) { cg_vel[0] = -0.6; /* x-velocity*/ cg_vel[1] = 0.0; cg_vel[2] = 0.0; NV_S (cg_omega, =, 0.0); /* no angular motion */ } Very simple right? When I try to hit build - I get the following error: c:\Program Files\ANSYS Inc\v145\fluent\fluent14.5.0\src\storage.h(2887) : error C2010: '.' : unexpected in macro formal parameter list c:\Program Files\ANSYS Inc\v145\fluent\fluent14.5.0\src\storage.h(2887) : error C2010: '.' : unexpected in macro formal parameter list c:\Program Files\ANSYS Inc\v145\fluent\fluent14.5.0\src\storage.h(2887) : error C2010: '.' : unexpected in macro formal parameter list c:\Program Files\ANSYS Inc\v145\fluent\fluent14.5.0\src\storage.h(2892) : error C2010: '.' : unexpected in macro formal parameter list c:\Program Files\ANSYS Inc\v145\fluent\fluent14.5.0\src\storage.h(2892) : error C2010: '.' : unexpected in macro formal parameter list c:\Program Files\ANSYS Inc\v145\fluent\fluent14.5.0\src\storage.h(2892) : error C2010: '.' : unexpected in macro formal parameter list My working folder is set to where my mesh and .c file. I've tried starting fluent with x64 visual tools command prompt launcher and that doesn't work. Any thoughts? Last edited by parradux; December 18, 2013 at 16:17. Reason: found solution |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
using UDF for fluttering movement ( oscillating motion ) ??! | bluAero | Fluent UDF and Scheme Programming | 7 | June 20, 2013 05:37 |
UDF for 2D translational movement | ThinkQuick | Fluent UDF and Scheme Programming | 0 | July 24, 2012 01:59 |
flexible wall movement with udf | O.D.Y. | Fluent UDF and Scheme Programming | 4 | March 24, 2009 05:01 |
UDF for Piston movement | Harish | FLUENT | 2 | July 23, 2004 06:13 |
Wall movement due to pressure with UDF | Dimitrios | FLUENT | 2 | November 15, 2003 07:06 |