CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

SolidBodyMotion in RhoCentralDyMFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 29, 2013, 22:56
Default SolidBodyMotion in RhoCentralDyMFoam
  #1
New Member
 
Ruben Moreno
Join Date: Nov 2011
Posts: 6
Rep Power: 5
rmoreno is on a distinguished road
Hi everyone,

I have been trying to run some simulations moving the whole mesh as a rigid body using pimpleDyMFoam as starting point. I can run simple oscillating cases in pimpleDyMFoam and the results agree with the analytical values (i.e. Theodorsen function for an oscillating airfoil).

I want to move now to rhoCentralDyMFoam, as I have been working with it for a while already. If I deform the mesh, I get similar results to what I was getting in pimpleDyMFoam. However, when I try to move the mesh as a rigid body, rhoCentralDyMFoam still asks for a solver, and even if I provide one I think it is mixing the two approaches.

Taking a look at rhoCentralDyMFoam.c I have seen that it calls motionSolver.H and CreateMesh.H, instead of dynamicFvMesh.H and CreateDynamicFvMesh.H. So, it seems that when it was programmed it was not intended to use all the capabilities available in some other solvers.

Can anybody put some light into this?. I have started to modify the code to make it work with solid body motions, but maybe there was a good reason not to do this at the original time and I might just be wasting my time...

Thanks a lot and best regards
rmoreno is offline   Reply With Quote

Old   January 30, 2013, 06:06
Default
  #2
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
hi
Im going to run a mesh with solid body motion.but i don't know how to start in rhoPimpleFoam.could you send me your case?
Another question i didn't get its answer is abot residualControl in rhoPimpleFoam.whats it's duty when we can set tolerances in related dictionaries in fvSolution?
immortality is offline   Reply With Quote

Old   January 30, 2013, 06:07
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
hi
Im going to run a mesh with solid body motion.but i don't know how to start in PimpleDYMFoam.could you send me your case?
Another question i didn't get its answer is abot residualControl in rhoPimpleFoam.whats it's duty when we can set tolerances in related dictionaries in fvSolution?
Thanks.

Last edited by immortality; January 30, 2013 at 10:17.
immortality is offline   Reply With Quote

Old   January 30, 2013, 07:27
Default
  #4
New Member
 
Ruben Moreno
Join Date: Nov 2011
Posts: 6
Rep Power: 5
rmoreno is on a distinguished road
Quote:
Originally Posted by immortality View Post
hi
Im going to run a mesh with solid body motion.but i don't know how to start in rhoPimpleFoam.could you send me your case?
Another question i didn't get its answer is abot residualControl in rhoPimpleFoam.whats it's duty when we can set tolerances in related dictionaries in fvSolution?
Hi, I do not know about rhoPimpleFoam, I have never used it, only pimpleDymFoam. This is how the constant/dynamicMeshDict file looks

Code:
dynamicFvMesh      solidBodyMotionFvMesh;

motionSolverLibs ("libfvMotionSolvers.so");

solidBodyMotionFvMeshCoeffs
{

solidBodyMotionFunction oscillatingRotatingMotion;
oscillatingRotatingMotionCoeffs
{
CofG        (0.25 0.007 0.125);
amplitude    (0 0 0.573);
omega            30.;
}
}
rmoreno is offline   Reply With Quote

Old   January 30, 2013, 10:21
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
sorry.i corrected it.how can specify which cells are moving and which are stationary ones? Could you send me necessary files?thanks.
immortality is offline   Reply With Quote

Old   January 30, 2013, 19:06
Default
  #6
New Member
 
Ruben Moreno
Join Date: Nov 2011
Posts: 6
Rep Power: 5
rmoreno is on a distinguished road
Quote:
Originally Posted by immortality View Post
sorry.i corrected it.how can specify which cells are moving and which are stationary ones? Could you send me necessary files?thanks.
The dynamicMeshDict file I shared is all you need to move the mesh rigidly, it all moves as a solid. If you want to specify only certain zones I think you need to use AMI, but I have never done it...
rmoreno is offline   Reply With Quote

Old   January 31, 2013, 13:32
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
thanks.these show what i want to model.
Attached Images
File Type: jpg wr.jpg (23.3 KB, 31 views)
File Type: jpg wr2.jpg (20.3 KB, 24 views)
immortality is offline   Reply With Quote

Old   February 4, 2013, 02:47
Default
  #8
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
does anyone could help on how can it be simulated?how to start?
immortality is offline   Reply With Quote

Old   February 5, 2013, 15:30
Default
  #9
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
Ruben do you know how can i set in the dictionary you wrote for a linear displacement solid body motion?
immortality is offline   Reply With Quote

Old   February 6, 2013, 20:06
Default
  #10
New Member
 
Ruben Moreno
Join Date: Nov 2011
Posts: 6
Rep Power: 5
rmoreno is on a distinguished road
Quote:
Originally Posted by immortality View Post
Ruben do you know how can i set in the dictionary you wrote for a linear displacement solid body motion?
It should simply be oscillatingLinearMotion, you can see the dictionary and any other available solidbody functions in

src/dynamicFvMesh/solidBodyMotionFvMesh/solidBodyMotionFunctions/*
rmoreno is offline   Reply With Quote

Old   February 12, 2013, 13:34
Default
  #11
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
thanks.but i dont want oscillating motion.how to set linear constant velocity motion?
immortality is offline   Reply With Quote

Reply

Tags
dynamicmesh, rhocentraldymfoam, solid body

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
A case for rhoCentralDYMFoam immortality OpenFOAM Running, Solving & CFD 3 June 5, 2014 01:54
Which solver for solidBodyMotion A.A. OpenFOAM Native Meshers: blockMesh 6 January 31, 2013 13:45
solidBodyMotion with cavity tutorial? A.A. OpenFOAM Native Meshers: blockMesh 0 July 19, 2012 10:40
Using solidBodyMotion for rigid body motion L1011 OpenFOAM 4 July 5, 2011 04:59
solidbodymotion and mesh.update() pablodecastillo OpenFOAM Running, Solving & CFD 0 April 13, 2011 18:24


All times are GMT -4. The time now is 08:27.