CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Initial Velocity/Acceleration Multiple Bodies rigidBodyMotion

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Petires

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2019, 21:33
Default Initial Velocity/Acceleration Multiple Bodies rigidBodyMotion
  #1
New Member
 
Aristo Taufiq
Join Date: Feb 2017
Posts: 1
Rep Power: 0
aristotaufiq is on a distinguished road
Hi Guys,

I've been using OpenFOAM for the last couple of month, the solver that has been the most useful for me is pimpleDyMFoam (just pimpleFoam for the latest OpenFOAM v6). This is because that I usually simulate store release from an aircraft.

The Problem that I encounter now is that, currently, I need to simulate a drop of several uncoupled bodies at the same time. This is not much of a problem now that rigidBodyMotion motion solver (without the "sixDof" mind you) is available. I wanted to give an initial acceleration and velocity value the the different bodies. Is there any keyword I can insert to the dynamicMeshDict that will allow me to do this?

I could not seem to get much resource and documentation regarding this new implementation of rigid body motion. It seems that we really have to dive into the source code in order to understand it more. However, I currently can't do that as my C++ level is just that bad.

I currently use OF5, but may as well be upgrading to the latest OF

Best Regards,
Aristo
aristotaufiq is offline   Reply With Quote

Old   July 13, 2020, 02:56
Default
  #2
Member
 
Antoni Alexander
Join Date: Nov 2009
Posts: 43
Rep Power: 16
zkdkeen is on a distinguished road
Hi Aristo, have you solved it? I am facing similar problems as you did currently.

The ref below points out that the key word "qDot" can be used to set up intial velocity, but it seems not working.

http://www.tfd.chalmers.se/~hani/kur...dyDynamics.pdf
zkdkeen is offline   Reply With Quote

Old   July 17, 2020, 11:29
Default Solution
  #3
New Member
 
Piotr Fil
Join Date: Jul 2018
Posts: 1
Rep Power: 0
Petires is on a distinguished road
Hi
I have also encountered this problem recently. I am using OpenFOAM v2006 so check if it works in your case. To set initial velocity in your 0 or 0.orig folder create folder:


uniform


and in this folder create file:


rigidBodyMotionState


And its content should be:


/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "0.01/uniform";
object rigidBodyMotionState;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

q 8 ( 0 0 0 0 0 0 0 0 );

qDot 8 ( 0 0 0 0 0 0 10 0 );

qDdot 8 ( 0 0 0 0 0 0 0 0 );

t 0;

deltaT 0;


// ************************************************** *********************** //



In the file above q is position with regard to the specific joint, qDot is velocity and qDdot is acceleration. 8 stands for number of degrees of freedom and values are ordered as linear and then angular for each body in order x,y,z. In my case first body has 6 DoF, second has one DoF and its angular x, for which I set velocity 10 and third has also one degree of freedom.
Hope it will be helpful
Petires
fumiya and Myiced like this.
Petires is offline   Reply With Quote

Old   August 27, 2020, 02:56
Default
  #4
New Member
 
Vignesh S P
Join Date: Jul 2018
Location: Coimbatore, Tamil Nadu, India
Posts: 17
Rep Power: 7
VigneshSP is on a distinguished road
@Petires

Thank you very much, It worked.
VigneshSP 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
Segmentation fault when using reactingFOAM for Fluids Tommy Floessner OpenFOAM Running, Solving & CFD 4 April 22, 2018 12:30
pressure in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 05:49
HeatSource BC to the whole region in chtMultiRegionHeater xsa OpenFOAM Running, Solving & CFD 3 November 7, 2016 05:07
Cannot run the code properly: very large time step continuity error crst15 OpenFOAM Running, Solving & CFD 9 December 14, 2014 18:17
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20


All times are GMT -4. The time now is 03:52.