# Moving Wall velocity in Negative X direction

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

 June 30, 2016, 14: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, 10:56 #2 Senior Member   Filippo Maria Denaro Join Date: Jul 2010 Posts: 3,249 Rep Power: 37 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..

 Thread Tools Display Modes Linear Mode

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

 Similar Threads Thread Thread Starter Forum Replies Last Post hinca CFX 15 January 26, 2014 18:11 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 05:16 hills1 CFX 2 October 12, 2009 05:36 lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09 chong chee nan FLUENT 0 December 29, 2001 06:13

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