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

Moving Wall velocity in Negative X direction

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

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

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;
}
end_f_loop(f,thread)
}

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?
Thanks.
mpapon is offline   Reply With Quote

Old   July 1, 2016, 11:56
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,760
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
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

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
Radiation interface hinca CFX 15 January 26, 2014 18:11
Problem Interface Solid Fluid with wall velocity Solver v12 hills1 CFX 2 October 12, 2009 06: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 19:27.