Ansys Learning Forum › Forums › Discuss Simulation › Fluids › coupled simulation of vehicle and fluid tank › Reply To: coupled simulation of vehicle and fluid tank
March 27, 2024 at 4:16 am
vikram chahal
Subscriber
HOW CAN I DO THIS WITHOUT USING MEMORY ALLOCATION? could you please suggest any alternative for that
 // Apply the body force components based on vehicle response
      // For simplicity, assuming all the force acts in the y-direction
      C_UDMI(c, t, 0) = 0.0; // Body force in x-direction
      C_UDMI(c, t, 1) = vehicle_force_y; // Body force in y-direction
      C_UDMI(c, t, 2) = 0.0; // Body force in z-direction
Â
      // Apply the moment components based on vehicle response
      // Here, we'll assume all the moments act around the z-axis
      C_UDMI(c, t, 3) = 0.0; // Moment about x-axis
      C_UDMI(c, t, 4) = 0.0; // Moment about y-axis
      C_UDMI(c, t, 5) = vehicle_moment_z; // Moment about z-axis
    }
    end_c_loop(c, t);