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

Moving a wall at a frequency

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 27, 2018, 14:05
Default Moving a wall at a frequency
  #1
New Member
 
Kimster
Join Date: Oct 2018
Posts: 9
Rep Power: 7
iceman53y is on a distinguished road
Hi,

I am new to Fluent.
I am trying to oscillate a wall at a certain frequency in the horizontal direction.

It is a circular tube that I am trying to oscillate and see the effect of the lift and drag forces on the adjacent tubes at different flow velocities of water.

Some people have told me about UDFs. I don't know how to do that.

If there is an easier way please let me know or please walk me through creating a UDF.

Appreciate your help.

kind regards,

CFD noob.
iceman53y is offline   Reply With Quote

Old   October 29, 2018, 14:18
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Is the oscillation parallel to the flow? I.e. is there any squeezing effect?

You can just apply a time-dependent velocity to the wall. The velocity can be applied as a udf or even simpler a csv style profile.
LuckyTran is online now   Reply With Quote

Old   October 29, 2018, 22:54
Default
  #3
New Member
 
Kimster
Join Date: Oct 2018
Posts: 9
Rep Power: 7
iceman53y is on a distinguished road
Hi,

I've managed to start compiling UDFs without any issues now. Took me two days to get it working.

Appreciate if someone can share a UDF for oscillating a cylinder in cross flow at a certain frequency from its current location.

There is no squeezing effect.

Thanks
iceman53y is offline   Reply With Quote

Old   October 29, 2018, 23:04
Default
  #4
New Member
 
Kimster
Join Date: Oct 2018
Posts: 9
Rep Power: 7
iceman53y is on a distinguished road
Hi,

I've managed to start compiling UDFs without any issues now. Took me two days to get it working.

Appreciate if someone can share a UDF for oscillating a cylinder in cross flow at a certain frequency from its current location.

There is no squeezing effect.

Thanks
iceman53y is offline   Reply With Quote

Old   October 30, 2018, 00:27
Default Udf
  #5
New Member
 
Kimster
Join Date: Oct 2018
Posts: 9
Rep Power: 7
iceman53y is on a distinguished road
Hi,

This UDF is working but the cylinder moves to the right and comes back to same position, therefore is oscillating about a point towards the right of the origin point of the cylinder. I want it to oscillate right and left from its current location.

How would I change this code?

Please help.

/* Moving Grid problem - CG movement of a cylinder */
#include "udf.h"
static real velx = 0.0;
DEFINE_CG_MOTION(cylinder, dt, vel, omega, time, dtime)
{
NV_S(vel, =, 0.0);
NV_S(omega, =, 0.0);

velx = 0.005 * sin(3.1415927 * time / 5.);
vel[0] = velx;
}
iceman53y 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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
Use of moving wall in COMSOL? MultiPhy COMSOL 1 September 24, 2018 18:39
partial slip to moving wall ashokmoravaneni OpenFOAM 4 March 8, 2018 10:37
Rotating Cylinder (Moving wall vs Moving reference frame vs Sliding mesh) hamed.majeed FLUENT 2 January 17, 2017 12:18
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20


All times are GMT -4. The time now is 23:38.