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

Dynamic mesh Problem: How can I set UDF to the motion of train?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By vasava

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2015, 10:56
Default Dynamic mesh Problem: How can I set UDF to the motion of train?
  #1
New Member
 
Majid Zarif
Join Date: May 2014
Posts: 19
Rep Power: 12
Majid Zarif is on a distinguished road
Hi Every body
I want to simulate this problem in fluent by dynamic mesh ,PLAESE help me how to set the dynamic mesh settings? and ...
How can I set UDF to the motion of train in this problem?
Thanks
This is the link of problem....:
https://www.dropbox.com/s/wv8mg77pyi...unnel.jpg?dl=0
Majid Zarif is offline   Reply With Quote

Old   January 26, 2015, 07:28
Default
  #2
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
You could use DEFINE_CG_MOTION macro. See the following example

Code:
DEFINE_CG_MOTION(butterfly_flex_UDF, dt, cg_vel, cg_omega, time, dtime)
{
  cg_vel[0] = 0.0; //X-velocity
  cg_vel[1] = 0.0; //Y-velocity
  cg_vel[2] = 0.0; //Z-velocity

  cg_omega[0] = 0.0;
  cg_omega[1] = 0.0;
  cg_omega[2] = 0.0;
}
Majid Zarif likes this.
vasava is offline   Reply With Quote

Old   January 26, 2015, 09:23
Default
  #3
New Member
 
Majid Zarif
Join Date: May 2014
Posts: 19
Rep Power: 12
Majid Zarif is on a distinguished road
Quote:
Originally Posted by vasava View Post
You could use DEFINE_CG_MOTION macro. See the following example

Code:
DEFINE_CG_MOTION(butterfly_flex_UDF, dt, cg_vel, cg_omega, time, dtime)
{
  cg_vel[0] = 0.0; //X-velocity
  cg_vel[1] = 0.0; //Y-velocity
  cg_vel[2] = 0.0; //Z-velocity

  cg_omega[0] = 0.0;
  cg_omega[1] = 0.0;
  cg_omega[2] = 0.0;
}
thanks for your reply
As you said I should use this code if I want to move in X-direction with velocity of 0.5m/s?
#include "udf.h"

DEFINE_CG_MOTION(Train_Motion, dt, cg_vel, cg_omega, time, dtime)
{
cg_vel[0] = 0.50; //X-velocity
}
Majid Zarif is offline   Reply With Quote

Old   January 27, 2015, 03:38
Default
  #4
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
Yes. However you must also check some tutorial for mesh motion. You have such a large problem (in terms of mesh size) at hand. The mesh motion will make it even more challenging.

Also in my opinion simulating the train entering and leaving the domain will also be another challenge. I have tried such an example but I did not have any success with it.
vasava is offline   Reply With Quote

Old   January 27, 2015, 03:44
Default
  #5
New Member
 
Majid Zarif
Join Date: May 2014
Posts: 19
Rep Power: 12
Majid Zarif is on a distinguished road
Quote:
Originally Posted by vasava View Post
Yes. However you must also check some tutorial for mesh motion. You have such a large problem (in terms of mesh size) at hand. The mesh motion will make it even more challenging.

Also in my opinion simulating the train entering and leaving the domain will also be another challenge. I have tried such an example but I did not have any success with it.
As you said we don't have any solution?!
Is the way of changing CG motion is the solution?I tried it the fluent responded that "considering no motion"!
Majid Zarif is offline   Reply With Quote

Reply


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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
spring-based dynamic mesh problem uhhaha2157 FLUENT 0 January 1, 2014 08:38
UDF dynamic mesh problem! gaozhengyu Fluent UDF and Scheme Programming 1 December 13, 2012 01:19
Dynamic mesh update problem. David FLUENT 3 March 15, 2012 06:02


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