|
[Sponsors] |
June 30, 2016, 15:01 |
Moving Wall velocity in Negative X direction
|
#1 |
New Member
Easir Papon
Join Date: Jun 2016
Posts: 1
Rep Power: 0 |
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. |
|
July 1, 2016, 11:56 |
|
#2 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
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..
|
|
|
|
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 |