# UDF moment ( torque ) computation

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

 March 26, 2007, 03:52 UDF moment ( torque ) computation #1 aja Guest   Posts: n/a Sponsored Links I have tried to use UDF function Compute_Force_And_Moment. I have adjusted "rotortorque" UDF from Fluent official database. The problem is an error message" Error: Chip: internal error: invalid builtin -1: pc=65 ". Do you anybody knows the solution or can you advice or found any mistake in this UDF? I tryied it in Fluent 6.1 and 6.3 at Windows XP operational system (not Linux). The UDF is as foolows: #include "udf.h" #include "f_wall.h" DEFINE_ON_DEMAND(get_torque) { Domain *domain; Thread *face_rotor,*face_inlet,*face_outlet; face_t f; FILE *fp; real force_rotor[3],moment_rotor[3]; real point_rotor[3]={0.0, 0.0, 0.0}; /* Any point at shaft axis */ real axis_rotor[3] ={0.0, 0.0, 1.0}; /* shaft axis directional vector */ domain = Get_Domain(1); face_rotor = Lookup_Thread(domain,31); /* NUM1 is the rotor face ID number, can be found in the Define/Boundary Condition panel */ Compute_Force_And_Moment (domain, face_rotor, point_rotor, force_rotor, moment_rotor,1); printf(" Force on the rotor=%f\t%f\t%f\n",force_rotor[0],force_rotor[1],force_rotor[2]); printf(" Moment on the rotor=%f\t%f\t%f\n",moment_rotor[0],moment_rotor[1],moment_rotor[2]); }

 March 28, 2007, 16:55 Re: UDF moment ( torque ) computation #2 Seyed Farid Hosseinizadeh Guest   Posts: n/a Hey: Please send your UDF for me. I will check it for you in my system. My email is Hossesf@engr.uconn.edu Thanks/Farid dark lancer likes this.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post colopolo CFX 13 October 4, 2011 22:03 arashm FLUENT 0 August 18, 2010 08:15 enry Fluent UDF and Scheme Programming 0 November 14, 2009 07:56 enry Fluent UDF and Scheme Programming 0 November 14, 2009 07:51 Stanislav Kraev FLUENT 3 October 10, 2006 03:12