CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > CONVERGE

udf problem of a moving boundary

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 26, 2017, 10:04
Default udf problem of a moving boundary
  #1
tmy
Member
 
Mingyuan Tao
Join Date: Mar 2016
Posts: 31
Rep Power: 10
tmy is on a distinguished road
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?
Attached Files
File Type: c user_motion.c (2.8 KB, 18 views)
tmy is offline   Reply With Quote

 


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
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


All times are GMT -4. The time now is 08:44.