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

Rotation in extended version 3.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 27, 2014, 06:51
Default Rotation in extended version 3.0
  #1
New Member
 
Filip Jasiewicz
Join Date: Oct 2014
Posts: 2
Rep Power: 0
filjas is on a distinguished road
Hello!

I'm working with the extended OpenFOAM version 3.0. I have to do a simulation of oil in the journal bearing. The part of the simulated surface is a borehole, which should to rotate (Fig. 1).

I programmed the rotating in C++ and I changed dynamic settings in the file setBatch.

The borehole is rotating but after some time a thickness in the z-direction is increased (front and back are empty). Fig. 2

I think that the problem is in the function velocity in the file myRotatingOscillation.C, where is the rotating tensor defined.

Does anyone know the solution for this problem?

Figures, file setBatch and myRotatingOscillation can be seen below.
Attached Images
File Type: jpg Fig1.jpg (7.4 KB, 29 views)
File Type: jpg Fig2.jpg (7.9 KB, 29 views)
Attached Files
File Type: txt setBatch (1).txt (1.1 KB, 1 views)
File Type: c myRotatingOscillation .C (5.7 KB, 6 views)
filjas is offline   Reply With Quote

Old   November 5, 2014, 03:34
Default
  #2
New Member
 
Matthias Neben
Join Date: Oct 2011
Location: Cottbus (Germany)
Posts: 28
Rep Power: 14
mneben is on a distinguished road
What method are you using? Can you show your code?
mneben is offline   Reply With Quote

Old   November 5, 2014, 12:54
Default
  #3
New Member
 
Filip Jasiewicz
Join Date: Oct 2014
Posts: 2
Rep Power: 0
filjas is on a distinguished road
I'm using the method of cell's annihilation. I attach my testcase (rotatorisch4) where are defined: dynamic settings, boundaries and geometry. This testcase can be started with the command: ./Allrun

I also attach the file solidBodyMotion. There can be found the file myRotatingOscillation, where the rotating in C++ programmed ist.
Attached Files
File Type: zip rotatorisch4.zip (31.3 KB, 7 views)
File Type: zip solidBodyMotion.zip (94.0 KB, 5 views)
filjas 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
How can i uninstall new version of OF shipman OpenFOAM Installation 5 August 12, 2013 04:01
compressible low speed channel flow -Ali OpenFOAM Running, Solving & CFD 11 May 9, 2013 07:40
paraview installation woes vex OpenFOAM Installation 15 January 30, 2011 07:11
version GLIBCXX_3.4.9 and GLIBCXX_3.4.11 not found ovie Main CFD Forum 1 April 19, 2010 14:00
[OpenFOAM] Problem with paraFoam on a linux-64 bit bunni ParaView 4 April 14, 2010 20:55


All times are GMT -4. The time now is 23:53.