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 |
Hi David;
have you already looked at the tutorial incompressible/pimpleDyMFoam/movingCone? |
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 |
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:
|
Hi, I know its an old post, hope you are still following it
If you have figured it out, please help me out. |
Quote:
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 04:55. |