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

Moving wall using UDF(CG_MOTION) problem, wall do not moving.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2022, 00:02
Default Moving wall using UDF(CG_MOTION) problem, wall do not moving.
  #1
New Member
 
DongwooChoi
Join Date: Apr 2022
Posts: 1
Rep Power: 0
tirithmina is on a distinguished road
How to compile UDF files in Ansys Fluent via MS Visual Studio
https://www.youtube.com/watch?v=Z95B-vk8zMA

Hello
I'm trying to do piston moving in cylinder(vertical moving wall) with using Dynamic mesh, UDF.
I searched and read manual, and I thought it could be done by using DEFINE_CG_MOTION.

Because I want bottom wall(cylinder head face) moving downward(y axis direction), I wrote and compiled this code.
----------------------------------------------------------------
#include "udf.h"

DEFINE_CG_MOTION(movingwall,dt,vel,omega,time,dtim e)
{

NV_S(omega,=,0.0);
vel[0]=0.0;
vel[1]=0.05;
vel[2]=0.0;
Message ("vel[1]=%f \n", vel[1]);
}
---------------------------------------------------------------

But nothing happend when I clicked Display Motion & Preview Mesh Motion.
Any advice for me?
Thank you
tirithmina is offline   Reply With Quote

Old   May 10, 2022, 03:08
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
did you hook your function?

Ansys fluent customization manual
look for "Hooking DEFINE_CG_MOTION UDFs" chapter
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Reply


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
Ansys CFD-Post Application Error rushiCFD FLUENT 0 March 21, 2021 07:51
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 00:04
Difference between Moving Wall and Moving Boundary Finbar FLUENT 1 January 12, 2018 09:06
problem about a periodic moving wall itsqi7 FLUENT 6 January 31, 2013 15:54
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32


All times are GMT -4. The time now is 04:17.