CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Moving Wall velocity in Negative X direction

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   June 30, 2016, 14:01
Default Moving Wall velocity in Negative X direction
New Member
Easir Papon
Join Date: Jun 2016
Posts: 1
Rep Power: 0
mpapon is on a distinguished road

I am working on a simple problem where my working domain is a rectangular 2D plate. Inlet and outlet are on left and right side respectively and top and bottom are the two walls. I want to set the bottom wall as moving wall and it would move at a velocity of 0.5 m/s in +ve X direction for 10 seconds and then it moves in opposite direction (-ve X direction) with the same 0.5 m/s in next 10 seconds.
I am new in UDF. I could find and modify one UDF for +ve X direction but I can't write one for -ve one.

Here it is:

# include "udf.h"

DEFINE_PROFILE(moving_plate, thread, equation)
float x[3],y;
face_t f;

begin_f_loop(f, thread)
F_PROFILE(f,thread,equation)= 0.5;

For -ve X direction, I tried the same code changing as this
F_PROFILE(f,thread,equation)=- 0.5;
But, it doesn't work.

If it did work I would then go for creating a loop with if/else statement combining the whole.
Can anybody please help?
mpapon is offline   Reply With Quote

Old   July 1, 2016, 10:56
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 3,249
Rep Power: 37
FMDenaro will become famous soon enoughFMDenaro will become famous soon enough
I am not sure but you can check if you need to prescribe only the magnitude and the key to get working is to prescribe the unit vector given the direction..
FMDenaro is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Radiation interface hinca CFX 15 January 26, 2014 18:11
mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 05:16
Problem Interface Solid Fluid with wall velocity Solver v12 hills1 CFX 2 October 12, 2009 05:36
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 06:13

All times are GMT -4. The time now is 07:15.