|
[Sponsors] |
August 21, 2019, 23:46 |
UDF dynamic mesh conditions
|
#1 |
New Member
Jiwon Yoon
Join Date: Feb 2019
Posts: 11
Rep Power: 7 |
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 |
|
Tags |
cgmotion, dynamic mesh, udf |
|
|
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 |