|
[Sponsors] |
Get position of a moving wall every time step in UDF |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 20, 2011, 05:48 |
Get position of a moving wall every time step in UDF
|
#1 |
New Member
Join Date: Jan 2011
Posts: 8
Rep Power: 15 |
Hey everyone,
I defined a DEFINE_ADJUST function, where I patch water every time step to a wall. This should simulate raindrops on a windshield. This works up to this point. The problem is, that there is also a wiper that moves left and right along the windshield wall. I want to patch the water always just on the right hand side of this wiper. Now, my question is, if there is a possibility to get the position of the wiper. I already tried to do it with begin_f_loop(face, tf) /* get position of blade */ { F_CENTROID(xf, face, tf); xblade = xf[0]; } end_f_loop(face, tf) , but this doesn't seem to work in the DEFINE_ADJUST environment. Maybe there is a special command, I havn't found in the manual, yet? I use the following settings: 2D, Dynamic Mesh, VOF, Transient Thanks a lot for your help! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 11:08 |
UDF for wall slipping | HFLUENT | Fluent UDF and Scheme Programming | 0 | April 27, 2011 12:03 |
Time step in transient simulation | shib | FLUENT | 0 | June 17, 2010 13:07 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 20:30 |
Deal with wall boundary with moving mesh by FVM? | aiya | Main CFD Forum | 6 | May 10, 2007 11:33 |