CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [Other] Coupling solidBodyMotionFunction with sixDOF solver in OpenFOAM-v1812 (https://www.cfd-online.com/Forums/openfoam-community-contributions/217056-coupling-solidbodymotionfunction-sixdof-solver-openfoam-v1812.html)

ajitkumar22 April 29, 2019 05:14

Coupling solidBodyMotionFunction with sixDOF solver in OpenFOAM-v1812
 
Dear foamers,

OpenFOAM provides a solidBodyMotionFunction class which is convenient for solving flow around moving bodies. However, all the option under this class like, linearMotion, rotatingMotion, etc all seem to solve flow around prescribed motion. I have written a new sixDoFDynamicMotion class, which is a child of solidBodyMotionFunction, which has a private member motion_ of the type sixDoFRigidBodyMotion. The member motion_, is responsible for integrating pressure and shear force around the given patch, and solve for the resulting translation and rotations. The resulting motion is returned as a septernion, through the transform() function. This is tested on two examples. Trajectory of a projectile motion, and a simple pendulum. Source code can be found here.

https://github.com/krajit/sixDoFDynamicMotion

Examples here look ok to me.

https://github.com/krajit/sixDoFDyna...U.gif?raw=true

https://github.com/krajit/sixDoFDyna...leVelocity.gif

Feedbacks are most welcome.

Ajit Kumar,
Dept. of Mathematics,
Shiv Nadar University

onurcanpiskin February 20, 2024 08:41

Quote:

Originally Posted by ajitkumar22 (Post 732097)
Dear foamers,

OpenFOAM provides a solidBodyMotionFunction class which is convenient for solving flow around moving bodies. However, all the option under this class like, linearMotion, rotatingMotion, etc all seem to solve flow around prescribed motion. I have written a new sixDoFDynamicMotion class, which is a child of solidBodyMotionFunction, which has a private member motion_ of the type sixDoFRigidBodyMotion. The member motion_, is responsible for integrating pressure and shear force around the given patch, and solve for the resulting translation and rotations. The resulting motion is returned as a septernion, through the transform() function. This is tested on two examples. Trajectory of a projectile motion, and a simple pendulum. Source code can be found here.

https://github.com/krajit/sixDoFDynamicMotion

Examples here look ok to me.

https://github.com/krajit/sixDoFDyna...U.gif?raw=true

https://github.com/krajit/sixDoFDyna...leVelocity.gif

Feedbacks are most welcome.

Ajit Kumar,
Dept. of Mathematics,
Shiv Nadar University

Create time

--> FOAM Warning :
From void* Foam::dlLibraryTable::openLibrary(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 188
Could not load "liboversetAndAMR.so"
liboversetAndAMR.so: cannot open shared object file: No such file or directory
--> FOAM Warning :
From void* Foam::dlLibraryTable::openLibrary(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 188
Could not load "libsixDoFDynamicMotion.so"
libsixDoFDynamicMotion.so: cannot open shared object file: No such file or directory
Create mesh for time = 0

Selecting dynamicFvMesh dynamicOversetFvMesh
Selecting motion solver: multiSolidBodyMotionSolver
Applying motion to entire mesh
Selecting solid-body motion function sixDoFDynamicMotion


--> FOAM FATAL IO ERROR: (openfoam-2312)
Unknown solidBodyMotionFunction type sixDoFDynamicMotion

Valid solidBodyMotionFunction types :
9(SDA axisRotationMotion drivenLinearMotion linearMotion multiMotion oscillatingLinearMotion oscillatingRotatingMotion rotatingMotion tabulated6DoFMotion)


file: constant/dynamicMeshDict/multiSolidBodyMotionSolverCoeffs/front at line 25.

From static Foam::autoPtr<Foam::solidBodyMotionFunction> Foam::solidBodyMotionFunction::New(const Foam::dictionary&, const Foam::Time&)
in file motionSolvers/displacement/solidBody/solidBodyMotionFunctions/solidBodyMotionFunction/solidBodyMotionFunctionNew.C at line 47.

FOAM exiting

I am getting an error like this, how can I solve this problem?


All times are GMT -4. The time now is 05:00.