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

UDF for tangential force

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 12, 2021, 01:42
Default UDF for tangential force
  #1
New Member
 
Tanuj Srivastava
Join Date: Mar 2019
Posts: 15
Rep Power: 7
S_Tanuj is on a distinguished road
Hello all,
I want to give rolling motion to my system. For that, I vitally need to consider tangential force acting on any location in the system. How can I write UDF for that and add it as a source term in the momentum equation in FLUENT?

if possible please give an example.
Thanks in advance.
S_Tanuj is offline   Reply With Quote

Old   August 12, 2021, 03:41
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
you may go to boundary conditions
select the air-solid boundary
momentum tab
as a wall motion select moving wall
and specify your motion as well as shear conditions
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   August 13, 2021, 02:17
Default
  #3
New Member
 
Tanuj Srivastava
Join Date: Mar 2019
Posts: 15
Rep Power: 7
S_Tanuj is on a distinguished road
That's true thankyou Sir. But I want to give SHM with the maximum amplitude of 30 degrees. To do that I have to incorporate the effect of tangential force on the system and that needs to be done using UDF (T_{tangential} = angular acceleration * radius). That UDF will be added as a source term in momentum equation in the "cell zone boundary condition". So how to write code for that? I can define angular acceleration, but the main point is while defining "radius".

Can we define radius with the help of x and y positions with [ND_ND] (The system is 2-D)?

Do I need to use for loop in UDF in DEFINE_SOURCE MACRO because at each cell radius value will be different?

I tried doing with it but, could not find the difference, so I am a bit confused whether I am going in correct path or not.
Please see the image attached for reference.
Attached Images
File Type: png osci.png (33.5 KB, 6 views)
S_Tanuj 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
The CoP Does not exist: Validating Aerodynamic forces through a "line of action" ds4719 Main CFD Forum 14 February 18, 2022 18:05
Including the particle contact force in a DPM UDF filippo Fluent UDF and Scheme Programming 3 February 18, 2021 12:01
Drag Force Ratio for Flat Plate Rob Wilk Main CFD Forum 40 May 10, 2020 04:47
Different force result: DEFINE_Source UDF & without UDF A.Rah FLUENT 1 November 11, 2017 07:22
Udf define a force (harmonic force) rain821024 Fluent UDF and Scheme Programming 0 October 26, 2016 11:48


All times are GMT -4. The time now is 01:35.