CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

translation along circumferential trajectory

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 16, 2018, 04:33
Default translation along circumferential trajectory
  #1
Member
 
Giovanni Caramia
Join Date: Mar 2009
Location: Bari, ITALY
Posts: 58
Rep Power: 17
karamiag is on a distinguished road
Hi every body,
using the testTubeMixer tutorial, I would like to perform the translation without rotation of the tube along circumferential trajectory (see attached image). To do this I am trying to modify this line of the oscillatingLinearMotion.C file:

Code:
const vector displacement = amplitude_*sin(omega_*t);
in

Code:
const vector displacement.x() = amplitude_.x()*sin(omega_*t);
const vector displacement.y() = amplitude_.y()*cos(omega_*t);
const vector displacement.z() = 0.;
but this is not the right syntax. Fundamentally I do not know how to access and modify the components of the vector displacement .
Thank you very much for your help!
Attached Files
File Type: pdf rototranslation.pdf (3.0 KB, 5 views)
karamiag is offline   Reply With Quote

Old   May 18, 2018, 04:02
Default
  #2
Member
 
Giovanni Caramia
Join Date: Mar 2009
Location: Bari, ITALY
Posts: 58
Rep Power: 17
karamiag is on a distinguished road
Any, even small, hint is welcome!
karamiag is offline   Reply With Quote

Old   May 19, 2018, 13:02
Default
  #3
Member
 
Giovanni Caramia
Join Date: Mar 2009
Location: Bari, ITALY
Posts: 58
Rep Power: 17
karamiag is on a distinguished road
Ok solved in this way
Code:
vector displacement =amplitude_*sin(omega_*t);
displacement.x()=amplitude_.x()*sin(omega_*t);
displacement.y()=amplitude_.y()*cos(omega_*t);
even if I had to delete the word const before the vector declaration of displacement. Any comment about this?
karamiag 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
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 00:04
Circumferential spatial averaging for cylindrical cases beatlejuice OpenFOAM Post-Processing 6 March 30, 2018 12:06
How to see trajectory of a bubble? Matiasi FLUENT 2 March 5, 2018 05:38
Translation in Segments Kasey STAR-CCM+ 1 November 26, 2014 03:22
CFX with trajectory model siw CFX 6 April 12, 2008 01:41


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