CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent Multiphase

Moving Cylinder with initial speed

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 22, 2024, 20:15
Default Moving Cylinder with initial speed
  #1
New Member
 
Hadi Ebrahimi Fakhari
Join Date: Feb 2024
Posts: 1
Rep Power: 0
Hebra007 is on a distinguished road
Hello everyone,

I am working on a simulation involving a cylinder in a channel, where half of the channel is filled with stagnant water and the cylinder moves directly beneath the water surface. Figure 1, which I have attached, illustrates the general concept of this problem.

Initially, to simplify the problem, I assigned a fixed speed to the cylinder, which yielded satisfactory results. It's worth mentioning that I utilized an overset mesh for the cylinder and opted for the laminar flow option in my simulation.

Now, my goal is to set an initial speed for the cylinder and allow it to come to a stop due to drag force. I understand that this requires writing a User-Defined Function (UDF), and with assistance from a friend, I have drafted something. However, it's not functioning as intended – the cylinder isn't moving.

All the tutorial videos I've found online focus on scenarios where there's a moving flow over a stationary object, or they involve defining a path for an object to study its impact on stagnant fluid. Unfortunately, I haven't been able to find any resources that directly relate to the specific requirements of my simulation which specifying a initial velocity and see how the media affect that.

I wanted to attach the archive file but the volume was 330 MB and it was not possible but I have attached of my UDF code.

It is a great help if somebody can help me with this issue or send me a link of some related video or text which helpful.

appreciate your time.
Attached Images
File Type: jpg fig.1.jpg (31.0 KB, 4 views)
Attached Files
File Type: c Func02092024.c (900 Bytes, 0 views)
Hebra007 is offline   Reply With Quote

Reply

Tags
moving cylinder


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
laplacianFoam with source term Herwig OpenFOAM Running, Solving & CFD 17 November 19, 2019 14:47
Cannot run the code properly: very large time step continuity error crst15 OpenFOAM Running, Solving & CFD 9 December 14, 2014 19:17
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 14:38
SixDoFRigidBodyMotion under OF2.3 ( self oscillating cylinder) Scabbard OpenFOAM Running, Solving & CFD 1 July 22, 2014 05:50
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 13:50


All times are GMT -4. The time now is 10:22.