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

UDF moment ( torque ) computation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Seyed Farid Hosseinizadeh

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2007, 04:52
Default UDF moment ( torque ) computation
  #1
aja
Guest
 
Posts: n/a
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]);

}

  Reply With Quote

Old   March 28, 2007, 17:55
Default 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.
  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
Force can not converge colopolo CFX 13 October 4, 2011 23:03
moment and torque arashm FLUENT 0 August 18, 2010 09:15
UDF extern variable - mean time moment coefficient enry Fluent UDF and Scheme Programming 0 November 14, 2009 07:56
UDF extern variable - mean time moment coefficient enry Fluent UDF and Scheme Programming 0 November 14, 2009 07:51
UDF for parallel computation Stanislav Kraev FLUENT 3 October 10, 2006 04:12


All times are GMT -4. The time now is 17:46.