|
[Sponsors] |
October 24, 2018, 07:04 |
sixDoFRigidBodyMotion new Restrain
|
#1 |
New Member
Athanasios Niotis
Join Date: Aug 2018
Posts: 12
Rep Power: 7 |
Hello, fellow Foamers,
It is my first post in CFDonline community and I ask for a piece of advice for the following issue. I want to create my own sixDoFRigidBodyMotion Restraint. My question is the following: Have i to compile only the myRestraint.C or the entire sixDoFRigidBodyMotion library? What I have thought is to copy and compile the sixDofRigidBodyMotion as mySixDofRidi.... where I would have included in the folder restraints the new code Thank you for your time and your consideration. |
|
January 30, 2020, 05:23 |
|
#2 |
New Member
David
Join Date: Mar 2012
Posts: 17
Rep Power: 14 |
For future references and starters. I had the same problem: I could not make my own restraint (mylinearSpring) to be included in the selection options. Using banana trick gives
Code:
Valid sixDoFRigidBodyMotionRestraint types are : 6 ( linearAxialAngularSpring linearDamper linearSpring sphericalAngularDamper sphericalAngularSpring tabulatedAxialAngularSpring ) Thanks to this post I tried 1. copy the whole sixDoFRigidBodyMotion structure 2. Add restraint mylinearSpring 3. modifying copied Make/files 4. building to new library i.e.libmysixDoFRigidBodyMotion.so. 5. add 'libs ("libmysixDoFRigidBodyMotion.so");' into system/controlDict This worked correctly. Banana trick shows mylinearSpring as an option. |
|
October 11, 2021, 04:33 |
|
#3 |
Member
ALLEN
Join Date: Aug 2014
Posts: 32
Rep Power: 11 |
Have you solved this problem yet? I have met the same problem, can you give me some help?
|
|
|
|