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

2-D translational motion with certain behaviour

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2018, 08:11
Default 2-D translational motion with certain behaviour
  #1
New Member
 
Join Date: Mar 2018
Posts: 24
Rep Power: 8
maccheese is on a distinguished road
Hi,

I am trying to make a rigid circle move in a particular way.
I have the following udf:


#include "udf.h"

DEFINE_CG_MOTION(translational_profile, dt, vel, omega, time, dtime)
{
real u1 = 1.0;
vel[0] = u1;
vel[1] = 0.0;
vel[2] = 0.0;
}

I want to realize the following motion:

1. Displacement for a certain value of distance from point A to point B
2. No Motion for a certain amount of time at point B
3. Displacement from point B back to point A

My knowledge in C programming is very poor, so I have no idea how the code which provides this motion behaviour should look like. Can anyone help me with this?

Thanks in advance!

Last edited by maccheese; April 21, 2018 at 12:06.
maccheese is offline   Reply With Quote

Old   April 12, 2024, 02:03
Default
  #2
New Member
 
Quoc-Viet Le
Join Date: Mar 2023
Posts: 18
Rep Power: 3
vietle is on a distinguished road
Hello sir,

Can I see your UDF code, I have a similar problem with this
vietle 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
Sliding mesh for translational relative motion between solid and fluid shashankmechguy FLUENT 2 April 12, 2024 18:27
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
How to use "translation" in solidBodyMotionFunction in OpenFOAM rupesh_w OpenFOAM Running, Solving & CFD 5 August 16, 2016 05:27
External management of solid motion (using dynamicmesh) maxou1993 Main CFD Forum 0 July 28, 2015 12:37
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20


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