CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF resulting in negative volume..

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   February 22, 2012, 14:13
Unhappy UDF resulting in negative volume..
New Member
Join Date: Feb 2012
Posts: 4
Rep Power: 14
djan is on a distinguished road
Hi, im using the following udf to bend a 3D beam as though having a parabolic loading in fluent. But it shows negative volume when i try to preview the mesh motion. I m using very small smoothing and remeshing numbers anyway. So I would be grateful if someone could point out my error. Thank you.

#include "udf.h"
DEFINE_GRID_MOTION(wing, domain, dt, time, dtime)
Thread *tf = DT_THREAD (dt);
face_t f;
Node *v;
real dispy;
real NV_VEC (position);
int n;


begin_f_loop (f, tf)
f_node_loop (f, tf, n)
v=F_NODE (f, tf, n);
dispy=NODE_Z(v)*NODE_Z(v)*0.0271+0.2496*NODE_Z(v)+ 0.1396;// y displacement based on the present z position
NODE_Y(v)=+dispy; // new y position is equal to the present y position + displacement
end_f_loop (f, tf)
djan is offline   Reply With Quote


fluent, udf error

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
Turbogrid and Negative volume Ali CFX 12 August 18, 2016 14:31
Negative volume in moving mesh mvee FLUENT 5 September 30, 2011 12:56
Negative Volume Elements windsim ANSYS Meshing & Geometry 3 September 21, 2011 00:26
volume flow rate error in udf jjchristophe Fluent UDF and Scheme Programming 1 July 13, 2010 04:23

All times are GMT -4. The time now is 18:34.