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

[FLUENT] UDF function problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 14, 2016, 10:20
Default [FLUENT] UDF function problem
  #1
New Member
 
Giorgio
Join Date: Jun 2016
Posts: 12
Rep Power: 9
Faggio11 is on a distinguished road
Dear all,

I have tried to work with udf functions. My results were pretty acceptable when I found out that there is a small mistake that I am not able to solve.

I have to apply a rigid body motion to a bar which stands for a leaflet of a valve. I need to simulate this motion for 10 cycles.

I have written a UDF code where I impose the angular velocities within time intervals. I realised that adding up cycles the leaflet was not following the same movement; it was slightly different but enough to alter my results. Then, I have tried to derive an equation for the angular velocity with the property of being piecewise continuous. Again, the small error appears that does not let me move on.

Can anybody have a look at my code please? Any suggestions are more than welcome!!!

Thank you in advance,

G.
Attached Files
File Type: c leaf_motion_closed_10cycles.c (7.6 KB, 2 views)
File Type: c leaf_try_2_10_cycl.c (4.8 KB, 5 views)
Faggio11 is offline   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
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 00:53
[swak4Foam] installation problem with version 0.2.3 Claudio87 OpenFOAM Community Contributions 9 May 8, 2013 10:20
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 01:27
HELP! Problem compiling UDF function Syrakus FLUENT 6 April 7, 2006 10:48


All times are GMT -4. The time now is 08:52.