Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

moment along z axis at base or CG of water tank for 2 secs

    • vikram chahal
      Subscriber

      i want to apply a moment around z axis of a partially filled tank at its base or CG, after compiling while i am hooking this UDF under dynamic mesh, In base as rigid body  its showing incorrect CG motion(Assume No motion)

      #include "udf.h"

      DEFINE_SDOF_PROPERTIES(tank_moment, prop, dt, time, dtime)
      {
          real t = CURRENT_TIME; // Obtain the current simulation time

         
          prop[SDOF_LOAD_M_Z] = 0.0; // Initialize moment load to 0.0

          if (t <= 2.0)
          {
           
              prop[SDOF_LOAD_M_Z] = 5000.0; // Moment load in the z-direction
          }

          printf("\ntank_moment: updated SDOF properties");
      }
    • SRP
      Ansys Employee

      Hi,

      Since you are not seeing the intended motion, it may be beneficial to add additional debugging output to your UDF to track the CG's motion over time.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.