|
[Sponsors] |
October 26, 2017, 10:04 |
udf problem of a moving boundary
|
#1 |
Member
Mingyuan Tao
Join Date: Mar 2016
Posts: 31
Rep Power: 10 |
Hi all,
I am struggling with the udf to define a boundary movement. Attached is my code in "user_motion.c". What I want to do is set the boundary 1 with a constant moving velocity along x axis. However, after compiling the code and running simulation, I found the boundary was still stationary. Could anyone tell me how to fix it? Or is there any relevant tutorial about how to set user_defined_function of boundary movement? I would really appreciate for your help! ps: in my code, I directly use " surface_verts[vertnum].x[0] = surface_verts[vertnum].x[0] - 0.3*dt " to update my boundary surface vertex coordinates. Is this enough? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Moving boundary problem based on calculated data | sandro.grm | OpenFOAM Programming & Development | 52 | October 28, 2023 13:10 |
Stefan Problem : Tin Melting : Moving Boundary | swparth | OpenFOAM | 0 | September 21, 2017 14:53 |
Writing udf for Transient Heat conduction boundary value problem | abhi12019 | FLUENT | 3 | October 7, 2015 09:10 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 17:11 |
Error finding variable "THERMX" | sunilpatil | CFX | 8 | April 26, 2013 07:00 |