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

Error in Zone motion

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 19, 2016, 00:46
Exclamation Error in Zone motion
  #1
Senior Member
 
Join Date: Mar 2013
Location: B'lr
Posts: 130
Rep Power: 13
shivakumar is on a distinguished road
Hi all,
I have been working on motion of fluid in side the aircraft drop tank. For my initial case fluid is moving to and fro. For this case I used the following code but is yeilding error. what is the problem? Any help would be greatly appreciated.
Code:
#include "udf.h"

DEFINE_ZONE_MOTION(fmotion, omega, axis, origin, velocity, time, dtime)
{
if(time<10)
{
omega = 10;
}
else
omega=0;

N3V_D(velocity,=,0.05*sin(omega*time), 0.0, 0.0);
}
Error reads

..\src\motion.c(14): warning: not enough actual motion parameters for macro 'NV_D'
..\src\motion.c(14): error C2109 subscripts requires pointer or error type
..\src\motion.c(14): error C2109 subscripts requires pointer or error type
..\src\motion.c(14): error C2109 subscripts requires pointer or error type

Thank you
shivakumar is offline   Reply With Quote

 


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
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 10:52
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
Problem in IMPORT of ICEM input file in FLUENT csvirume FLUENT 2 September 9, 2009 01:08


All times are GMT -4. The time now is 06:43.