CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   OpenFOAM : domain motion implementation with sixDoFRigidBodyMotionSolver class (https://www.cfd-online.com/Forums/openfoam-programming-development/177571-openfoam-domain-motion-implementation-sixdofrigidbodymotionsolver-class.html)

doctorWho September 16, 2016 09:16

OpenFOAM : domain motion implementation with sixDoFRigidBodyMotionSolver class
 
Hi,

I am trying to implement domain motion (not morphing mesh) with sixDoFRigidBodyMotion class.

What I have done is to set scale_ variable to 1 in sixDoFRigidBodyMotionSolver constructor as follows:

Code:

        scale_.primitiveFieldRef() = scalar(1);

        const pointMesh& pMesh = pointMesh::New(mesh);
        pointConstraints::New(pMesh).constrain(scale_);
        scale_.write();

Then, the result by pimpleDyMFoam shows the internal mesh moving with rigid body except boundary patches.
I guess that in order to make domain with boundary patch move with rigid body, something should be done in the boundary patch in solve member function but I have no idea.


All times are GMT -4. The time now is 14:47.