|
[Sponsors] |
Moving wall using UDF(CG_MOTION) problem, wall do not moving. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 9, 2022, 00:02 |
Moving wall using UDF(CG_MOTION) problem, wall do not moving.
|
#1 |
New Member
DongwooChoi
Join Date: Apr 2022
Posts: 1
Rep Power: 0 |
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 |
|
May 10, 2022, 03:08 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
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 |
|
|
|
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 |