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

UDF dynamic mesh conditions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 21, 2019, 23:46
Post UDF dynamic mesh conditions
  #1
New Member
 
Jiwon Yoon
Join Date: Feb 2019
Posts: 11
Rep Power: 7
Jiwon Y is on a distinguished road
Hello I'm a rookie in udf, dynamic meshing and right now I'm trying to build up a Dynamic Mesh Thread of my geometry going upwards and then downwards which ends on it's initial location.

Down below is my udf thread and I have a little problem with applying this
thread to my geometry. The geometry just goes upwards and does not come back downwards as it's coding is meant to be(going downwards when time reaches 0.0014 sec. and until 0.0033 sec.) so i'm needing help desperatly .
Any corrections to the thread and new ways of making my geometry up and down would be a GREAT help to me.

Experts... please help me


#include "udf.h"
DEFINE_CG_MOTION(nozzle, dt, vel, omega, time, dtime)
{
///////////////////////////time step은 0.000236sec.////////////////////////
/* reset velocities */
NV_S (vel, =, 0.0);
vel[1] = 0.0;
/* compute velocity formula */

if (time < 0.0014)
vel[1] = 0.65;

else if (time = 0.0014)
vel[1] = 0.0;
else if (0.0014 < time <= 0.0033)
vel[1] = -0.43;

else
vel[1] = 0;
}

Last edited by Jiwon Y; August 21, 2019 at 23:47. Reason: wrong phrase
Jiwon Y is offline   Reply With Quote

Reply

Tags
cgmotion, dynamic mesh, udf


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
Dynamic mesh using UDF and layering method - no dynamic mesh zones to display error HootanRahimi Fluent UDF and Scheme Programming 3 May 7, 2019 13:03
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 08:37
Boundary conditions for dynamic mesh interface patch between two mesh regions Virag OpenFOAM Running, Solving & CFD 8 May 31, 2016 19:33
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Problem related with UDF for dynamic mesh Ryan FLUENT 6 April 29, 2004 10:29


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