CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How do you move a object in 2D simulation (https://www.cfd-online.com/Forums/openfoam-solving/99506-how-do-you-move-object-2d-simulation.html)

 dahicke April 4, 2012 23:14

How do you move a object in 2D simulation

I am working on a thesis problem where I want to move a hull or floating box at a velocity in a 2D simulation using waveDyMFoam, a modified interDyMFoam for a wave BC. I am trying to use sixDoFRigidBodyDisplacement with fixed axis x and z with no rotation, however I am finding little or no documentation on the use of sixDoFRigidBodyDisplacement. Digging in the code is slow and not alway meaningful.

Does anyone guidance on how to set up a constraint for 2D motion with rotation on the y axis and translation on x and z?

Thanks,

Dave

 lovecraft22 April 5, 2012 04:30

Hi David;
have you already looked at the tutorial incompressible/pimpleDyMFoam/movingCone?

 colinB April 5, 2012 09:49

Hi,

it is hard for me to imagine what you want
2D -Simulation or x-z translation and y rotation thats at least 3D
according to my way of thinking
(please correct me if I'm wrong)

From what I understand I would keep the body/hull fixed
and specify a velocity vector for the x-z direction of the liquid

and the rotation maybe simulated with the BC moving_wall
you find in Lid driven Cavity tutorial (the first one)

This should be sufficient to use interFoam

I hope that brings you closer

regards

 dahicke April 7, 2012 15:48

Hi Colin,

I am looking at wave action in response to a hull moving away from the incoming waves with z up, x right, and y forward. Waves propagating from left to right. The y direction is one cell deep.

y
z /
| /
|/________ x

The hull is floating on the surface and is rotating along the y axis, but not the x and z, and is free to translate in x and z due to wave action and motion. It is the rigid body motion that is requiring the use of interDyMFoam, plus the changes for a wave BC to make it waveDyMFoam.

I have gone over the lid cavity tutorial and have written a FDM program for it when I took a CFD course.

Dave

Quote:
 Originally Posted by colinB (Post 353306) Hi, it is hard for me to imagine what you want 2D -Simulation or x-z translation and y rotation thats at least 3D according to my way of thinking (please correct me if I'm wrong) So more information would be helpfull. From what I understand I would keep the body/hull fixed and specify a velocity vector for the x-z direction of the liquid and the rotation maybe simulated with the BC moving_wall you find in Lid driven Cavity tutorial (the first one) This should be sufficient to use interFoam I hope that brings you closer regards

 anandsudhi December 9, 2015 08:35

Hi, I know its an old post, hope you are still following it

 anandsudhi December 9, 2015 08:44

Quote:
 Originally Posted by colinB (Post 353306) Hi, it is hard for me to imagine what you want 2D -Simulation or x-z translation and y rotation thats at least 3D according to my way of thinking (please correct me if I'm wrong) So more information would be helpfull. From what I understand I would keep the body/hull fixed and specify a velocity vector for the x-z direction of the liquid and the rotation maybe simulated with the BC moving_wall you find in Lid driven Cavity tutorial (the first one) This should be sufficient to use interFoam I hope that brings you closer regards
I need help in specifying fixedPlane constraint in dynamicMeshDict for a 2D case in the x-y plane with pitching motion and translation in x and y

Is this entry the correct way

fixedPlaneXY
{
sixDoFRigidBodyMotionConstraint fixedPlane;

fixedPlaneCoeffs
{
refPoint \$centreOfMass;
direction (0 0 1); //normal direction to plane
}
}

I am solving an overset mesh problem and use the sixDOFMotion to slide one mesh over the other. I need to constraint the motion in the x-y plane.

And using fixedAxis seems to not update my rotation as the axis vector (0 0 1) does not lie in my moving mesh.

Thank you

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