-
-
April 17, 2024 at 8:01 am
vikram chahal
SubscriberI have a fluid tank and that is partially filled by water. I want to apply a moment on the base of tank through UDF, for that i am using define CG macro. could you please help me how can i do that??
-
April 18, 2024 at 9:53 am
Prashanth
Ansys EmployeeHi: Can you elaborate more on applying moment on base of tank?
-
April 19, 2024 at 6:33 am
vikram chahal
Subscriberyes sir, i am using an UDF described below and hooking at the base of tank by taking rigid body motion,
#include "udf.h"DEFINE_PROFILE(moment_profile, thread, position){  real t = real t = CURRENT_TIME;  real moment = 0.0;  // Apply moment in the z-direction for 2 seconds  if (t <= 2.0) {    moment = 5000; // Replace 'your_moment_value' with the desired moment  }  // Set the moment components  real moment_vector[ND_ND];  moment_vector[0] = 0.0;  // Moment in x-direction (assuming no moment in x)  moment_vector[1] = 0.0;  // Moment in y-direction (assuming no moment in y)  moment_vector[2] = moment;  // Moment in z-direction  // Assign the moment components  NV_VS(position, =, moment_vector);}
-
-
Viewing 1 reply thread
- The topic ‘moment on a tank in ansys fluent’ is closed to new replies.
Ansys Innovation Space
Trending discussions
Top Contributors
-
3427
-
1057
-
1051
-
896
-
887
Top Rated Tags
© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.