CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

how to read a 3D trajectory for CG_MOTION

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 3, 2013, 05:29
Default how to read a 3D trajectory for DEFINE_CG_MOTION
  #1
Senior Member
 
Francisco
Join Date: Mar 2012
Location: Spain
Posts: 270
Rep Power: 6
Bollonga is on a distinguished road
Hi everybody,

I'm using a UDF with DEFINE_CG_MOTION to define the movement of an object in a 3D fluid domain. The path followed by the object is an irregular path so I wonder if there is a way for the macro to read a vector of positions instead of a mathematical description?

Thanks a lot

Last edited by Bollonga; October 3, 2013 at 07:28.
Bollonga is offline   Reply With Quote

Old   October 5, 2013, 13:38
Default
  #2
Member
 
like.no.other
Join Date: Sep 2011
Posts: 30
Rep Power: 5
like.no.other is on a distinguished road
Hi
You can do this with a profile
It is very simple
__________________
www.CFDiran.ir
Join Us on Facebook
like.no.other is offline   Reply With Quote

Old   October 5, 2013, 13:40
Default
  #3
Senior Member
 
Francisco
Join Date: Mar 2012
Location: Spain
Posts: 270
Rep Power: 6
Bollonga is on a distinguished road
Quote:
Originally Posted by like.no.other View Post
Hi
You can do this with a profile
It is very simple
Could you please explain me how to use a profile? Thanks a lot!
Bollonga is offline   Reply With Quote

Old   October 5, 2013, 14:12
Default
  #4
Member
 
like.no.other
Join Date: Sep 2011
Posts: 30
Rep Power: 5
like.no.other is on a distinguished road
Quote:
Originally Posted by Bollonga View Post
Could you please explain me how to use a profile? Thanks a lot!
first you should create a file with prof extension (*.prof) like the attached picture.
in profile you can define the time dependent variables (v_x,v_y,v_z,omega_x,omega_y,omega_z)

for example in this profile the angular velocity in z direction is defined.

at the end you should read it in fluent.
Attached Images
File Type: jpg Capture2.JPG (46.4 KB, 25 views)
__________________
www.CFDiran.ir
Join Us on Facebook
like.no.other is offline   Reply With Quote

Old   October 7, 2013, 07:25
Default
  #5
Senior Member
 
Francisco
Join Date: Mar 2012
Location: Spain
Posts: 270
Rep Power: 6
Bollonga is on a distinguished road
Thanks a lot! You've been of great help!
Bollonga is offline   Reply With Quote

Old   August 18, 2014, 06:45
Default
  #6
Senior Member
 
Francisco
Join Date: Mar 2012
Location: Spain
Posts: 270
Rep Power: 6
Bollonga is on a distinguished road
What happens when the profile timestep is larger than the solver timestep? Does it linearly interpolate the position between the two profile timesteps?

Any help would be greatly appreciated. Thanks.
Bollonga is offline   Reply With Quote

Reply

Tags
cg_motion, dynamic mesh, macro, moving mesh, udf

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 82 November 25, 2014 14:16
fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 12 May 2, 2013 10:52
999999 (../../src/mpsystem.c@1123):mpt_read: failed:errno = 11 UDS_rambler FLUENT 2 November 22, 2011 10:46
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 15:37


All times are GMT -4. The time now is 07:20.