|
[Sponsors] |
October 3, 2013, 06:29 |
how to read a 3D trajectory for DEFINE_CG_MOTION
|
#1 |
Senior Member
Francisco
Join Date: Mar 2012
Location: Spain
Posts: 273
Rep Power: 15 |
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 08:28. |
|
October 5, 2013, 14:38 |
|
#2 |
Member
like.no.other
Join Date: Sep 2011
Posts: 35
Rep Power: 15 |
Hi
You can do this with a profile It is very simple |
|
October 5, 2013, 14:40 |
|
#3 |
Senior Member
Francisco
Join Date: Mar 2012
Location: Spain
Posts: 273
Rep Power: 15 |
||
October 5, 2013, 15:12 |
|
#4 | |
Member
like.no.other
Join Date: Sep 2011
Posts: 35
Rep Power: 15 |
Quote:
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. |
||
October 7, 2013, 08:25 |
|
#5 |
Senior Member
Francisco
Join Date: Mar 2012
Location: Spain
Posts: 273
Rep Power: 15 |
Thanks a lot! You've been of great help!
|
|
August 18, 2014, 07:45 |
|
#6 |
Senior Member
Francisco
Join Date: Mar 2012
Location: Spain
Posts: 273
Rep Power: 15 |
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. |
|
Tags |
cg_motion, dynamic mesh, macro, moving mesh, udf |
|
|
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 | 104 | February 16, 2021 09:46 |
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem | Attesz | OpenFOAM Meshing & Mesh Conversion | 12 | May 2, 2013 11: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 18:51 |
Phase locked average in run time | panara | OpenFOAM | 2 | February 20, 2008 15:37 |