DEFINE_CG_MOTION
Hi,
I have a model with two moving valves. I'm using one define_cg_motion macro for each valve. The problem is that only one valve moves like it should and that is the valve which is defined in the last define_CG_motion. I have tried to change the order of the two macroes, but it is always the valve which is defiend in the last macro which moves... How does I solve this problem? Is there any other way than using two separate define_cg_motion macroes? Can I put both into one and how? S |
Re: DEFINE_CG_MOTION
Hi, try anything like this (it should help): #include "udf.h" DEFINE_CG_MOTION(valve1, dt, velocity, omega, time, dtime) { if (!Data_Valid_P()) {
Message("Pas bon du tout!\n"); return; } NV_S(velocity, =, 0.0); NV_S(omega, =, 0.0); /*movement of the body*/ vel[1]=...; omega[2]=...; Message("\n moving valve No. 1"); } DEFINE_CG_MOTION(valve2, dt, vel, omega, time, dtime) { if (!Data_Valid_P()) { Message("Pas bon du tout!\n"); return; } NV_S(vel, =, 0.0); NV_S(omega, =, 0.0); /*movement of the body*/ vel[1]=...; omega[2]=...; Message("\n moving valve No. 2"); } Than you can choose in the panel Dynamic Mesh Zones for the one valve the function called valve1, and for the another function valve2. I hope it's usefull. J |
Hi everybody......, I am a new in Fluent. I am solving the moving wall (Like wave generation in a Tank), but the wall moves with various discrete accelerations (not periodic function). I can't use DEFINE_CG_MOTION to simulate the moving wall .
Hope people can answer my questions....!!Thank so much. |
Quote:
|
Quote:
My problem is that I can't define the motion of the wall with various discrete velocity (discrete acceleration) in DEFINE_CG_MOTION of Fluent. Because the velocity of wall are discrete values (not periodic function). Hope people answer my questions...???? Thank a lot...!!! |
All times are GMT -4. The time now is 11:09. |