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

OF 1.6 extend. GGI - rotation around two axis - C++ newbie needs help

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 5, 2013, 01:31
Default OF 1.6 extend. GGI - rotation around two axis - C++ newbie needs help
  #1
Member
 
Andreas Wendy
Join Date: Aug 2012
Posts: 73
Rep Power: 13
A.Wendy is on a distinguished road
Hi everybody,

i have a problem and i hope you can help me.
i am planing to simulate an gyro-copter including the auto rotation.
i was able to implement some rigid body movement into the mixerggi library and can simulate a rotation around one fixed axis. but i also want to simulate the flapping hinge. for that i need to make a rotation around a second axis.
i know what i have to implement but i dont know how.

the plan is the following:
reading out he forces using forces library <- works
recalculate an ne rpm for rotation <- works
rotate the rotor around z-axis <- works
change the rotation axis for flapping hinge <- does not work (see below)
rotate rotor for flapping hinge <- should work
change rotation axis back to z-axis and start to next time step.


here to the problem with the rotation for the flapping hinge:
when the rotor is rotating around the z-axis the coordinate system for the flapping hinge will change by each time step. so i have to compute this axis manually. i think i can do this. but i can not store these data in the variable of the mixerGgi script.
the variables (classes) are:
csPtr_().axis()
csPtr_().origin()

i am able to change the origin but not the axis. has anyone an idea to solve this problem?

here is the declaration:
//- Return coordinate system
const coordinateSystem& cs() const
{
return csPtr_();
}

how can i change it? why can i change the origin but not the axis? both have the same declaration or?

i added the c-file and header.


Best wishes


Andreas
Attached Files
File Type: c mixerGgiFvMesh_modified.C (17.7 KB, 5 views)
File Type: h mixerGgiFvMesh_modified.H (5.4 KB, 1 views)
A.Wendy is offline   Reply With Quote

 


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
Create a GeometricField of a given type on given patch? philippose OpenFOAM Programming & Development 4 August 12, 2013 12:41
OF 1.6 extend. GGI - rotation around two axis - C++ newbie needs help A.Wendy OpenFOAM Running, Solving & CFD 1 February 4, 2013 08:05
Frozen Rotor 1:1 Mesh Connection pharley CFX 5 January 31, 2013 16:15
parallel computing with GGI (OF 1.6 extend) A.Wendy OpenFOAM Running, Solving & CFD 1 November 18, 2012 17:27
Axis of rotation for centrifugal compressor Mattia FLUENT 4 October 22, 2007 11:05


All times are GMT -4. The time now is 06:18.