-
-
April 17, 2024 at 8:01 amvikram chahalSubscriber
I 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 amPrashanthAnsys Employee
Hi: Can you elaborate more on applying moment on base of tank?
-
April 19, 2024 at 6:33 amvikram chahalSubscriber
yes 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
- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Fluent fails with Intel MPI protocol on 2 nodes
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Cyclone (Stairmand) simulation using RSM
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- UDF, Fluent: Access count of iterations for “Steady Statistics”
- RIBBON WINDOW DISAPPEARED
Top Contributors
-
1421
-
599
-
591
-
565
-
366
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.